/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-tech: 'Rajdhani', 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 52px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tech);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.3px;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.primary {
    background-color: var(--primary-color);
    color: white;
}

.primary:hover {
    background-color: #1a2530;
}

.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.secondary:hover {
    background-color: #2980b9;
}

.btn-text {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-text i {
    margin-left: 5px;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-family: var(--font-tech);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 12px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 72px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    font-family: var(--font-tech);
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.3px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Hero (inner pages) */
.page-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.92), rgba(44, 62, 80, 0.92)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 52px 0;
}

.page-hero h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    color: white;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Services Section */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Limit clickable cards to 2 per row */
.clickable-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .clickable-cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Clickable cards with images */
.clickable-cards .card {
    padding: 0;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
}

.clickable-cards .card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e8edf2 0%, #d0dae4 100%);
    overflow: hidden;
}

.clickable-cards .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.clickable-cards .card:hover .card-image img {
    transform: scale(1.05);
}

.clickable-cards .card-content {
    padding: 24px;
}

.clickable-cards .card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.clickable-cards .card-content p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.card-link i {
    transition: transform 0.2s ease;
}

.clickable-cards .card:hover .card-link i {
    transform: translateX(4px);
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px;
    padding-right: 20px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    scrollbar-gutter: stable;
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.6);
    border-radius: 5px;
    border: 2px solid white;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.85);
}

.modal.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    text-align: left;
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-content h3 {
    margin-top: 24px;
}

.modal-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal-content ul {
    margin-top: 12px;
    margin-bottom: 16px;
    padding-left: 24px;
}

.modal-content ul li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style-type: disc;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

/* Service Detail Sections */
.service-detail {
    padding: 52px 0;
}

.alt-bg {
    background-color: #f5f7fa;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
}

.service-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
}

.service-list li i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.service-list li div {
    flex-grow: 1;
}

.service-list li h4 {
    margin-bottom: 5px;
}

.service-list li p {
    margin-bottom: 0;
}

/* About Section */
.about {
    background-color: #f5f7fa;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
    margin-top: 20px;
}

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
}

.contact-method p {
    margin-bottom: 0;
}

.contact-form-container {
    background-color: #f5f7fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-form button {
    margin-top: 10px;
    border: none;
}

.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

.contact-note {
    margin-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.contact-note a {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-note a:hover {
    text-decoration: underline;
}

.error {
    border-color: var(--accent-color) !important;
}

/* Section intro text */
.section-intro {
    text-align: center;
    max-width: 650px;
    margin: -10px auto 28px;
    color: var(--text-light);
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery {
    padding: 52px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.gallery-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.05);
}

/* Placeholder thumb shown before real images are added */
.placeholder-thumb {
    background: linear-gradient(135deg, #e8edf2 0%, #d0dae4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-thumb i {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    margin-bottom: 6px;
    color: var(--primary-color);
}

.gallery-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ── FAQ Accordion ────────────────────────────────────────────────────────── */
.faq {
    padding: 52px 0;
    background-color: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e6ed;
}

.faq-item:first-child {
    border-top: 1px solid #e0e6ed;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-question i {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 10px;
}

.faq-answer.open {
    max-height: 600px;
    padding: 0 10px 20px;
}

.faq-answer p {
    margin-bottom: 0;
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 36px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: white;
    text-align: left;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.copyright a,
.copyright #terms-link {
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.copyright a:hover,
.copyright #terms-link:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}