/* 
  Modern Graphic Designer Portfolio
  Design System & Core Styles
*/

@import "tailwindcss";
@import "tw-animate-css";

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

:root {
    /* Updated Palette: Deep Midnight Navy, Soft Dark Indigo, Electric Blue, Light Lavender */
    --bg-dark: #0B0F1A;
    --bg-navy: #141A2E;
    --accent-warm: #3AA8FF;
    /* Electric Blue */
    --accent-glow: rgba(58, 168, 255, 0.4);
    --accent-secondary: #C9C6FF;
    /* Light Lavender */
    --text-main: #ffffff;
    --text-muted: rgba(201, 198, 255, 0.6);
    /* Tinted with Light Lavender */
    --glass-bg: rgba(201, 198, 255, 0.05);
    --glass-border: rgba(201, 198, 255, 0.12);

    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Legacy compatibility */
    --primary: var(--accent-warm);
    --primary-glow: var(--accent-glow);
    --accent: var(--accent-warm);
    --bg-deep: var(--bg-dark);

    --transition: cubic-bezier(0.165, 0.84, 0.44, 1);

    --text-dim: rgba(255, 255, 255, 0.7);
    --neon-gradient: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-secondary) 100%);
    --container-max: 1440px;
    --radius: 30px;
}

/* Lenis Support */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Gooey Text Intro */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.threshold-svg {
    position: absolute;
    width: 0;
    height: 0;
}

.gooey-container {
    filter: url(#threshold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 200px;
}

.gooey-text {
    position: absolute;
    display: inline-block;
    user-select: none;
    text-align: center;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
    opacity: 0;
}

#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Ensure background elements are behind the canvas or transparent */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-deep);
}

.bg-sphere {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
}

#sphere-1 {
    background: var(--accent-warm);
    top: -20%;
    left: -10%;
    opacity: 0.15;
    width: 1000px;
    height: 1000px;
}

#sphere-2 {
    background: var(--accent-secondary);
    bottom: -10%;
    right: -5%;
    opacity: 0.2;
    /* Stronger glow on the right */
    width: 600px;
    height: 600px;
}

.intro-active {
    overflow: hidden;
}

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

html.lenis {
    height: auto;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none !important;
}

/* Hide cursor on all interactables */
a,
button,
input,
textarea,
.theme-toggle,
.project-card,
.magnetic {
    cursor: none !important;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* Animations & Transitions */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    border: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-warm);
    color: #fff;
    box-shadow: 0 10px 30px rgba(58, 168, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(58, 168, 255, 0.5);
    color: var(--accent-warm);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(58, 168, 255, 0.3);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-warm);
    background: rgba(58, 168, 255, 0.05);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(58, 168, 255, 0.1);
    padding: 1rem 5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-warm);
}

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



.nav-item {
    font-family: var(--font-main);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.nav-item:hover {
    color: var(--accent-warm);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    overflow: hidden;
    z-index: 2;
}

.hero-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(201, 198, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 198, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -1;
    mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align items */
    gap: 1.5rem;
    max-width: 1100px;
    position: relative;
}

.role-wrapper {
    font-size: 0.85rem;
    color: var(--accent-warm);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 6rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-left: 0;
    text-align: left;
    /* Left align text */
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

h1::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 5%;
    height: 90%;
    width: 4px;
    background: var(--neon-gradient);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
        padding-left: 1rem;
        white-space: normal;
        /* Allow wrap on mobile */
    }

    h1::before {
        left: -1rem;
    }
}

.tagline {
    color: #eee;
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    max-width: 650px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 6rem;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .tagline {
        margin: 0 auto;
    }

    .cta-group {
        justify-content: center;
        gap: 1rem;
    }

    .hero-visual {
        justify-content: center;
        margin-top: 2rem;
    }
}

.btn-primary {
    background-color: var(--accent-warm);
    color: #000;
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.btn-secondary:hover {
    border-color: var(--accent-warm);
    background: rgba(212, 175, 55, 0.05);
}

/* Layers Panel (Hero Visual) */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    perspective: 1200px;
}

.ps-panel {
    background: #2b2b2b;
    width: 320px;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(58, 168, 255, 0.1);
    transform: rotateY(-15deg) rotateX(10deg);
    overflow: hidden;
    border: 1px solid #3e3e3e;
    animation: float 10s infinite ease-in-out;
    transition: all 0.5s ease;
}

.ps-panel.ai-theme {
    --software-accent: var(--accent-secondary);
    border-color: rgba(201, 198, 255, 0.3);
}

.ps-panel.pr-theme {
    --software-accent: #B0AFFF;
    border-color: rgba(176, 175, 255, 0.3);
}

.ps-panel.vs-theme {
    --software-accent: #2D5BFF;
    border-color: rgba(45, 91, 255, 0.3);
}

.ps-panel.ps-theme {
    --software-accent: var(--accent-warm);
}

:root {
    --software-accent: var(--accent-warm);
}

.ps-top-bar {
    background: #3c3c3c;
    border-bottom: 1px solid #1a1a1a;
}

.ps-header {
    padding: 8px 12px;
    font-size: 11px;
    color: #bbb;
    display: flex;
    justify-content: space-between;
}

.ps-body {
    display: flex;
    height: 280px;
}

.ps-toolbar {
    width: 40px;
    background: #333;
    border-right: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 15px;
}

.tool-icon {
    color: #888;
    transition: all 0.3s ease;
}

.tool-icon i {
    width: 14px;
    height: 14px;
}

.tool-icon.active {
    color: var(--software-accent);
}

.ps-workspace {
    flex: 1;
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
}

.workspace-content {
    width: 100%;
    height: 100%;
}

.canvas-view {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.canvas-mask {
    width: 60%;
    height: 60%;
    background: #2a2a2a;
    border: 1px solid #444;
}

.timeline-view {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    transition: opacity 0.5s ease;
}

.timeline-track {
    height: 12px;
    background: #2a2a2a;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.timeline-track::after {
    content: '';
    position: absolute;
    left: 10%;
    width: 40%;
    height: 100%;
    background: var(--software-accent);
    opacity: 0.3;
}

.timeline-playhead {
    position: absolute;
    top: 0;
    left: 30%;
    width: 1px;
    height: 100%;
    background: #ff0000;
}

.editor-view {
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    transition: opacity 0.5s ease;
}

.code-line {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.code-line span {
    color: #555;
    font-size: 9px;
    min-width: 10px;
}

.code-text {
    height: 8px;
    border-radius: 1px;
    margin-top: 2px;
}

.code-text.c1 {
    width: 60%;
    background: #007acc;
    opacity: 0.4;
}

.code-text.c2 {
    width: 40%;
    background: #ea77ff;
    opacity: 0.4;
}

.ps-sidebar {
    width: 120px;
    background: #2b2b2b;
    border-left: 1px solid #1a1a1a;
}

.ps-tabs {
    background: #333;
    display: flex;
    padding: 0 10px;
    border-bottom: 1px solid #1a1a1a;
}

.ps-tab {
    padding: 8px 12px;
    font-size: 9px;
    color: #eee;
    border-bottom: 2px solid var(--software-accent);
    transition: border-color 0.5s ease;
}

.ps-layers-list {
    background: #2b2b2b;
    padding: 10px 0;
}

.layer-item {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #333;
    gap: 8px;
}

.layer-item.active {
    background: #444;
}

.layer-vis i {
    width: 10px;
    height: 10px;
    color: #888;
}

.layer-name {
    font-size: 9px;
    color: #ccc;
    flex: 1;
}

.hidden {
    display: none !important;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-15deg) rotateX(10deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-12deg) rotateX(8deg);
    }
}

.ps-header-dots {
    display: flex;
    gap: 4px;
}

.ps-header-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #555;
}

.layer-vis i {
    width: 12px;
    height: 12px;
    color: #888;
}

.layer-thumb.main-img {
    background: var(--neon-gradient);
}

.layer-thumb.bg-img {
    background: #111;
}

.hero-label {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.6;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--text-main);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: var(--accent-warm);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

.vh-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Section Utilities */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-gradient {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Visual Storytelling Section */
.storytelling-section {
    position: relative;
    z-index: 10;
}

.story-card {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 40px;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

.story-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
    /* Increased from 500px to ensure footer fits */
}

.story-content {
    flex: 1.1;
    /* Reduced from 1.2 to give more room to visual */
    padding: 4rem 2rem 4rem 4rem;
    /* Reduced right padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.story-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(127, 90, 240, 0.05) 0%, transparent 70%);
    min-height: 400px;
}

.story-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2rem;
    width: fit-content;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse-dot.green {
    background: #22c55e;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.story-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.story-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 450px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.profile-img:hover img {
    filter: grayscale(0);
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Increased gap */
    flex-wrap: nowrap;
    /* Prevent wrapping which might hide items */
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: fit-content;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 700;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

.image-showcase {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    /* Keeping it square for a premium feel */
    border-radius: 30px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: rotate(3deg);
    transition: all 0.6s var(--transition);
}

.image-showcase:hover {
    transform: rotate(0) scale(1.02);
}

.main-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.5s ease;
}

.image-showcase:hover .main-portrait {
    filter: grayscale(0);
}

@media (max-width: 1024px) {
    .story-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .story-layout {
        flex-direction: column;
    }

    .story-content {
        padding: 3.5rem 1.25rem;
        text-align: center;
        align-items: center;
    }

    .story-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .story-desc {
        max-width: 100%;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .profile-meta {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .stats-row {
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .stat-item {
        align-items: center;
    }

    .stat-val {
        font-size: 1.2rem;
    }

    .stat-lbl {
        font-size: 0.4rem;
        white-space: normal;
        max-width: 60px;
    }

    .stat-divider {
        height: 15px;
    }

    .story-visual {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .image-showcase {
        transform: rotate(0);
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

.project-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
}

.project-image {
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.project-info {
    padding: 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    width: 100%;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}

.project-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transform: translateZ(15px);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0;
    transform: translateZ(30px);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Animations Trigger Classes */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
}

/* Responsiveness */
@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 1.5rem;
    }

    .hero-headline {
        font-size: 2.8rem;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .ps-panel {
        width: min(320px, 100%);
        transform: rotateY(0) rotateX(0);
        margin: 0 auto;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--text-main);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.custom-cursor.active {
    transform: translate(-50%, -50%) scale(2.5);
    background: var(--primary);
    mix-blend-mode: normal;
}

.cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

@media (max-width: 1024px) {

    .custom-cursor,
    .cursor-glow {
        display: none !important;
    }
}

/* Philosophy Section */
.philosophy-section {
    background: radial-gradient(circle at 10% 20%, rgba(127, 90, 240, 0.05) 0%, transparent 50%);
}

.quote-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.1;
}

.quote-line {
    width: 100px;
    height: 4px;
    background: var(--neon-gradient);
    margin: 0 auto 5rem;
    border-radius: 2px;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-warm), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 204, 51, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 60px;
    /* Adjusted from 100px for icons */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: var(--primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    z-index: 2;
}

.timeline-year i {
    width: 24px;
    height: 24px;
}

.timeline-content {
    width: 38%;
    padding: 1.5rem;
    text-align: left;
}

.service-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .timeline-container {
        padding: 2rem 1.5rem;
    }

    .timeline-line {
        left: 45px;
    }

    .timeline-item {
        flex-direction: row !important;
        justify-content: flex-start;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        min-width: 50px;
        z-index: 3;
    }

    .timeline-content {
        width: calc(100% - 80px);
        padding: 1.5rem;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    text-align: center;
    transition: all 0.4s var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 2rem;
    color: var(--primary);
}

.service-icon i {
    width: 30px;
    height: 30px;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

/* Testimonial Section */
.testimonial-track {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 400px;
    padding: 3rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0;
}

.author-info p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Contact Section */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Taped Footer */
.taped-footer {
    margin: 4rem auto 2rem;
    padding: 0 1rem;
    max-width: 1100px;
    color: var(--text-main);
}

.taped-container {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
    .taped-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 4rem 3rem;
    }
}

.tape-svg {
    position: absolute;
    width: 80px;
    height: 36px;
    transform: scale(0.75);
    display: none;
    pointer-events: none;
}

@media (min-width: 768px) {
    .tape-svg {
        display: block;
    }
}

.tape-left {
    top: -1rem;
    left: -2rem;
}

.tape-right {
    top: -1rem;
    right: -2rem;
    transform: rotate(90deg) scale(0.75);
}

.footer-brand h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.footer-brand p {
    color: var(--text-muted);
    font-weight: 500;
    max-width: 320px;
}

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

@media (min-width: 992px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, auto);
        gap: 5rem;
    }
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.badge-soon {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 1rem;
    margin-left: 0.3rem;
    display: inline-block;
    vertical-align: middle;
}

.footer-bottom {
    margin-top: 1rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
    }
}

.copyright-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .copyright-links {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }
}

.copyright-links p {
    color: var(--text-dim);
}

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

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

.footer-socials a {
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: var(--primary);
}

/* Responsive Utilities */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .hidden-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-header {
        justify-content: flex-end;
        padding: 1.5rem 2rem;
    }

    .logo {
        display: none;
    }

    .main-header.scrolled {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        padding: 1.5rem 2rem;
    }
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 2000;
}

.mobile-toggle-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

.mobile-toggle-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-toggle-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 7, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.mobile-nav-item {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.mobile-nav-item:hover {
    color: var(--accent-warm);
}

.hidden {
    display: none !important;
}

/* ---------------------------------------------------------
   Contact Links Section 
--------------------------------------------------------- */
.contact-links-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    /* Matching story-card */
    text-decoration: none;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-warm);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 204, 51, 0.1);
}

.contact-label {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-value {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 2.5rem 2rem;
        text-align: left;
    }

    .contact-label {
        font-size: 1.1rem;
    }

    .contact-value {
        font-size: 0.85rem;
        word-break: break-all;
    }
}

.footer-brand h2 span {
    color: var(--accent-warm);
}