/* Design System for Copy Land Graphics */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary-yellow: #f5c842;
    --primary-magenta: #e8368f;
    --primary-teal: #0a7b6b;
    --dark-navy: #1a1a2e;
    --white: #ffffff;
    --light-gray: #f4f4f9;
    --whatsapp-green: #25d366;
    --font-heading: "Didot", "GFS Didot", "Bodoni MT", "Noto Serif Display", serif;
    --font-body: 'Outfit', 'Inter', -apple-system, sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --border-radius: 16px;
    --glow-shadow: 0 0 20px rgba(245, 200, 66, 0.4);
}

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

.show-mobile { display: none; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-navy);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: none; /* User didn't specify uppercase, and Didot looks better in mixed case */
    letter-spacing: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, gif {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
}

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-navy);
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--dark-navy);
}

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

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glow Effect */
@keyframes edgeGlow {
    0%, 100% { box-shadow: 0 0 10px var(--primary-yellow), inset 0 0 10px var(--primary-yellow); }
    50% { box-shadow: 0 0 25px var(--primary-yellow), inset 0 0 25px var(--primary-yellow); }
}

.glowing-edge {
    position: relative;
    animation: edgeGlow 3s infinite alternate;
    border: 2px solid var(--primary-yellow);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span { color: var(--primary-magenta); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-navy);
}

.nav-links a:hover {
    color: var(--primary-magenta);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: #000; /* Dark fallback */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1000px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    font-family: var(--font-heading);
    font-weight: 700;
}

.hero p {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.mute-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.mute-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-diagonal {
    display: none; /* Removed as per new design with full video background */
}

/* Services Section */
.services-section h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--dark-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 5px solid var(--primary-teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-teal);
}

.service-card label {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.teal-banner-strip {
    background-color: var(--primary-teal);
    color: white;
    padding: 30px;
    margin-top: 50px;
    border-radius: var(--border-radius);
    text-align: center;
}

.teal-banner-strip h3 {
    margin: 0;
    font-size: 1.8rem;
}

/* Section 3: Banner + 3D Logo */
.split-banner {
    display: flex;
    width: 100%;
    min-height: 400px;
}

.banner-left {
    width: 75%;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.banner-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-right {
    width: 25%;
    background-color: var(--dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.logo-right .logo-gif {
    max-width: 150px;
    filter: drop-shadow(0 0 10px var(--primary-yellow));
}

.logo-right::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(245, 200, 66, 0.1);
    pointer-events: none;
}

/* Academic Works */
.academic-section {
    background-color: var(--dark-navy);
    color: white;
}

.academic-section h2 { 
    color: var(--primary-yellow); 
    font-size: 3rem; 
    white-space: nowrap;
}
@media (max-width: 1200px) {
    .academic-section h2 { white-space: normal; }
}

.academic-section p.subtext { font-size: 1.2rem; opacity: 0.8; margin-bottom: 50px; }

.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.academic-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(245, 200, 66, 0.2);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.academic-info {
    padding: 30px;
    background: rgba(255,255,255,0.02);
}

.academic-info h3 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.academic-info p {
    font-size: 1rem;
    opacity: 0.8;
}

.academic-media {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top: 2px solid var(--primary-yellow);
}

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

.academic-card:hover .academic-media img {
    transform: scale(1.1);
}

.academic-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #e1e1e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #999;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Branches */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.branch-card {
    padding: 40px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    height: 100%;
}

.branch-card.highlight {
    border: 2px solid var(--primary-magenta);
    background: linear-gradient(to bottom, #fff, #fef1f8);
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background: #eee;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Reviews */
.reviews-section {
    background: var(--light-gray);
}

.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    width: calc(33.333% - 20px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stars { color: #ffbc00; margin-bottom: 10px; }

/* Contact Section */
.contact-section {
    background-color: var(--dark-navy);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-layout {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.contact-info { 
    flex: 1; 
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-map { 
    flex: 1.2; 
    height: auto; 
    min-height: 450px;
    background: white; 
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.contact-item a:hover {
    border-bottom-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.contact-item .icon { 
    font-size: 1.5rem; 
    color: var(--primary-yellow);
    width: 30px;
    text-align: center;
}

/* Contact Section Improvements */
.contact-item.highlight-clickable {
    display: flex;
    text-decoration: none;
    transition: var(--transition);
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
}

.contact-item.highlight-clickable:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-yellow);
}

.contact-text strong {
    display: block;
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.highlight-info {
    color: var(--primary-yellow) !important;
    font-weight: 700;
    font-size: 1.2rem;
}

.gstin-highlight {
    background: var(--primary-yellow);
    color: var(--dark-navy);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-family: monospace;
}

.contact-map-wrapper {
    flex: 1.2;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--whatsapp-green);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp-cta img {
    width: 25px;
    height: 25px;
}

.map-embed {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--dark-navy);
    color: white;
    padding: 80px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Perfect Responsiveness Overhaul */
@media (max-width: 1200px) {
    :root { --container-width: 95%; }
    .hero h1 { font-size: 3.8rem; }
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.4rem; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .academic-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { flex-direction: column; gap: 30px; }
    .footer-top { flex-direction: column; gap: 40px; text-align: center; }
    .footer-col { align-items: center; display: flex; flex-direction: column; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .mobile-toggle { 
        display: block; 
        font-size: 2rem; 
        color: var(--dark-navy);
        transition: var(--transition);
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        padding: 40px 20px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        text-align: center;
        gap: 20px;
    }

    .nav-links.mobile-active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
        display: block;
        padding: 10px;
    }

    .hero { height: 90vh; }
    .hero h1 { font-size: 2.5rem; line-height: 1.1; }
    .hero p { font-size: 1.2rem; margin-bottom: 30px; }
    
    .academic-grid { grid-template-columns: 1fr; gap: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    .section-padding { padding: 60px 0; }
    h2 { font-size: 2.2rem !important; margin-bottom: 30px !important; }

    .branches-grid { grid-template-columns: 1fr; }
    .branch-card { padding: 25px; }
    
    .contact-info { padding: 25px; }
    .contact-map-wrapper { min-height: 300px; }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .review-card { width: 100%; }
    .reviews-container { flex-direction: column; align-items: center; }

    .show-mobile { display: block; }
    .hide-mobile { display: none !important; }

    .banner-left img, .logo-right .logo-gif {
        object-fit: contain;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
    .banner-left { height: auto; min-height: unset; width: 100%; }
    .split-banner { min-height: auto; flex-direction: column; }
    .logo-right { 
        height: auto; 
        width: 100%; 
        padding: 20px 0;
        background-color: transparent;
    }
    .logo-right div.glowing-edge {
        width: 80%;
        max-width: 300px;
        border-radius: 20px !important;
        padding: 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .academic-section h2 { white-space: normal; }
}

/* Animations for Mobile Toggle */
.mobile-toggle.open {
    color: var(--primary-magenta);
    transform: rotate(90deg);
}
