/* GLOBAL STYLES & VARIABLES */
:root {
    --vish-purple: #3D0A57;
    --transition-3d: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --text-dark: #1a1a1a;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* FIX 1: STOP HORIZONTAL SCROLL / "OUTSIDE" ICON */
/* Applying overflow-x: hidden to HTML prevents mobile zoom-out glitches */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background: #fff; 
}

/* --- NAVIGATION --- */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 90px; 
    display: flex; 
    align-items: center; 
    padding: 0 4rem; 
    z-index: 1000; 
    transition: var(--transition-smooth); 
    background: transparent; 
}

/* Scrolled/Solid State */
.navbar.scrolled, 
.navbar.solid-nav { 
    height: 85px; 
    background: rgba(255, 255, 255, 0.98); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}

.nav-container { 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
}

/* Centered Navigation Links */
.nav-links.desktop-only {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a { 
    text-decoration: none; 
    color: white; 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-links a,
.navbar.solid-nav .nav-links a { 
    color: var(--text-dark); 
}

/* Logo & Actions */
.nav-logo { 
    height: 97px; 
    transition: 0.3s; 
    object-fit: contain; 
}

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.cta-button { 
    background: var(--vish-purple); 
    color: white !important; 
    padding: 0.8rem 1.6rem; 
    text-decoration: none; 
    font-size: 0.7rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-transform: uppercase; 
}

/* Hamburger Toggle */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none; /* Hidden on Desktop */
    /* Ensure it has size */
    min-width: 44px;
    min-height: 44px;
    padding: 5px;
}

.navbar.scrolled .menu-toggle,
.navbar.solid-nav .menu-toggle {
    color: var(--vish-purple);
}

/* --- MOBILE MENU OVERLAY (CENTERED FIX) --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white; 
    z-index: 2000;
    transition: var(--transition-smooth);
    
    /* Flexbox Centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active { 
    right: 0; 
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--vish-purple);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.mobile-nav-links { 
    list-style: none; 
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li { 
    margin-bottom: 2.5rem; 
}

/* Remove margin from last item to perfect centering */
.mobile-nav-links li:last-child {
    margin-bottom: 0;
}

.mobile-nav-links a { 
    color: var(--vish-purple);
    text-decoration: none; 
    font-size: 2rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.3s ease;
    display: inline-block;
}

.mobile-nav-links a:hover { transform: scale(1.1); opacity: 0.8; }
.mobile-nav-links a:active { transform: scale(0.95); opacity: 0.6; }

.mobile-cta {
    margin-top: 3rem; 
    background: var(--vish-purple);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: 0.3s;
}

.mobile-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(61, 10, 87, 0.2);
}

/* --- HERO SECTION (Index) --- */
.hero { 
    height: 100vh; 
    /* Fallback color if image loads slow */
    background-color: var(--vish-purple);
    background-image: url('assets/images/heroimg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    color: white; 
    text-align: center; 
}

/* FIX 2: VISIBILITY CONTRAST FIX */
.hero-overlay { 
    position: absolute; 
    inset: 0; 
    /* Darker top (0.6) ensures white menu icon is always visible */
    background: linear-gradient(to bottom, rgba(61, 10, 87, 0.6), rgba(61, 10, 87, 0.7)); 
}

.hero-content { position: relative; z-index: 10; padding-top: 50px; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 8vw, 6rem); line-height: 1.1; margin-bottom: 2rem; }
.hero-title .italic { font-style: italic; font-weight: 400; }
.btn-outline { border: 1px solid white; padding: 1.2rem 3rem; color: white; text-decoration: none; letter-spacing: 3px; font-size: 0.8rem; text-transform: uppercase; transition: 0.5s; }

/* --- SERVICES (Carousel) --- */
.services { padding: 100px 0; background: #f9f7fc; overflow: hidden; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; color: var(--vish-purple); }

.carousel-viewport { position: relative; width: 100%; height: 650px; display: flex; justify-content: center; align-items: center; perspective: 1500px; }
.carousel-container { position: relative; width: 400px; height: 600px; transform-style: preserve-3d; }
.procedure-card { position: absolute; width: 100%; height: 100%; overflow: hidden; background: #000; transition: var(--transition-3d); box-shadow: 0 30px 60px rgba(0,0,0,0.2); }
.procedure-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.5s; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--vish-purple), transparent 75%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; color: white; }

.carousel-item.active { transform: translate3d(0, 0, 150px); z-index: 10; opacity: 1; }
.carousel-item.prev { transform: translate3d(-85%, 0, -300px) rotateY(40deg); z-index: 5; opacity: 0.5; filter: blur(2px); }
.carousel-item.next { transform: translate3d(85%, 0, -300px) rotateY(-40deg); z-index: 5; opacity: 0.5; filter: blur(2px); }

.edge-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: white; border: none; color: var(--vish-purple);
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer; z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: 0.3s;
}
.edge-nav:hover { background: var(--vish-purple); color: white; }
.prev-edge { left: 50px; }
.next-edge { right: 50px; }

/* --- APPROACH SECTION --- */
.approach-split { padding: 160px 5%; background: url('assets/images/brown.avif') center/cover no-repeat; position: relative; color: #1a1a1a; min-height: 800px; display: flex; align-items: center; }
.approach-split::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 240, 255, 0.8) 100%); z-index: 1; }
.approach-inner { position: relative; z-index: 5; max-width: 1300px; margin: 0 auto; width: 100%; }
.approach-text-top { text-align: center; margin-bottom: 80px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 4px; font-size: 0.75rem; color: var(--vish-purple); margin-bottom: 15px; }
.approach-text-top h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.1; }

.dual-concept-container { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.concept-glass { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.7); padding: 60px 40px; border-radius: 8px; position: relative; transition: 0.6s; text-align: center; }
.concept-glass h3 { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; margin-bottom: 15px; }
.concept-divider { width: 40px; height: 1px; background: var(--vish-purple); margin: 0 auto 20px; }
.method-name { text-transform: uppercase; letter-spacing: 3px; font-weight: 600; font-size: 0.85rem; color: var(--vish-purple); margin-bottom: 15px; }

/* CONNECTOR STYLES */
.concept-connector { 
    flex: 0 0 150px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    text-align: center;
}

.plus-sign { 
    font-size: 3rem; 
    color: var(--vish-purple); 
    margin-bottom: 10px; 
    font-weight: 200; 
    line-height: 1;
}

.connector-label { 
    font-size: 0.65rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 700; 
    color: var(--vish-purple); 
    line-height: 1.4; 
    text-align: center;
}

/* --- FOOTER --- */
.custom-footer { background: linear-gradient(var(--vish-purple), rgba(0,0,0,0.85)), #111; color: rgba(255,255,255,0.8); padding: 80px 5% 40px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-top-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.footer-top-links a { color: white; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; opacity: 0.7; transition: 0.3s; }
.footer-top-links a:hover { opacity: 1; }

.footer-main-content { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; max-width: 1400px; margin: 0 auto 60px; }
.footer-center .footer-mockup { height: 250px; width: auto; object-fit: contain; }

.footer-left { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; text-align: left; }
.footer-right { display: flex; flex-direction: column; gap: 15px; align-items: flex-end; text-align: right; }

.contact-item { 
    display: flex; align-items: center; gap: 10px; 
    color: white; font-size: 0.9rem; text-decoration: none; 
    padding: 6px 10px; border-radius: 10px; transition: all 0.3s ease; 
}
.contact-item:hover { transform: translateX(5px); }
.contact-item:hover i { transform: scale(1.15); }

.footer-bottom-text { max-width: 900px; margin: 0 auto; font-size: 0.75rem; line-height: 2; opacity: 0.5; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 5px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .navbar { padding: 0 2rem; height: 80px; }
    .desktop-only { display: none !important; }
    .menu-toggle { display: block !important; font-size: 1.5rem; }
    .nav-logo { height: 50px; }
    
    .footer-main-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-left, .footer-right { align-items: center; text-align: center; }
    
    .dual-concept-container { flex-direction: column; }
    
    .concept-connector { margin: 30px 0; flex-direction: column; }

    .carousel-viewport { height: 550px; }
    .carousel-container { width: 300px; height: 450px; }
}

/* FIX 3: LANDSCAPE MODE FIX */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar { height: 60px; padding: 0 1.5rem; }
    .nav-logo { height: 40px; }
    
    .hero-content { padding-top: 20px; }
    
    .hero-title { font-size: 3rem; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 0.8rem; margin-bottom: 0.5rem; }
    .hero-line { margin: 10px auto; }
    
    .btn-outline { padding: 0.8rem 2rem; font-size: 0.7rem; }
}