@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@700;800;900&display=swap');

:root {
    /* Dark Theme (Default) */
    --bg: #080809;
    --surface: #111214;
    --card: rgba(255, 255, 255, 0.03);
    --text: #F5F5F5;
    --muted: #8E8E93;
    --accent: #D6B98C;
    --accent-glow: rgba(214, 185, 140, 0.3);
    --accent-soft: rgba(214, 185, 140, 0.08);
    --border: rgba(255, 255, 255, 0.08);

    /* Grid & Spacing */
    --grid: 8px;
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-6: 48px;
    --sp-8: 64px;
    --sp-10: 80px;
    --sp-12: 96px;
    --sp-20: 160px;

    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg: #FBFBFD; /* Architectural off-white */
    --surface: #F5F5F7;
    --card: rgba(255, 255, 255, 0.7);
    --text: #1D1D1F;
    --muted: #86868B;
    --accent: #AF8E5D; /* Richer, more premium gold */
    --accent-glow: rgba(175, 142, 93, 0.15);
    --accent-soft: rgba(175, 142, 93, 0.08);
    --border: rgba(0, 0, 0, 0.08);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Base Styles */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

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

ul { list-style: none; }

img,
.work-img-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.section-padding {
    padding: var(--sp-20) 0;
}

.accent-text { color: var(--accent); }
[data-theme="light"] .accent-text {
    text-shadow: 0 0 10px var(--accent-glow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--sp-8);
}

.section-header h2 {
    font-size: 4rem;
}

.section-header p {
    color: var(--muted);
    max-width: 300px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: var(--sp-10);
}

.skincare-section {
    margin-top: 120px;
    padding-top: 80px;
    border-top: 1px solid var(--border);
}

.skincare-feature {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.skincare-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    min-height: 400px;
    height: 420px;
    max-height: 420px;
    align-self: start;
}

.skincare-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skincare-video-label {
    position: absolute;
    bottom: 18px;
    left: 18px;
    color: #ffffff;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 16px;
    border-radius: 999px;
}

.skincare-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skincare-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.skincare-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.skincare-card-copy {
    padding: 16px;
}

.skincare-card-copy h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.skincare-card-copy p {
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }
    .section-header h2, .section-title {
        font-size: 3rem;
    }
    .skincare-feature {
        grid-template-columns: 1fr;
    }
    .skincare-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-header h2, .section-title {
        font-size: 2.2rem;
    }
    .skincare-gallery {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--sp-4) 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(8, 8, 9, 0.7); /* Fallback for dark */
    backdrop-filter: blur(20px);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] nav.scrolled {
    background: rgba(251, 251, 253, 0.8);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo-text { font-size: 1.8rem; }
}

.logo:hover .logo-text {
    letter-spacing: 0.05em;
}

.theme-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.btn-book {
    background: var(--text);
    color: var(--bg);
    padding: var(--sp-1) var(--sp-3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-hero {
    background: var(--text);
    color: var(--bg);
    padding: 20px 56px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
}

@media (max-width: 768px) {
    .btn-hero {
        padding: 16px 40px;
        font-size: 1rem;
    }
}

/* Hero Section - Elevated */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8,8,9,0.5), var(--bg));
    z-index: 1; /* Above the image */
}

/* Background video to replace hero image */
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* behind gradient overlay */
}

/* Large subtle rotating words behind hero content to convey vibe */
.hero-bg-words {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* above the gradient overlay, behind the hero text */
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-bg-words::before {
    content: 'MARKETING BOARDROOM STRATEGY TECH VISION';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 8rem);
    color: rgba(255,255,255,0.07);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.35;
    transform: rotate(-2deg) scale(1.02);
    white-space: nowrap;
    pointer-events: none;
}

.hero-bg-words .word {
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 15vw, 12rem);
    color: rgba(255,255,255,0.16);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 0.9;
    transition: opacity 0.8s cubic-bezier(.2,.9,.2,1), transform 0.8s;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    white-space: nowrap;
    text-shadow: 0 0 40px rgba(255,255,255,0.12);
}

[data-theme="light"] .hero-bg-words .word {
    color: rgba(0,0,0,0.06);
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-tag {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: var(--sp-3);
    display: block;
}

.hero h1 {
    font-size: clamp(3.5rem, 12vw, 9rem);
    margin-bottom: var(--sp-4);
    text-transform: uppercase;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto var(--sp-6);
    color: var(--muted);
    font-size: 1.2rem;
    font-weight: 300;
}

.marquee-v2 {
    overflow: hidden;
    width: 100%;
    padding: var(--sp-4) 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 18px rgba(214, 185, 140, 0.25);
    animation: marquee-scroll 18s linear infinite;
}

.marquee-sep {
    color: #ffffff;
}

/* Light theme: make separators use the theme text color (dark) */
[data-theme="light"] .marquee-sep {
    color: var(--text);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Light Mode Specific Enhancements - Motion Background */
[data-theme="light"] .hero h1 {
    color: var(--text);
    background: none;
    -webkit-text-fill-color: var(--text);
}

[data-theme="light"] .hero-media::after {
    /* Softer white gradient for light theme */
    background: linear-gradient(to bottom, rgba(255,255,255,0.18), var(--bg));
}

/* Light theme: make motion blobs more visible using a darker tint */
[data-theme="light"] .blob {
    background: rgba(0,0,0,0.12);
    filter: blur(72px);
    opacity: 0.9;
    mix-blend-mode: multiply;
}

/* Light theme: ensure overlay copy uses dark text for better contrast on light backgrounds */
[data-theme="light"] .work-info,
[data-theme="light"] .work-info h3,
[data-theme="light"] .work-info p,
[data-theme="light"] .skincare-card-copy h3,
[data-theme="light"] .skincare-card-copy p {
    color: var(--text);
}

[data-theme="light"] .skincare-card {
    /* keep overlay legible on light cards */
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
}

.motion-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Make motion blobs subtler in dark mode and more visible in light mode */
[data-theme="dark"] .motion-bg { opacity: 0.12; }
[data-theme="light"] .motion-bg { opacity: 0.9; }

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.7; /* Increased for better visibility in Light Mode */
    animation: move 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; background: var(--accent-glow); }
.blob-2 { bottom: -10%; right: -10%; background: var(--accent-soft); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 300px; height: 300px; opacity: 0.2; animation-duration: 15s; }

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 150px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 768px) {
    .hero {
        height: 100svh; /* Use SVH for better mobile support */
    }
    
    .hero-media {
        opacity: 0.8; /* Ensure image is visible but not overwhelming */
    }
}

/* Visual Grid / Bento Work */
.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: var(--sp-3);
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--sp-2);
    border: 1px solid var(--border);
}

.work-item.large { grid-column: span 8; }
.work-item.small { grid-column: span 4; }

.work-img-wrapper {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.work-item:hover .work-img-wrapper {
    transform: scale(1.05);
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--sp-4);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.work-item:hover .work-info {
    transform: translateY(0);
    opacity: 1;
}

.work-item:hover .work-info h3,
.work-item:hover .work-info p {
    color: #ffffff;
}

/* Expertise Section V2 - Lively with Backgrounds */
.services-v2 {
    background: var(--bg); /* Back to dark */
    position: relative;
    overflow: hidden;
}

.service-row {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-10) 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.service-row:hover {
    padding-left: var(--sp-4);
    background: var(--accent-soft);
}

.service-num {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.service-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    width: 50%;
}

.service-detail {
    max-width: 400px;
    color: var(--muted);
}



/* Removing Duplicate Expertise Section Heading */

.service-row {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-12) 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.service-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2) saturate(0.5);
}

.service-row:hover .service-bg {
    opacity: 1;
}

[data-theme="light"] .services-v2 {
    background: var(--surface); /* Greyish background to contrast with white page */
}

[data-theme="light"] .service-row:hover {
    background: rgba(0,0,0,0.05);
}

[data-theme="light"] .service-row:hover .service-title,
[data-theme="light"] .service-row:hover .service-detail p,
[data-theme="light"] .service-row:hover .service-num {
    color: #FFFFFF; /* Ensure text is visible over dark bg image on hover */
    z-index: 3;
    position: relative;
}

/* How We Grow Brands - Phases */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: var(--sp-8);
    border: 1px solid var(--border);
    border-radius: var(--sp-3);
    /* Removed overflow: hidden to allow hover transforms to be visible */
    background: var(--surface);
    width: 100%;
    position: relative;
}

.phase-card {
    padding: var(--sp-10) var(--sp-4); /* Reduced horizontal padding for better fit */
    border-right: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%; /* Flexible height */
}

.phase-card:hover {
    background: var(--accent-soft);
    transform: translateY(-16px);
    border-right-color: transparent;
    z-index: 5;
}

.phase-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(214, 185, 140, 0.03), 
        rgba(214, 185, 140, 0.08), 
        rgba(214, 185, 140, 0.03), 
        transparent
    );
    z-index: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.phase-card:hover .phase-bg-anim {
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.phase-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: var(--sp-4);
    opacity: 1; /* Increased from 0.8 for maximum visibility */
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.phase-card:hover .phase-icon {
    transform: scale(1.2) rotate(-5deg);
    opacity: 1;
}

.phase-desc {
    font-size: 0.95rem;
    color: var(--text); /* Changed from --muted to --text for better contrast */
    margin-bottom: var(--sp-4);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.phase-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.phase-card:hover::after {
    transform: scaleX(1);
}

.phase-card:last-child { border-right: none; }

/* Ensure borders are handled correctly in multi-row layouts */
@media (max-width: 1400px) {
    .phase-card {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    /* Reset borders for specific items in grid if needed, 
       but keeping them simple for now as it's a cleaner look */
}

.phase-num {
    font-size: 0.65rem; /* Slightly smaller to fit */
    font-weight: 900;
    color: var(--accent);
    margin-bottom: var(--sp-2);
    display: block;
    letter-spacing: 0.15em; /* Reduced letter spacing to prevent overflow */
}

.phase-card h3, 
.phase-card .phase-num, 
.phase-card .phase-tag, 
.phase-card ul {
    position: relative;
    z-index: 2;
}

.phase-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem); /* Responsive heading size */
    margin-bottom: var(--sp-1);
    text-transform: uppercase;
    color: var(--text);
}

.phase-card .phase-tag {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--sp-4);
    display: block;
    opacity: 0.7;
}

.phase-card ul {
    margin-top: var(--sp-4);
}

.phase-card ul li {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: var(--sp-2);
    position: relative;
    padding-left: var(--sp-3);
    transition: var(--transition);
}

.phase-card:hover ul li {
    color: var(--text);
}

.phase-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.phase-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    opacity: 0.6;
    pointer-events: none;
}

.testimonials-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 48px;
}

.testimonial-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transform: translateY(40px);
    opacity: 0;
    animation: testimonial-appear 0.9s ease forwards, float-card 10s ease-in-out 0.9s infinite;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s, 1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.25s, 1.15s; }
.testimonial-card:nth-child(3) { animation-delay: 0.4s, 1.3s; }

.testimonial-card:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 30px 90px rgba(0,0,0,0.18);
}

.testimonial-card {
    transition: transform 0.4s var(--transition), border-color 0.4s var(--transition), box-shadow 0.4s var(--transition);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.testimonial-profile img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    animation: float-photo 8s ease-in-out infinite;
}

.testimonial-profile h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.testimonial-profile span {
    color: var(--muted);
    font-size: 0.9rem;
}

.testimonial-card p {
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
    flex: 1;
}

@keyframes testimonial-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        min-height: auto;
    }
}
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: var(--sp-2);
    color: var(--text);
    font-family: inherit;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
}

/* Footer Enhanced */
.footer-logo .logo-text {
    font-size: 1.8rem;
}

.footer-contact-info {
    margin-top: var(--sp-4);
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-contact-info a {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--sp-2);
    transition: var(--transition);
}

.footer-contact-info a iconify-icon {
    color: var(--accent);
    font-size: 1.2rem;
}

.footer-contact-info a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-icon-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text);
    background: var(--card);
    transition: var(--transition);
}

.social-icon-link:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Navigation Toggle Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: var(--sp-6);
        transition: var(--transition);
        padding: var(--sp-10);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    .nav-links .theme-toggle {
        margin-top: var(--sp-4);
    }
}

/* Overall Section Padding for Mobile */
@media (max-width: 1400px) {
    .phase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .phase-card { 
        padding: var(--sp-8) var(--sp-4);
    }
}

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

@media (max-width: 640px) {
    .phase-grid {
        grid-template-columns: 1fr;
    }
    .phase-card { border-right: none; }
}

@media (max-width: 768px) {
    :root {
        --sp-20: 80px; /* Smaller section padding on mobile */
    }
    
    .section-padding {
        padding: var(--sp-10) 0;
    }
    
    h2 { font-size: 2.5rem !important; }
}

/* Hero Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
}

/* Work Grid Mobile */
@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .work-item.large, .work-item.small {
        grid-column: span 1;
        height: 350px;
    }
}

/* Services Mobile */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
        gap: var(--sp-2);
        padding: var(--sp-6) 0;
    }
    .service-title {
        width: 100%;
        font-size: 1.8rem;
    }
    .service-detail {
        max-width: 100%;
    }
}

/* Contact Section Mobile */
@media (max-width: 1024px) {
    #contact .container > div {
        grid-template-columns: 1fr !important;
        gap: var(--sp-10) !important;
    }
    .contact-form-wrapper {
        padding: var(--sp-6);
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    footer .container > div:first-child {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--sp-8);
    }
    footer .container > div:first-child > div:last-child {
        flex-direction: row;
        justify-content: center;
        gap: var(--sp-8);
        text-align: left; /* Aligns lists cleanly when side-by-side */
    }
    footer .container > div:last-child {
        flex-direction: column;
        gap: var(--sp-4);
        text-align: center;
    }
}
