@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

:root {
    --font-brand: 'Futura', 'Jost', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --terracotta: #C85A32;
    --terracotta-dark: #A54320;
    --terracotta-light: #E27F5B;
    --terracotta-rgb: 200, 90, 50;
    
    --purple-deep: #2E1A47;
    --purple-dark: #1E1035;
    --purple-medium: #5E3B8F;
    --purple-light: #F0EBFA;
    --purple-rgb: 46, 26, 71;
    
    --bg-cream: #FCFBF9;
    --bg-sand: #F5F1EA;
    --bg-dark: #140C22;
    
    --text-dark: #1E1B18;
    --text-light: #F9F8F6;
    --text-muted: #7A7570;
    --text-muted-light: #A49F9A;
    
    --border-color: rgba(200, 90, 50, 0.12);
    --border-purple: rgba(94, 59, 143, 0.15);
    
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);
    --shadow-purple: 0 15px 35px rgba(46, 26, 71, 0.12);
    
    --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --max-width: 1320px;
    --header-height: 80px;

    --card-bg: white;
    --border-form: rgba(0, 0, 0, 0.1);
    --timeline-arrow-color: white;
    --header-bg-scrolled: rgba(252, 251, 249, 0.85);
}

body.dark-theme {
    --bg-cream: #120A1E; /* Deep dark purple-black */
    --bg-sand: #1C122C; /* Slightly lighter deep purple */
    --bg-dark: #0A0512; /* Even deeper black-purple */
    
    --text-dark: #F7F5F0; /* Soft light cream text */
    --text-muted: #A6A0B0; /* Soft muted purple-gray text */
    
    --purple-deep: #EBE5F5; /* Soft lilac for main titles */
    --purple-light: #26163D; /* Deep purple background for badges and cards */
    --purple-medium: #8A64C2; /* Lighter vivid violet for links and highlights */
    
    --border-color: rgba(200, 90, 50, 0.25);
    --border-purple: rgba(138, 100, 194, 0.25);
    
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 15px 35px rgba(138, 100, 194, 0.15);
    
    --card-bg: #1B102B; /* Dark background for cards */
    --border-form: rgba(255, 255, 255, 0.15);
    --timeline-arrow-color: #1B102B;
    --header-bg-scrolled: rgba(18, 10, 30, 0.85);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.intro-active {
    overflow: hidden;
    height: 100vh;
}

#main-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Fullscreen Introductory Portal Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-cream);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: all;
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.6s;
}

/* Perfect 2:3 aspect ratio container matching official brand dimensions */
.intro-logo {
    position: relative;
    width: 266px;
    height: 400px;
    display: block; /* Direct absolute stacking */
}

.intro-box {
    position: absolute;
    border: 1.5px solid rgba(46, 26, 71, 0.14);
    border-radius: 1px; /* Sharp, high-end borders matching the logo */
    box-sizing: border-box;
}

/* Recursive uniform insets of exactly 14px on left, right, top, and bottom */
.box-5 { 
    width: 100%; 
    height: 100%; 
    top: 0;
    left: 0;
}
.box-4 { 
    top: 14px; 
    left: 14px; 
    width: calc(100% - 28px); 
    height: calc(100% - 28px); 
    border-color: rgba(46, 26, 71, 0.18); 
}
.box-3 { 
    top: 14px; 
    left: 14px; 
    width: calc(100% - 28px); 
    height: calc(100% - 28px); 
    border-color: rgba(46, 26, 71, 0.24); 
}
.box-2 { 
    top: 14px; 
    left: 14px; 
    width: calc(100% - 28px); 
    height: calc(100% - 28px); 
    border-color: rgba(46, 26, 71, 0.30); 
}
.box-1 { 
    top: 14px; 
    left: 14px; 
    width: calc(100% - 28px); 
    height: calc(100% - 28px); 
    border-color: rgba(46, 26, 71, 0.38); 
    position: relative; /* Anchor for absolute positioning of circle */
}

/* Official brand circle positioned exactly at bottom-left corner of innermost box */
.intro-circle {
    width: 44px;
    height: 44px;
    background-color: var(--terracotta);
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    left: 20px;
    box-shadow: 0 4px 15px rgba(200, 90, 50, 0.25);
    transform-origin: center center;
}

.intro-scroll-indicator {
    position: absolute;
    bottom: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--purple-deep);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.65;
    animation: bouncePulse 2.2s infinite ease-in-out;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    stroke: var(--purple-deep);
}

@keyframes bouncePulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.9;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--purple-deep);
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
}

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

li {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: 9rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h2, 
.section-dark h3 {
    color: var(--text-light);
}

.section-dark p {
    color: var(--text-muted-light);
}

/* Section Headers */
.section-header {
    margin-bottom: 5rem;
    max-width: 700px;
}

.section-subtitle {
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--terracotta);
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1px;
    background-color: var(--terracotta);
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .container {
        padding: 0 1.5rem;
    }
}

/* Dynamic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn-terracotta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.btn-terracotta:hover::before {
    left: 100%;
    transition: 0.8s ease-in-out;
}

.btn-terracotta:hover {
    background-color: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    box-shadow: 0 8px 24px rgba(200, 90, 50, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--purple-deep);
    border: 1px solid rgba(46, 26, 71, 0.2);
}

.btn-outline:hover {
    border-color: var(--purple-deep);
    background-color: rgba(46, 26, 71, 0.03);
    color: var(--purple-deep);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-white:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-medium));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 26, 71, 0.15);
}

.btn-purple:hover {
    box-shadow: var(--shadow-purple);
    transform: translateY(-2px);
}

/* Glassmorphism Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    height: 70px;
    background-color: var(--header-bg-scrolled);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--purple-deep);
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    border-radius: 2px;
    transition: var(--transition-fast);
}

header.scrolled .logo-img {
    height: 44px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-family: var(--font-brand);
    text-transform: uppercase;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--purple-deep);
    transition: var(--transition-fast);
}

header.scrolled .brand-name {
    font-size: 1.15rem;
}

.brand-tagline {
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--terracotta);
    margin-top: 0.15rem;
    transition: var(--transition-fast);
}

header.scrolled .brand-tagline {
    font-size: 0.58rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-link:hover {
    color: var(--terracotta);
}

.header-cta {
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--purple-deep);
    margin: 5px 0;
    transition: var(--transition-fast);
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: var(--bg-cream);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem 3rem;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }

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

    .mobile-toggle {
        display: block;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header-cta {
        display: none; /* Hide button on mobile in top-bar to keep clean */
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
    display: flex;
    align-items: center;
    background-color: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--purple-light);
    color: var(--purple-deep);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(94, 59, 143, 0.1);
}

.hero-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--terracotta);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero-title span {
    color: var(--terracotta);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Immersive Hero Image Container */
.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}


.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Decorative architectural lines */
.hero-frame {
    position: absolute;
    border: 1px solid var(--terracotta);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

.frame-1 {
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
}

.frame-2 {
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
}

.hero-overlay-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background-color: var(--purple-deep);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    max-width: 280px;
    border-left: 4px solid var(--terracotta);
}

.hero-overlay-card h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-overlay-card p {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-visual {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 5rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        height: 480px;
        max-width: 600px;
        margin: 0 auto;
    }
    .hero-overlay-card {
        left: 20px;
        bottom: -20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-visual {
        height: 380px;
    }
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.philo-card {
    background-color: var(--card-bg, white);
    padding: 3.5rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.philo-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--terracotta);
    transition: var(--transition-smooth);
}

.philo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 90, 50, 0.1);
}

.philo-card:hover::after {
    width: 100%;
}

.philo-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-cream);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--terracotta);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.philo-card:hover .philo-icon {
    background-color: var(--purple-deep);
    color: white;
}

.philo-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.philo-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Services 3-Column Grid Layout */
.solutions-section {
    background-color: var(--bg-dark);
    transition: var(--transition-smooth);
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.service-card {
    position: relative;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(200, 90, 50, 0.15);
    cursor: pointer;
}

.service-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--terracotta);
}

.service-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(18, 8, 28, 0.65);
    transition: var(--transition-smooth);
}

.service-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    transition: var(--transition-smooth);
}

.service-card:hover .service-details {
    background: rgba(18, 8, 28, 0.35);
}

.service-card:hover .service-details h4 {
    transform: scale(1.05);
    color: var(--terracotta);
}

/* Responsiveness for grid */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-img-wrapper {
        height: 220px;
    }
}

/* PREMIUM MODAL SYSTEM */
.premium-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.premium-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 18, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    background: rgba(26, 16, 43, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    z-index: 2;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 4rem 4rem;
    transform: scale(0.95) translateY(15px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-muted-light);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4.5rem;
    align-items: start;
}

.modal-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.modal-phase {
    font-family: var(--font-brand);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--terracotta-light);
    font-weight: 700;
}

.modal-title {
    font-size: 2.4rem;
    color: var(--purple-deep);
    margin: 0;
    font-weight: 500;
}

.modal-divider {
    width: 4rem;
    height: 2px;
    background-color: var(--terracotta);
}

.modal-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted-light);
    font-weight: 300;
    margin: 0;
}

.modal-checklist-wrapper h5,
.modal-expertise-note h5 {
    font-family: var(--font-brand);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: white;
    margin-bottom: 0.8rem;
}

.modal-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding-left: 0;
    margin: 0.5rem 0 1rem 0;
}

.modal-checklist li {
    font-size: 0.88rem;
    color: var(--text-muted-light);
    position: relative;
    padding-left: 1.3rem;
}

.modal-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--terracotta);
}

.expertise-tags {
    font-size: 0.9rem;
    color: var(--terracotta-light);
    font-weight: 500;
}

.modal-right-col {
    width: 100%;
}

.modal-image-frame {
    border-radius: 4px;
    overflow: hidden;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsiveness for modal */
@media (max-width: 992px) {
    .modal-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .modal-image-frame {
        height: 350px;
    }
    .modal-container {
        padding: 3rem 2rem;
        max-height: 90vh;
    }
    .modal-checklist {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.6rem;
    border-radius: 100px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.filter-btn.active {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg, white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 16, 53, 0.8) 0%, rgba(200, 90, 50, 0.3) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.project-overlay-content {
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.project-overlay-content span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta-light);
    display: block;
    margin-bottom: 0.4rem;
}

.project-overlay-content h4 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.8rem;
}

.project-arrow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-arrow-btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay-content {
    transform: translateY(0);
}

.project-card:hover .project-arrow-btn svg {
    transform: translateX(5px);
}

.project-details {
    padding: 1.5rem;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 0.4rem;
    display: block;
}

.project-details h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-details p {
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline/Journey Section - Horizontal Layout */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, rgba(200, 90, 50, 0.15) 0%, var(--terracotta) 50%, rgba(200, 90, 50, 0.15) 100%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
}

.timeline-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--terracotta);
    position: relative;
    left: auto;
    top: 0;
    transform: none;
    z-index: 5;
    transition: var(--transition-smooth);
    margin-bottom: 2rem;
    box-shadow: 0 0 0 4px rgba(200, 90, 50, 0.15);
}

.timeline-item:hover .timeline-node {
    background-color: var(--terracotta);
    box-shadow: 0 0 0 8px rgba(200, 90, 50, 0.25), 0 0 15px var(--terracotta);
    transform: scale(1.15);
}

.timeline-content {
    width: 100%;
    padding: 1.75rem 1.5rem;
    background-color: rgba(30, 16, 43, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center !important;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-6px);
    background-color: rgba(30, 16, 43, 0.85);
    border-color: var(--terracotta);
    box-shadow: var(--shadow-lg);
}

.timeline-step {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--terracotta-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.4rem;
}

.timeline-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted-light);
    margin: 0;
}

@media (max-width: 992px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .timeline::before {
        display: none;
    }
    .timeline-node {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .timeline {
        grid-template-columns: 1fr;
    }
}


/* Contact Portal Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-method {
    display: flex;
    gap: 1.2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--purple-light);
    color: var(--purple-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details-box h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-deep);
    margin-bottom: 0.3rem;
}

.contact-details-box p {
    font-size: 0.95rem;
}

.contact-details-box p a:hover {
    color: var(--terracotta);
}

.contact-form-wrapper {
    background-color: var(--card-bg, white);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-form, rgba(0, 0, 0, 0.1));
    outline: none;
    transition: var(--transition-fast);
}

.form-label {
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-input:valid {
    border-bottom-color: var(--terracotta);
}

.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--terracotta);
    font-weight: 500;
}

textarea.form-input {
    min-height: 100px;
    resize: none;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-status.success {
    display: block;
    background-color: rgba(74, 180, 120, 0.1);
    color: #2e6944;
    border: 1px solid rgba(74, 180, 120, 0.2);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .contact-form-wrapper {
        padding: 2.5rem;
    }
}

/* Footer Section */
footer {
    background-color: var(--purple-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--terracotta);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--terracotta);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 1.5rem;
    height: 2px;
    background-color: var(--terracotta);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--text-muted-light);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--terracotta-light);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 1.2rem;
    position: relative;
}

.newsletter-input {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    color: white;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    border-color: var(--terracotta);
    background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
    background-color: var(--terracotta);
    border: none;
    color: white;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: var(--terracotta-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

.footer-legal-links a:hover {
    color: var(--terracotta-light);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
    }
}

/* Immersive Project Modal Details Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 12, 34, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    padding: 2rem;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content-wrapper {
    background-color: var(--bg-cream);
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition-smooth);
}

.modal.active .modal-content-wrapper {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg, white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    color: var(--purple-deep);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--terracotta);
    color: white;
    transform: scale(1.05);
}

.modal-hero {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 3.5rem;
}

.modal-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    display: block;
}

.modal-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.06));
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
}

.meta-item span:first-child {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.3rem;
}

.meta-item span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-deep);
}

.modal-desc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
}

.modal-desc h4, .modal-sidebar h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.modal-desc p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.modal-sidebar {
    background-color: var(--bg-sand);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--purple-deep);
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
}

.spec-list li span:first-child {
    font-weight: 500;
    color: var(--text-muted);
}

.spec-list li span:last-child {
    font-weight: 600;
}

@media (max-width: 768px) {
    .modal-hero {
        height: 250px;
    }
    .modal-body {
        padding: 2rem;
    }
    .modal-title {
        font-size: 2rem;
    }
    .modal-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .modal-desc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Reveal Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Custom Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(200, 90, 50, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(200, 90, 50, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(200, 90, 50, 0);
    }
}

/* --- Appended Testimonials & Premium Animations Style Additions --- */

/* Alt Section Background */
.section-alt {
    background-color: var(--bg-sand);
    border-top: 1px solid rgba(200, 90, 50, 0.05);
    border-bottom: 1px solid rgba(200, 90, 50, 0.05);
}

/* Testimonials Layout styling */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background-color: var(--card-bg, white);
    padding: 3.5rem 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta), var(--purple-medium));
    transition: var(--transition-smooth);
    border-radius: 0 0 8px 8px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 90, 50, 0.08);
}

.testimonial-card:hover::after {
    width: 100%;
}

.testimonial-quote-icon {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(200, 90, 50, 0.12);
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-medium));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(46, 26, 71, 0.15);
}

.client-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--purple-deep);
    margin-bottom: 0.15rem;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Floating Animations for Hero frame elements */
@keyframes floatFrame1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-8px, 6px) rotate(0.5deg); }
}

@keyframes floatFrame2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(8px, -6px) rotate(-0.5deg); }
}

.frame-1 {
    animation: floatFrame1 7s ease-in-out infinite;
}

.frame-2 {
    animation: floatFrame2 9s ease-in-out infinite;
}

/* Testimonial Section Responsiveness */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .testimonial-card {
        padding: 3rem 2rem 2.5rem;
    }
}

/* --- Premium Theme Toggle Component Styles --- */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--purple-deep);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    outline: none;
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.theme-toggle-btn:hover {
    background-color: var(--purple-light);
    border-color: var(--purple-medium);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    color: var(--purple-medium);
}

.theme-toggle-btn svg {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* In Light Mode, sun-icon is hidden and moon-icon is visible */
.theme-toggle-btn .sun-icon {
    display: none;
}
.theme-toggle-btn .moon-icon {
    display: block;
}

/* In Dark Mode, sun-icon is visible and moon-icon is hidden */
body.dark-theme .theme-toggle-btn .sun-icon {
    display: block;
    color: #ffb74d; /* Soft glowing yellow for the sun */
}
body.dark-theme .theme-toggle-btn .moon-icon {
    display: none;
}

/* Dynamic Smooth transitions for theme switching elements */
body,
header,
.logo-img,
.brand-name,
.brand-tagline,
.philo-card,
.project-card,
.timeline-content,
.contact-form-wrapper,
.testimonial-card,
.modal-content-wrapper,
.modal-sidebar,
.tabs-wrapper,
.nav-link,
.form-input,
p, h1, h2, h3, h4, span, a, svg {
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form select option support for dark mode legibility */
.form-input option {
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

/* --- Appended Collaborations / Trusted By Marquee Styles --- */
.partners-section {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7rem 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

/* Dark section variant for partner cards */
.partners-section.section-dark .partner-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.partners-section.section-dark .partner-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--terracotta-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.partners-section.section-dark .partner-logo-wrapper {
    color: rgba(255, 255, 255, 0.45);
}

.partners-section.section-dark .partner-card:hover .partner-logo-wrapper {
    color: var(--terracotta-light);
}

.partners-section.section-dark .partner-name {
    color: var(--text-light);
}

.partners-section.section-dark .partner-card:hover .partner-name {
    color: white;
}

.partners-section .section-header {
    margin-bottom: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.partners-section .section-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partners-section .section-subtitle::before {
    display: none; /* remove default left-aligned line */
}

.partners-section .section-subtitle::after {
    content: '';
    margin-left: 1rem;
    width: 1.2rem;
    height: 1px;
    background-color: var(--terracotta);
}

/* Marquee Container with Gradient Mask overlays for premium fade effect */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    /* Linear gradient masking for seamless edge fade-out */
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 38s linear infinite;
}

.marquee-container:hover .marquee-track,
.marquee-track:hover,
.marquee-track:focus-within {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}

/* Individual Partner Card */
.partner-card {
    flex-shrink: 0;
    width: 260px;
    margin: 0 1.2rem;
    padding: 2.2rem 1.8rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--terracotta);
    box-shadow: var(--shadow-md), 0 8px 24px rgba(200, 90, 50, 0.08);
}

/* Partner SVG Logo Container */
.partner-logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-logo-wrapper {
    color: var(--terracotta);
    transform: scale(1.08);
}

.partner-logo-wrapper svg {
    width: 100%;
    height: 100%;
    max-width: 64px;
    max-height: 64px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Partner Name Typography */
.partner-name {
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 0.5rem;
    line-height: 1.4;
    height: 2.8rem; /* uniform size to align cards */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-name {
    color: var(--purple-deep);
    font-weight: 600;
}

/* Infinite marquee animation */
@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Dark theme adjustments for contrast */
body.dark-theme .partners-section {
    border-top: 1px solid var(--border-purple);
    border-bottom: 1px solid var(--border-purple);
}

body.dark-theme .partner-logo-wrapper {
    color: var(--text-muted);
}

body.dark-theme .partner-card:hover .partner-logo-wrapper {
    color: var(--terracotta-light);
}

body.dark-theme .partner-card:hover {
    border-color: var(--terracotta-light);
}

/* Responsive Styling */
@media (max-width: 768px) {
    .partners-section {
        padding: 5rem 0;
    }
    .partner-card {
        width: 210px;
        padding: 1.8rem 1.2rem;
        margin: 0 0.8rem;
    }
    .partner-logo-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    .partner-name {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        height: 2.2rem;
    }
    .marquee-container {
        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    }
}
