/* --- Variables & Reset --- */
:root {
    --primary: #1E3A5F;
    --secondary: #FF8547;
    --accent: #4A90E2;
    --yellow: #FFD166;
    --text-dark: #2C3E50;
    --text-light: #F5F5F5;
    --bg-light: #F9FAFB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    font-size: 15px;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 133, 71, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(74, 144, 226, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 209, 102, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, .logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Typography Updates */
h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 44px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    line-height: 1.3;
}

/* Base h4 style */
h4 {
    font-size: 1.2rem;
    line-height: 1.4;
}

p {
    font-size: 16px;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: transparent;
}

.highlight {
    color: var(--secondary);
}

/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* --- Glassmorphism --- */
.glass-effect {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    height: 100px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar .container {
    max-width: 100%;
    padding: 0 30px;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.25rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    z-index: 1002;
}

.logo img {
    height: 55px;
    width: auto;
}

.logo-text {
    line-height: 1.2;
    max-width: 350px;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-link.active {
    font-weight: 800;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none; 
}

/* --- Buttons --- */
.btn-primary {
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-block;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    background-color: var(--bg-light);
    gap: 40px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.hero-text-wrapper {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.hero-image-wrapper {
    flex: 1.2; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 550px; 
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: white;
    /* Removed aspect-ratio constraint for general cards unless specifically needed, 
       but keeping centered alignment for consistency */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px; /* Ensure cards have some height */
}

/* Special rule for Square Service Cards (on Services Page) if needed, 
   or we can keep the general rule flexible. 
   Currently applied to all service-cards for consistency */
.services-grid .service-card {
     aspect-ratio: 1 / 1; 
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(30, 58, 95, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
    flex-shrink: 0;
}

.card-icon svg {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* NEW: Style specifically for Card Titles in About Page (h4) */
.service-card h4 {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 1.5rem; /* Made bigger as requested */
    font-weight: 700;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.text-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.text-link:hover {
    gap: 12px;
}

/* --- About Section --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-video,
.about-text {
    flex: 1;
}

.about-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.about-text .feature-list {
    display: inline-block;
    text-align: left;
    margin: 20px 0 30px;
}

.rounded-video {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.feature-list li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--secondary);
    margin-right: 10px;
}

/* --- Contact & Gallery --- */
.contact-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Reviews --- */
.reviews-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.google-badge {
    background: white;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 20px;
    margin: 0 auto 50px auto;
}

.g-rating .score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.g-rating .stars {
    color: #FBBC05;
    font-size: 0.9rem;
    margin: 2px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: var(--transition);
    
    /* Square and Centered */
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.review-card:hover {
    transform: translateY(-5px);
}

.reviewer-info {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-col:nth-child(1) { text-align: left; }
.footer-col:nth-child(2) { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-col:nth-child(3) { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }

.footer-col h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--yellow);
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--yellow);
}

.footer-col ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-col i {
    width: 20px;
    color: var(--secondary);
    margin-right: 8px;
}

.footer-col:nth-child(3) i {
    margin-right: 0;
    margin-left: 8px;
    order: 2; 
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .logo-text { font-size: 0.8rem; max-width: 180px; }
    .section-padding { padding: 50px 0; }
    .about-wrapper { flex-direction: column; }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-light); 
        border: 2px solid var(--primary);
        border-radius: 5px;
        color: var(--primary);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1002;
    }

    /* Mobile Menu Drawer */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    /* Hero Fixes */
    .hero {
        flex-direction: column-reverse; /* Image top, Text bottom */
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
        height: auto;
        text-align: center;
        gap: 20px;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 0 20px;
    }

    .hero-image-wrapper {
        width: 100%;
        margin-bottom: 10px;
        position: relative;
    }
    
    /* Hero Image: Full Width on Mobile */
    .hero-img {
        width: 100%; 
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn-primary {
        width: 100%;
        display: block;
        margin: 0;
    }

    /* Footer Fixes */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-col:nth-child(1),
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    
    .footer-col:nth-child(3) i {
        order: 0;
        margin-right: 8px;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
