/* ================================
   project-page.css
   mc.labucca portfolio — Optimized
   ================================
   OPTIMIZATIONS APPLIED:
   [PERF] will-change already present on cursor elements (good)
   [INFO] Duplicate :root block — see NOTE below

   NOTE: :root variables (lines below) are duplicated across
   main.css, work.css, and project-page.css. To eliminate the
   ~144 lines of duplication, extract them to base.css and load
   it first in every HTML page. See AUDIT_REPORT.md §10.
   ================================ */
:root {
    --primary: #6840B8;
    --secondary: #B39DDB;
    --dark: #111111;
    --white: #FFFFFF;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --gradient: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* [PERF] was `all` — now specific to avoid transitioning expensive properties */
    --transition-slow: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* [PERF] was `all` */
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ================================
   Custom Cursor - Minimal Stable Pencil
   ================================ */
/* Main cursor pointer - visible dot at the tip */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    position: fixed;
    top: -5px;
    left: -5px; /* [PERF] Offset so transform:translate(x,y) centers dot on cursor point */
    pointer-events: none;
    z-index: 100002;
    transition: opacity 0.15s ease;
    opacity: 0;
    will-change: transform;
    box-shadow: 0 0 0 2px rgba(104, 64, 184, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.cursor-dot.active {
    opacity: 1;
}

.cursor-dot.hover {
    /* transform: scale(1.3) — now applied in JS animateCursor() to avoid CSS/JS transform conflicts */
    background: #8B5CF6;
}

/* Minimal pencil design - stable and clean */
.cursor-outline {
    width: 24px;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0; /* [PERF] Positioning via transform:translate() in JS — no layout reflow */
    pointer-events: none;
    z-index: 100001;
    transition: opacity 0.3s ease;
    opacity: 0;
    will-change: transform;
    --pencil-rotation: -230deg;
    /* transform handled entirely in JS animateCursor() as translate(x,y)+rotate(-230deg) */
    transform-origin: 86% 53%; /* pivot near pencil tip — JS relies on this */
}

.cursor-outline.active {
    opacity: 1;
}

/* Pencil body */
.cursor-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 50px;
    background: linear-gradient(to bottom,
            #FF6B9D 0%,
            #FF6B9D 12%,
            var(--primary) 12%,
            var(--primary) 88%,
            #333 88%,
            #1a1a1a 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* Pencil tip */
.cursor-outline::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #1a1a1a;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

/* Continuous curved line trail using SVG */
.cursor-trail-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(3px);
}

.cursor-trail-svg.active {
    opacity: 1;
}

.cursor-trail-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
    filter: drop-shadow(0 0 3px rgba(104, 64, 184, 0.4));
    animation: trailFade 1.5s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 0.8;
        stroke-width: 2.5;
    }

    100% {
        opacity: 0;
        stroke-width: 1.5;
    }
}

/* Sketch marks on click */
.cursor-sketch {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 12px;
    background: rgba(104, 64, 184, 0.6);
    pointer-events: none;
    z-index: 99999;
    animation: sketchFade 0.5s ease-out forwards;
    will-change: transform, opacity;
    transform-origin: center;
    border-radius: 1px;
    filter: blur(3px);
}

@keyframes sketchFade {
    0% {
        opacity: 0.8;
        transform: scale(1) rotate(var(--rotation));
    }

    100% {
        opacity: 0;
        transform: scale(0.7) rotate(var(--rotation)) translateY(5px);
    }
}

/* Cursor hover effects */
a:hover~.cursor-outline,
button:hover~.cursor-outline,
.filter-chip:hover~.cursor-outline,
.project-card:hover~.cursor-outline {
    opacity: 0.8;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline,
    .cursor-trail-svg,
    .cursor-sketch {
        display: none;
    }

    /* Reduce animation complexity on mobile for better performance */
    .bg-shape,
    .dots-pattern,
    .grid-background,
    .particle {
        animation-duration: 40s;
        /* Slower animations */
    }

    .tech-stack::before {
        animation: none;
        /* Disable glow pulse on mobile */
        opacity: 0.8;
    }
}

/* ================================
   Images & Links
   ================================ */
img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

/* ================================
   Typography
   ================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* ================================
   Container & Layout
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(104, 64, 184, 0.4);
}

.btn-primary:hover {
    background: #5834a0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 64, 184, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ================================
   Page Loader - Universal
   ================================ */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: loaderFadeIn 0.6s ease-out;
    will-change: transform, opacity;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-logo {
    position: relative;
    margin-bottom: 1.5rem;
}

.loader-square {
    font-size: 4rem;
    color: var(--primary);
    display: inline-block;
    animation: logoScale 1.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes logoScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary);
    border-radius: 2px;
    animation: squarePulse 1.2s ease-in-out infinite;
}

@keyframes squarePulse {

    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.6;
        transform: rotate(0deg);
    }

    50% {
        transform: scale(1);
        opacity: 1;
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        transform: rotate(360deg);
    }
}


.loader-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--dark);
    letter-spacing: 0.05em;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Prevent body scroll when loader is active */
body.loader-active {
    overflow: hidden;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    font-family: 'JetBrains Mono', monospace;
}

.logo-bracket {
    color: var(--primary);
}

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

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(104, 64, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.nav-cta:hover::before {
    width: 300px;
    height: 300px;
}

.nav-cta:hover {
    background: #5834a0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 64, 184, 0.5);
}

.nav-cta svg {
    transition: var(--transition);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ================================
   CSS FOR HOME PAGE
   ================================ */

/* ================================
   Hero Section
   ================================ */

/* ================================
   Section Headers
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    color: var(--dark);
    margin: 1rem 0;
}

.section-description {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ================================
   Project Intro & Breadcrumbs
   ================================ */
.project-intro {
    padding: 7rem 0 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-400);
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 600;
}

.project-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin: 0;
}

/* Project Action Buttons - Simple & Generic */
.project-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Primary Button - Filled Purple */
.project-btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.project-btn-primary:hover {
    background: #5834a0;
    border-color: #5834a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 64, 184, 0.3);
}

.project-btn-primary svg {
    transition: transform 0.3s ease;
}

.project-btn-primary:hover svg {
    transform: translate(2px, -2px);
}

/* Secondary Button - Outline Style */
.project-btn-secondary {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
}

.project-btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--dark);
    transform: translateY(-2px);
}

.project-btn-secondary svg {
    transition: transform 0.3s ease;
}

.project-btn-secondary:hover svg {
    transform: translate(2px, -2px);
}

/* Responsive: Project Buttons */
@media (max-width: 768px) {
    .project-name {
        font-size: 2rem;
    }
    
    .project-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .project-name {
        font-size: 1.75rem;
    }
    
    .project-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }
}
/* ================================
   Hero Image
   ================================ */
.project-hero {
    padding: 2rem 0;
}

.hero-image-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-container iframe.hero-image {
    width: 100%;
    height: 500px; /* adjust this value to your liking */
    display: block;
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

/* ================================
   Project Meta Info
   ================================ */
.project-meta {
    padding: 3rem 0;
}

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

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

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



.meta-item {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* ================================
   Project Sections
   ================================ */
.project-section {
    padding: 4rem 0;
}

.project-section.bg-light {
    background-color: var(--gray-50);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1rem 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0 0 2rem 0;
}

.section-content {
    max-width: 800px;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.content-list {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.content-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.content-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Project Tags */
.projectpage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

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

/* ================================
   Design Process - Scalable Images
   ================================ */
/* ================================
   Design Process Images - Grid System
   ================================ */
.process-images {
    margin-top: 2rem;
}

/* Default: Full-width stacked images (no grid) */
.process-images:not([class*="grid-"]) .process-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.process-images:not([class*="grid-"]) .process-image:last-child {
    margin-bottom: 0;
}

/* Grid Layouts */
.process-images[class*="grid-"] {
    display: grid;
    gap: 1.5rem;
}

.process-images[class*="grid-"] .process-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Square images */
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

/* 1 Column */
.process-images.grid-1 {
    grid-template-columns: 1fr;
}

/* 2 Columns */
.process-images.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 Columns */
.process-images.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 Columns */
.process-images.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 5 Columns */
.process-images.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ================================
   Grid Responsive Breakpoints
   ================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .process-images[class*="grid-"] {
        gap: 1rem;
    }
    
    /* 5 columns → 3 columns */
    .process-images.grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 4 columns → 2 columns */
    .process-images.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 3 columns → 2 columns */
    .process-images.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 2 columns stays 2 columns */
    /* 1 column stays 1 column */
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .process-images[class*="grid-"] {
        gap: 0.75rem;
    }
    
    /* 5 columns → 2 columns */
    .process-images.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 4 columns → 2 columns */
    .process-images.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 3 columns → 2 columns */
    .process-images.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 2 columns → 1 column */
    .process-images.grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* 1 column stays 1 column */
}

/* ================================
   Results Grid
   ================================ */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.875rem;
    color: var(--gray-600);

}

/* ================================
   Client Feedback
   ================================ */
.feedback-container {
    max-width: 800px;
}

.feedback-quote {
    position: relative;
    padding: 2rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feedback-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-700);
    font-style: italic;
    margin: 0;
}

.feedback-author {
    padding-left: 2rem;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25rem 0;
}

.author-role {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

/* ================================
   Slide Deck CTA
   ================================ */
.slide-deck-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient);
    border-radius: 1rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1rem 0;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Suggested Projects
   ================================ */
.suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* from 320px to 280px for better mobile fit */
    gap: 2rem;
    margin: 3rem 0;
    justify-items: center; /*Newly added to center cards in wider screens*/
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(104, 64, 184, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.card-label {
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.75rem 0;
}

.card-description {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tag {
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.back-link-container {
    text-align: center;
    margin-top: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    content-visibility: auto;
    contain: layout style paint;
}

.project-card.hidden {
    display: none;
}

.project-card.fade-out {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.fade-in {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.project-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    overflow: hidden;
}

.project-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    background: var(--gray-200);
}

/* Fallback for broken/missing images */
.project-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(104, 64, 184, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
}

.project-thumbnail:not([src]),
.project-thumbnail[src=""],
.project-thumbnail[src*="placeholder"] {
    opacity: 0;
}

.project-thumbnail:not([src])::before,
.project-thumbnail[src=""]::before,
.project-thumbnail[src*="placeholder"]::before {
    opacity: 1;
}

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

.project-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.project-date svg {
    color: var(--primary);
    flex-shrink: 0;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.project-description {
    flex-grow: 1;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    gap: 1rem;
}

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

/* ================================
   About Me Section
   ================================ */

/* ================================
   Design Process Section
   ================================ */

/* ================================
   Section Divider
   ================================ */

/* ================================
   Featured Works Section
   ================================ */

/* ================================
   Technology Arsenal Section
   ================================ */

/* ================================
   Testimonials Section
   ================================ */
.testimonials {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.testimonials .section-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--gray-600);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(104, 64, 184, 0.1), rgba(139, 92, 246, 0.1));
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #FFA500;
}

.testimonial-text {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    line-height: 0;
    margin-right: 0.25rem;
}

.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    line-height: 0;
    margin-left: 0.25rem;
}

/* ================================
   Testimonials Responsive Design
   ================================ */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-avatar {
        width: 48px;
        height: 48px;
    }
}

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

    .footer-logo .logo-text {
        font-size: 1.1rem;
    }
}

/* ================================
   Contact Section
   ================================ */
.contact {
    position: relative;
    overflow: hidden;
}

.floating-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: floatParticle 15s ease-in-out infinite;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: floatParticle 18s ease-in-out infinite 2s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 30%;
    animation: floatParticle 20s ease-in-out infinite 4s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 60%;
    animation: floatParticle 16s ease-in-out infinite 6s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 90%;
    animation: floatParticle 22s ease-in-out infinite 8s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(50px, -80px) scale(1.5);
        opacity: 0.5;
    }

    50% {
        transform: translate(100px, -40px) scale(1);
        opacity: 0.4;
    }

    75% {
        transform: translate(50px, -120px) scale(1.2);
        opacity: 0.6;
    }
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-method svg {
    color: var(--primary);
    flex-shrink: 0;
}

.method-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.method-value {
    font-weight: 600;
    color: var(--dark);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 12px;
    color: var(--gray-600);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

/* ================================
   Contact Form
   ================================ */
.contact-form {
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ================================
   Footer Section
   ================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-text {
    color: var(--gray-400);
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray-400);
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

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

.footer-bottom-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ================================
   Footer Real-Time Clock
   ================================ */
.footer-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
}

.time-icon {
    color: #FFA500;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.time-icon.night {
    color: #8B9DC3;
}

.time-icon:hover {
    transform: rotate(20deg);
}

#timeText {
    font-family: 'JetBrains Mono', monospace;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(104, 64, 184, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #5834a0;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(104, 64, 184, 0.6);
}

.back-to-top svg {
    transition: var(--transition);
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* ================================
   Home Page Responsive Design
   ================================ */
@media (max-width: 968px) {

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        align-items: flex-start;
    }

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

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .result-number {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .result-label {
        font-size: 0.875rem;
        color: var(--gray-600);

    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ================================
   CSS FOR ABOUT PAGE
   ================================ */

/* ================================
   About Page 
   ================================ */

/* About Hero Section */

/* About CTA Section */
.about-cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: rotate 20s linear infinite;
}

.about-cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.about-cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.about-cta-section .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-4px);
}

.about-cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.about-cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

/* ================================
   About Page Responsive Design
   ================================ */
@media (max-width: 1024px) {}

@media (max-width: 768px) {

    .about-cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {}

/* ================================
   CSS FOR CONTACT PAGE
   ================================ */

/* Hero Section with Animated Background */
.contact-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #6840B8 0%, #8B5CF6 100%);
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.contact-hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
}

.hero-particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.hero-particle:nth-child(2) {
    width: 60px;
    height: 60px;
    right: 15%;
    top: 40%;
    animation-delay: 2s;
}

.hero-particle:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 50%;
    bottom: 10%;
    animation-delay: 4s;
}

.hero-particle:nth-child(4) {
    width: 40px;
    height: 40px;
    right: 30%;
    top: 60%;
    animation-delay: 1s;
}

.hero-particle:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 25%;
    bottom: 25%;
    animation-delay: 3s;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.contact-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.contact-hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Contact Section */
.contact-main {
    padding: 5rem 0;
    background: var(--gray-50);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Info Cards */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.availability-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    animation: slideInLeft 0.8s ease-out;
}

.availability-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.availability-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1);
    }
}

.availability-header h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin: 0;
}

.availability-text {
    color: var(--gray-600);
    line-height: 1.8;
}

.timezone-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timezone-icon {
    font-size: 1.5rem;
}

.timezone-text {
    flex: 1;
}

.timezone-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.timezone-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Methods */
.contact-methods-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--gray-200);
    animation: slideInLeft 1s ease-out;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-method:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contact-method svg {
    color: var(--primary);
    flex-shrink: 0;
}

.method-info {
    flex: 1;
}

.method-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.method-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

/* Social Links Card */
.social-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--gray-200);
    animation: slideInLeft 1.2s ease-out;
}

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

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.social-link-card:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(104, 64, 184, 0.3);
}

.social-link-card svg {
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.social-link-card:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.social-name {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Enhanced Contact Form */
.contact-form-section {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-description {
    color: var(--gray-600);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(104, 64, 184, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.input-icon {
    position: relative;
}

.input-icon input,
.input-icon textarea {
    padding-left: 3rem;
}

.input-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.input-icon.focused svg {
    color: var(--primary);
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* .submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(104, 64, 184, 0.4);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: #5834a0;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(104, 64, 184, 0.5);
}

.submit-btn svg {
    transition: var(--transition);
}

.submit-btn:hover svg {
    transform: rotate(45deg);
}

.submit-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
} */

.btn-loader {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.show {
    display: flex;
}

.form-message.success {
    background: #ECFDF5;
    color: #065F46;
    border: 2px solid #10B981;
}

.form-message.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 2px solid #EF4444;
}

/* Floating Animation for Form Elements */
.form-group {
    animation: fadeIn 0.6s ease-out backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Elements */
/* .decorative-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: blob-float 20s infinite ease-in-out;
    z-index: 0;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #8B5CF6;
    bottom: -150px;
    left: -100px;
    animation-delay: 4s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
} */

/* Ripple Effect Animation */
@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ================================
   Contact Page Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 30vh;
        padding-top: 100px;
    }

    .contact-hero-title {
        font-size: 2.5rem;
    }

    .contact-hero-subtitle {
        font-size: 1.25rem;
    }

    .form-card {
        padding: 2rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .decorative-blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }

    .contact-hero-subtitle {
        font-size: 1.125rem;
    }

    .form-card {
        padding: 1.5rem;
    }
}

#cursor-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
}

#cursorRibbon {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
}

/* ================================
   Media Fullscreen / Lightbox
   ================================ */

/* Wrapper injected around each image/video */
.media-wrapper {
    position: relative;
    display: block;
    line-height: 0;
}

/* Expand icon — HIDDEN (using zoomable icon instead) */
.media-fullscreen-btn {
    display: none !important;
}

/* ── Lightbox shell ── */
.media-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.media-lightbox.open {
    opacity: 1;
    visibility: visible;
}

/* ── Top bar: counter + close ── */
.media-lightbox-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    /* let clicks fall through to overlay */
}

.media-lightbox-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    pointer-events: none;
    user-select: none;
}

.media-lightbox-close {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    pointer-events: all;
    /* re-enable for button */
    flex-shrink: 0;
}

.media-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Media stage ── */
.media-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: default;
    padding: 56px 80px 72px;
    /* top=topbar, sides=nav btns, bottom=space */
    box-sizing: border-box;
}

.media-lightbox-stage img,
.media-lightbox-stage video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
    display: block;
    animation: lbScale 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes lbScale {
    from {
        transform: scale(0.94);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Prev / Next nav buttons ── */
.media-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.media-lightbox-nav:hover {
    background: rgba(104, 64, 184, 0.8);
    transform: translateY(-50%) scale(1.08);
}

.media-lightbox-nav:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.media-lightbox-prev {
    left: 14px;
}

.media-lightbox-next {
    right: 14px;
}

/* ── Bottom dots indicator ── */
.media-lightbox-dots {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}

.media-lightbox-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.media-lightbox-dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .media-lightbox-stage {
        padding: 56px 56px 64px;
    }

    .media-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .media-lightbox-prev {
        left: 8px;
    }

    .media-lightbox-next {
        right: 8px;
    }
}

/* ================================================================
   MOBILE & PERFORMANCE OPTIMIZATIONS
   [PERF] Appended — does not affect desktop styles
   ================================================================ */

/* Eliminate 300ms tap delay on all interactive elements */
a, button, .btn, .filter-chip, .nav-toggle, .project-card,
.back-to-top, .social-link, .social-link-card, .pagination-number,
.pagination-btn, input, textarea, select, label {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    /* Remove GPU layer hints on elements that don't animate on mobile */
    .cursor-dot, .cursor-outline, .cursor-sketch,
    .floating-card, .image-glow {
        will-change: auto;
    }

    /* Replace expensive backdrop-filter with solid fallback on mobile */
    .navbar, .nav-menu {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(255, 255, 255) !important;
    }

    /* Simplify box-shadows to reduce paint cost */
    .project-card, .process-step, .skill-category, .stat-item,
    .contact-card, .form-card, .availability-card,
    .contact-methods-card, .social-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    }

    /* CSS containment — prevents card/section reflow from cascading up the tree */
    .projects-grid, .design-process, .about-skills,
    .tech-stack-section, .contact-section {
        contain: layout style;
    }

    /* Avoid painting background shapes that are invisible at mobile sizes */
    .bg-shape, .dots-pattern::before, .grid-background::before {
        display: none;
    }

    /* Lazy-render off-screen images */
    img {
        content-visibility: auto;
    }
}

/* Hide decorative particles & floating cards on small screens */
@media (max-width: 480px) {
    .floating-particles, .floating-card,
    .image-accent-circle, .image-glow, .scroll-indicator {
        display: none;
    }
}

/* Respect system reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .page-loader { display: none !important; }
}