/* --------------------------------------------------
 * Aamari Weddings And Events - Core Stylesheet
 * Brand Colors: #FFFFE3 (Ivory), #AAC1B1 (Sage), #C39726 (Gold)
 * -------------------------------------------------- */

/* Custom Properties */
:root {
    --color-ivory: #FFFFE3;
    --color-sage: #AAC1B1;
    --color-gold: #C39726;
    --color-gold-hover: #A77F1D;
    --color-gold-light: #E0CE9A;
    --color-dark: #1E2721; /* Rich dark charcoal green for optimal text contrast */
    --color-dark-light: #2A362E;
    --color-text-body: #4A564E;
    --color-white: #FFFFFF;
    --color-card-bg: rgba(255, 255, 255, 0.7);

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s ease;
    
    --header-height: 90px;
    --border-radius-arch: clamp(80px, 15vw, 160px) clamp(80px, 15vw, 160px) 0 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-ivory);
    color: var(--color-text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 500;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

.italic-gold {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-weight: 400;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.mandala-divider {
    margin: 15px 0 30px 0;
    display: flex;
    align-items: center;
}

.mandala-divider-center {
    margin: 15px auto 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-ivory);
}
::-webkit-scrollbar-thumb {
    background: var(--color-sage);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 1px solid var(--color-gold);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

/* --------------------------------------------------
 * HEADER & NAVIGATION
 * -------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(195, 151, 38, 0.15);
    background-color: var(--color-ivory); /* Solid ivory background, never translucent */
}

.main-header.scrolled {
    height: 75px;
    background-color: var(--color-ivory); /* Solid ivory background, never translucent */
    box-shadow: 0 5px 30px rgba(30, 39, 33, 0.05);
}

.header-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-dark);
    line-height: 1;
}

.logo-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-top: 2px;
    font-weight: 500;
}

.logo-icon-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    display: block;
}

.main-header.scrolled .logo-icon-img {
    height: 38px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--color-dark);
    position: relative;
    padding: 8px 0;
}

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

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

.nav-link.active {
    color: var(--color-gold);
}

.cta-btn-header {
    padding: 10px 22px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-weight: 500;
}

.cta-btn-header:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-fast);
}

/* --------------------------------------------------
 * HERO SECTION
 * -------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: url('assets/hero_wedding.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--color-white);
    padding: 120px 20px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 39, 33, 0.6) 0%, rgba(30, 39, 33, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.65);
}

.hero-logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    height: clamp(80px, 14vh, 130px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    border-radius: 12px; /* Soften the corners */
    /* Soften only the extreme outer edges (last 6%) so the logo remains completely sharp */
    mask-image: radial-gradient(ellipse at center, black 94%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 94%, transparent 100%);
}

.hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-gold-light);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 28px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 227, 0.95);
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

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

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 227, 0.7);
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 227, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--color-gold);
    animation: scrollAnimation 2s infinite ease-in-out;
}

/* --------------------------------------------------
 * ABOUT US SECTION
 * -------------------------------------------------- */
.about-section {
    background-color: var(--color-ivory);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.arch-frame {
    border-radius: var(--border-radius-arch);
    overflow: hidden;
    border: 1px solid var(--color-gold);
    box-shadow: 0 15px 35px rgba(30, 39, 33, 0.1);
    position: relative;
    z-index: 2;
}

.about-img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-img:hover {
    transform: scale(1.03);
}

.accent-gold-box {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80%;
    height: 80%;
    border: 1px solid var(--color-gold-light);
    border-radius: var(--border-radius-arch);
    z-index: 1;
}

.about-content {
    animation: fadeInRight 1s ease;
}

.about-text {
    font-size: 0.95rem;
    color: var(--color-text-body);
    margin-bottom: 20px;
}

.about-text.highlight {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.4;
    margin-bottom: 28px;
    border-left: 3px solid var(--color-gold);
    padding-left: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(170, 193, 177, 0.4);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-gold);
    font-weight: 600;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-body);
    margin-top: 4px;
}

/* --------------------------------------------------
 * SERVICES SECTION
 * -------------------------------------------------- */
.services-section {
    background-color: var(--color-sage);
    position: relative;
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    margin: -4vw 0;
    z-index: 2;
}

/* Override container margin for the offset clip-path */
.services-section .container {
    padding: 140px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.service-card {
    background-color: var(--color-card-bg);
    border: 1px solid rgba(195, 151, 38, 0.1);
    padding: 40px 30px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    box-shadow: 0 20px 40px rgba(30, 39, 33, 0.08);
    background-color: var(--color-white);
}

.service-icon {
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    border-top: 1px solid rgba(170, 193, 177, 0.3);
    padding-top: 20px;
}

.service-features li {
    font-size: 0.8rem;
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: var(--color-dark-light);
}

.service-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

/* --------------------------------------------------
 * GALLERY SECTION
 * -------------------------------------------------- */
.gallery-section {
    background-color: var(--color-ivory);
    z-index: 1;
    padding-top: 35px;
}

/* Gallery Vertical Scroll Columns Layout */
.gallery-vertical-marquee-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    height: 600px;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 15px auto 40px auto;
    padding: 0 20px;
    /* Soft vignette fade at the top and bottom of the scrolling columns */
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

@media (min-width: 600px) {
    .gallery-vertical-marquee-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        height: 700px;
    }
}

@media (min-width: 992px) {
    .gallery-vertical-marquee-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        height: 800px;
    }
}

.gallery-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Responsive visibility overrides: show only 1 column on mobile, 2 on tablet, 3 on desktop */
.gallery-column:nth-child(2) {
    display: none;
}
.gallery-column:nth-child(3) {
    display: none;
}

@media (min-width: 600px) {
    .gallery-column:nth-child(2) {
        display: flex;
    }
}

@media (min-width: 992px) {
    .gallery-column:nth-child(3) {
        display: flex;
    }
}

.gallery-column-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    will-change: transform;
}

@media (min-width: 768px) {
    .gallery-column-track {
        gap: 24px;
    }
}

/* Pause all columns when hovering over the gallery area */
.gallery-vertical-marquee-container:hover .gallery-column-track {
    animation-play-state: paused;
}

/* Animations for upward and downward scrolling - slowed down to 150s for a smooth transition */
.scroll-up .gallery-column-track {
    animation: marquee-vertical-up 150s linear infinite;
}

.scroll-down .gallery-column-track {
    animation: marquee-vertical-down 150s linear infinite;
}

@keyframes marquee-vertical-up {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, -50%, 0);
    }
}

@keyframes marquee-vertical-down {
    0% {
        transform: translate3d(0, -50%, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    height: 240px;
    flex: 0 0 auto;
    box-shadow: 0 10px 25px rgba(30, 39, 33, 0.08), 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    border: 1px solid rgba(195, 151, 38, 0.15);
}

@media (min-width: 768px) {
    .gallery-item {
        height: 280px;
    }
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(195, 151, 38, 0.18), 0 8px 16px rgba(30, 39, 33, 0.08);
    z-index: 2;
}

.gallery-image-box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 39, 33, 0.82); /* sage dark blend overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border: 1px solid var(--color-gold);
}

.gallery-zoom-icon {
    font-size: 3rem;
    color: var(--color-gold);
    font-weight: 300;
    transform: scale(0.6);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image-box img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

/* --------------------------------------------------
 * TESTIMONIALS SECTION
 * -------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-sage);
    position: relative;
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
    padding: 140px 0;
    margin: 4vw 0;
    z-index: 2;
}

.testimonial-slider-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.testimonial-slider {
    position: relative;
    width: 100%;
    height: 440px;
    perspective: 1000px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 750px;
    background-color: var(--color-white);
    border: 1px solid rgba(195, 151, 38, 0.15);
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(30, 39, 33, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.6s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.testimonial-slide.active-0 {
    transform: translate3d(-50%, 0, 0) scale(1) rotate(0deg);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

.testimonial-slide.active-1 {
    transform: translate3d(-50%, -20px, -50px) scale(0.96) rotate(1.5deg);
    opacity: 0.7;
    z-index: 2;
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(30, 39, 33, 0.06);
}

.testimonial-slide.active-2 {
    transform: translate3d(-50%, -40px, -100px) scale(0.92) rotate(-1.5deg);
    opacity: 0.4;
    z-index: 1;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(30, 39, 33, 0.04);
}

.testimonial-slide.hidden {
    transform: translate3d(-50%, -60px, -150px) scale(0.88);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Swipe-out animation */
.testimonial-slide.slide-out {
    animation: swipeLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    z-index: 4;
}

@keyframes swipeLeft {
    0% {
        transform: translate3d(-50%, 0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(-150%, -20px, -20px) rotate(-8deg) scale(0.95);
        opacity: 0;
    }
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--color-gold);
    line-height: 0.2;
    height: 40px;
    margin-bottom: 20px;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 12px;
}

/* Custom gold scrollbar for long testimonials */
.testimonial-quote::-webkit-scrollbar {
    width: 4px;
}
.testimonial-quote::-webkit-scrollbar-track {
    background: rgba(195, 151, 38, 0.05);
}
.testimonial-quote::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 2px;
}

.testimonial-client {
    margin-top: 10px;
}

.client-name {
    font-size: 1.25rem;
    color: var(--color-dark);
    font-weight: 600;
}

.client-info {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-body);
    margin-top: 4px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 0;
    margin-bottom: 35px;
    position: relative;
    z-index: 10;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-white);
    border: 1.5px solid var(--color-gold);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 39, 33, 0.15);
    transition: var(--transition-smooth);
    z-index: 10;
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

.slider-arrow:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(195, 151, 38, 0.35);
}

.slider-arrow:hover svg {
    stroke: var(--color-white);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: rgba(30, 39, 33, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--color-gold);
    transform: scale(1.4);
}

/* --------------------------------------------------
 * CONTACT US SECTION
 * -------------------------------------------------- */
.contact-section {
    background-color: var(--color-ivory);
}

.contact-header {
    margin-bottom: 60px;
}

.contact-panel-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 600px;
    margin: 15px auto 25px auto;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-detail-item {
    background-color: var(--color-white);
    padding: 35px 25px;
    border: 1px solid rgba(170, 193, 177, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(30, 39, 33, 0.03);
}

.contact-detail-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 35px rgba(30, 39, 33, 0.06);
}

.detail-icon {
    background-color: var(--color-ivory);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(195, 151, 38, 0.2);
}

.detail-text h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-text p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-dark);
    font-weight: 500;
    word-break: break-word;
}

.contact-socials-center {
    border-top: 1px solid rgba(170, 193, 177, 0.4);
    padding-top: 40px;
}

.contact-socials-center h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.social-links-center {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-links-center a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-body);
    position: relative;
    padding-bottom: 4px;
}

.social-links-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.social-links-center a:hover::after {
    width: 100%;
}

.social-links-center a:hover {
    color: var(--color-gold);
}

/* --------------------------------------------------
 * FOOTER SECTION
 * -------------------------------------------------- */
.main-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 227, 0.7);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 227, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    letter-spacing: 2px;
}

.footer-desc {
    max-width: 320px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links ul a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #171E19;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 227, 0.4);
}

/* --------------------------------------------------
 * LIGHTBOX / MODAL SYSTEM
 * -------------------------------------------------- */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 39, 33, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.gallery-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-gold);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: var(--transition-fast);
}

.modal-prev { left: 40px; }
.modal-next { right: 40px; }

.modal-prev:hover,
.modal-next:hover {
    color: var(--color-gold);
}

.modal-content {
    max-width: 80%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border: 1px solid var(--color-gold);
}

.modal-info {
    text-align: center;
    margin-top: 20px;
    color: var(--color-white);
}

.modal-info h4 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.modal-info p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
}

/* --------------------------------------------------
 * ANIMATIONS
 * -------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scrollAnimation {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --------------------------------------------------
 * RESPONSIVE MEDIA QUERIES
 * -------------------------------------------------- */

@media (max-width: 1200px) {
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        min-height: 380px;
    }
    
    .gallery-item {
        width: 320px;
        height: 220px;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: 80px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image-wrapper {
        padding-right: 0;
        padding-bottom: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .testimonial-slider {
        height: 440px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Navigation Menu Toggle */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-ivory);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(170, 193, 177, 0.3);
        overflow-y: auto; /* Ensures menu is scrollable in landscape */
        padding: 40px 0;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    /* Hamburger Active Style */
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-icon-img {
        height: 38px;
    }
    .logo-text {
        font-size: 1.6rem;
    }
    .logo-sub {
        font-size: 0.5rem;
        letter-spacing: 2px;
    }
    .main-header.scrolled .logo-icon-img {
        height: 30px;
    }
    .gallery-item {
        width: 100%;
        height: 220px;
    }
    
    .testimonial-quote {
        font-size: 1.3rem;
    }
    
    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
    
    .testimonial-slider {
        height: 460px;
    }
    .testimonial-slide {
        padding: 40px 30px;
    }
    .slider-arrow {
        display: none;
    }
    .testimonial-slider-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .logo-icon-img {
        height: 32px;
    }
    .logo-text {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    .logo-sub {
        font-size: 0.45rem;
        letter-spacing: 1.5px;
    }
    .main-header.scrolled .logo-icon-img {
        height: 26px;
    }
    .gallery-item {
        width: 100%;
        height: 180px;
    }
    .testimonial-slider {
        height: 480px;
    }
    .testimonial-slide {
        padding: 30px 20px;
    }
}

/* Enhanced readability for elements inside Sage Green sections */
.services-section .section-tag,
.testimonials-section .section-tag {
    color: var(--color-dark);
    font-weight: 700;
    border-bottom: 1px solid rgba(195, 151, 38, 0.3);
    display: inline-block;
    padding-bottom: 4px;
}

.services-section .section-title,
.testimonials-section .section-title {
    color: var(--color-dark);
}

.services-section .section-title .italic-gold,
.testimonials-section .section-title .italic-gold {
    color: #5E480F; /* Dark bronze/gold with high contrast against Sage background */
    font-weight: 500;
}

/* Scroll Reveal Animations System */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered items start hidden if they are inside a stagger container */
.stagger-container .stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.stagger-container .stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom bespoke reveal modifiers for cards and images */
.about-image-wrapper.reveal {
    transform: scale(0.96) translateY(30px);
}
.about-image-wrapper.reveal.revealed {
    transform: scale(1) translateY(0);
}

.about-image-wrapper.reveal.revealed .accent-gold-box {
    transform: translate(25px, 25px);
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

.about-image-wrapper .accent-gold-box {
    transform: translate(0, 0);
    transition: transform 0.8s ease;
}

.service-card.reveal,
.gallery-item.reveal,
.why-card.reveal,
.timeline-content.reveal,
.contact-detail-item.reveal {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out, border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

/* Detail text link behavior (Tel and Mailto styling) */
.detail-text a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.detail-text a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* Subpage Main Wrapper to offset fixed header */
.subpage-main {
    padding-top: var(--header-height);
}

/* --------------------------------------------------
 * WHY AAMARI SECTION
 * -------------------------------------------------- */
.why-aamari-section {
    background-color: var(--color-ivory);
    position: relative;
    padding: 100px 0;
}

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

.why-card {
    background: var(--color-card-bg);
    border: 1px solid rgba(195, 151, 38, 0.15);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 12px 30px rgba(195, 151, 38, 0.08);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: rgba(195, 151, 38, 0.12);
    position: absolute;
    top: 15px;
    right: 25px;
    font-weight: 700;
    line-height: 1;
    transition: var(--transition-smooth);
}

.why-card:hover .why-number {
    color: rgba(195, 151, 38, 0.25);
    transform: scale(1.05);
}

.why-icon {
    margin-bottom: 24px;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-dark);
    margin-bottom: 16px;
    font-weight: 500;
}

.why-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin: 0;
}

/* --------------------------------------------------
 * PROCESS TIMELINE SECTION
 * -------------------------------------------------- */
.process-section {
    background-color: var(--color-ivory);
    position: relative;
    padding: 100px 0;
}

.process-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-body);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(195, 151, 38, 0.4) 10%, rgba(195, 151, 38, 0.4) 90%, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: flex-end; /* Default right-aligned */
    padding-right: 0;
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start; /* Alternating left-aligned */
}

/* Center node dot */
.timeline-badge {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-ivory);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(195, 151, 38, 0.15);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-badge {
    background: var(--color-gold);
    color: var(--color-ivory);
    box-shadow: 0 0 15px rgba(195, 151, 38, 0.4);
    transform: translateX(-50%) scale(1.1);
}

.timeline-content {
    width: 45%;
    background: var(--color-card-bg);
    border: 1px solid rgba(195, 151, 38, 0.15);
    padding: 35px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: var(--transition-smooth);
    z-index: 3;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(195, 151, 38, 0.08);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.timeline-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin: 0;
}

/* Responsive adjustment for timeline */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        justify-content: flex-start;
        padding-left: 45px;
        margin-bottom: 40px;
    }
    
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 45px;
    }
    
    .timeline-badge {
        left: 20px;
        top: 20px;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .timeline-content {
        width: 100%;
        padding: 25px 20px;
    }
}

/* --------------------------------------------------
 * TEAM SECTION
 * -------------------------------------------------- */
.team-section {
    background-color: var(--color-ivory);
    position: relative;
    padding: 100px 0;
}

.team-container {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.team-member-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: center;
}

.team-member-row.reverse {
    grid-template-columns: 1.6fr 1fr;
}

.team-member-row.reverse .team-member-image-wrapper {
    grid-column: 2;
}

.team-member-row.reverse .team-member-content {
    grid-column: 1;
    grid-row: 1;
}

.team-member-image-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
    max-width: 380px;
    width: 100%;
}

.team-member-row.reverse .team-member-image-wrapper {
    padding-left: 30px;
    padding-right: 0;
    margin-left: auto;
}

.team-member-image-wrapper .accent-gold-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    z-index: 1;
    pointer-events: none;
    transform: translate(15px, 15px);
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

.team-member-row.reverse .team-member-image-wrapper .accent-gold-box {
    left: 0;
    right: auto;
    transform: translate(-15px, 15px);
}

.team-member-image-wrapper.reveal.revealed .accent-gold-box {
    transform: translate(25px, 25px);
}

.team-member-row.reverse .team-member-image-wrapper.reveal.revealed .accent-gold-box {
    transform: translate(-25px, 25px);
}

.team-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.team-img:hover {
    transform: scale(1.03);
}

.team-member-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.team-member-title {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 25px;
}

.team-member-bio {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-body);
    margin: 0;
}

/* Responsive adjustment for team */
@media (max-width: 992px) {
    .team-member-row, 
    .team-member-row.reverse {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }
    
    .team-member-row.reverse .team-member-image-wrapper {
        grid-column: 1 !important;
    }

    .team-member-row.reverse .team-member-content {
        grid-column: 1 !important;
    }
    
    .team-member-image-wrapper,
    .team-member-row.reverse .team-member-image-wrapper {
        margin: 0 auto !important;
        padding-right: 20px !important;
        padding-bottom: 20px !important;
        padding-left: 0 !important;
        max-width: 320px;
    }

    .team-member-image-wrapper .accent-gold-box,
    .team-member-row.reverse .team-member-image-wrapper .accent-gold-box {
        transform: translate(15px, 15px) !important;
    }
    
    .team-img {
        height: 400px;
    }
}
