/* ============================================
   PORTFOLIO WEBSITE - MINIMALIST DARK MODE
   Linear/Vercel-Inspired Professional Design
   ============================================ */

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

/* ============================================
   COLOR SCHEME - Minimalist Dark Mode
   ============================================ */
:root {
    /* Primary Colors - Minimalist Palette */
    --primary-dark: #0a0a0a;
    --primary-light: #1a1a1a;
    --primary-card: #151515;
    --primary-accent: #0ea5e9;
    
    /* Secondary Colors - Subtle & Professional */
    --secondary-accent: #64748b;
    --secondary-hover: #e5e7eb;
    
    /* Neutral Colors - High Contrast */
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --text-muted: #737373;
    --border-color: #262626;
    --border-light: #404040;
    
    /* Accent - Sky Blue (Linear-inspired) */
    --accent-blue: #0ea5e9;
    --accent-blue-light: rgba(14, 165, 233, 0.1);
    --accent-blue-muted: rgba(14, 165, 233, 0.05);
}

/* ============================================
   TYPOGRAPHY & GLOBAL STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent sideways scroll on mobile */
}

body {
    background: var(--primary-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    letter-spacing: -0.3px;
    cursor: none;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='400' height='400' fill='%23000' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    background-attachment: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ============================================
   BACKGROUND & EFFECTS
   ============================================ */
.abstract-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(14, 165, 233, 0.08) 25%, rgba(14, 165, 233, 0.08) 26%, transparent 27%, transparent 74%, rgba(14, 165, 233, 0.08) 75%, rgba(14, 165, 233, 0.08) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(14, 165, 233, 0.08) 25%, rgba(14, 165, 233, 0.08) 26%, transparent 27%, transparent 74%, rgba(14, 165, 233, 0.08) 75%, rgba(14, 165, 233, 0.08) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: none;
}

/* Ambient gradient + particles overlay */
.ambient-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0; /* painted after .abstract-bg, behind content */
    background:
        radial-gradient(900px 900px at 25% 30%, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0.06) 40%, rgba(14, 165, 233, 0.02) 60%, transparent 70%),
        radial-gradient(800px 800px at 75% 70%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.01) 60%, transparent 70%);
    background-repeat: no-repeat;
    animation: gradientDrift 28s ease-in-out infinite alternate;
}

@keyframes gradientDrift {
    0% {
        background-position: 20% 30%, 80% 70%;
    }
    50% {
        background-position: 60% 40%, 40% 60%;
    }
    100% {
        background-position: 30% 70%, 70% 30%;
    }
}

/* Light follow cursor effect */
.light-follow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.4) 0%, rgba(14, 165, 233, 0.2) 20%, rgba(14, 165, 233, 0.05) 50%, transparent 70%);
    filter: blur(40px);
    opacity: 0.7;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

/* Custom cursor dot */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: rgba(14, 165, 233, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

/* Custom cursor ring */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(14, 165, 233, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* ============================================
   NAVIGATION BAR - Frosted Glass
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: -0.5px;
    text-decoration: none; /* ensure anchor has no underline */
}

.logo-bracket {
    color: var(--accent-blue);
    font-weight: 700;
}

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

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

.nav-link-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-light);
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link-btn::after {
    display: none;
}

.nav-link-btn:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(14, 165, 233, 0.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 300; /* keep burger above content on all pages */
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

section {
    position: relative;
    z-index: 2;
}

/* ============================================
   BUTTONS & CTA
   ============================================ */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    letter-spacing: -0.3px;
    position: relative;
    overflow: hidden;
}

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

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background: #0d95d9;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1.5px solid var(--border-light);
    color: var(--text-primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--accent-blue-muted);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    margin-top: 80px;
    padding: 40px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out;
    flex-wrap: wrap;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-content {
    flex: 0 1 auto;
    text-align: center;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    transition: all 0.4s ease;
}

.hero-title:hover {
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.gradient-text {
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.hero-title:hover .gradient-text {
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-graphic {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out;
}

/* Scroll cue for hero */
.scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    color: #fff;
    opacity: 0.9;
    transition: all 0.3s ease;
    pointer-events: auto;
    text-decoration: none;
}

.scroll-cue:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.scroll-cue .curved-arrow {
    width: 72px;
    height: auto;
}

.scroll-cue .handwriting {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #fff;
    transform: rotate(-5deg);
}

@keyframes cuePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.0); }
    50% { box-shadow: 0 0 12px 0 rgba(14, 165, 233, 0.15); }
}

@keyframes cueBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.code-block {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

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

.code-header {
    background: var(--primary-light);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
    color: var(--accent-blue);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-block code {
    line-height: 1.8;
}

/* ============================================
   CAROUSEL STYLES
   ============================================ */
.carousel-container {
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
}

.featured-carousel {
    display: flex;
    gap: 0;
    overflow: visible;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.featured-card {
    flex: 0 0 100%;
    min-width: 100%;
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -70px;
}

.carousel-next {
    right: -70px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: none;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: var(--accent-blue);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--accent-blue);
    width: 30px;
    border-radius: 5px;
}


.featured {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.featured h2,
.skills h2,
.projects h2,
.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.featured-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
    transform: translateY(-6px);
    transition: all 0.4s ease;
    animation: none;
}

.featured-card:nth-child(1) { animation-delay: 0.1s; }
.featured-card:nth-child(2) { animation-delay: 0.2s; }
.featured-card:nth-child(3) { animation-delay: 0.3s; }

.featured-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-card) 100%);
    object-fit: cover;
    display: block;
}

.featured-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.featured-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.featured-card .btn {
    margin: 0 1.5rem 1.5rem;
    display: inline-block;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.skill-item {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
}

.skill-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
    transform: translateY(-8px);
    background: var(--primary-card);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
    gap: 2rem;
}

.skill-item {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }

.skill-item:hover {
    border-color: var(--accent-blue);
    background: var(--primary-card);
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.08);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-item:hover .skill-icon {
    transform: scale(1.15) rotateY(360deg);
}

.skill-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.skill-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   TILTED STACKS (Skills & Process)
   ============================================ */
.tilted-stack {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 90px; /* space for overlapping */
    perspective: 1000px;
}

.tilted-stack .stack-card {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    cursor: none;
}

/* Layering offsets for the deck */
.tilted-stack .stack-card:nth-child(1) {
    transform: rotate(-3deg) translateX(0);
    z-index: 4;
}
.tilted-stack .stack-card:nth-child(2) {
    transform: rotate(-2deg) translateX(-6px) translateY(-28px);
    z-index: 3;
}
.tilted-stack .stack-card:nth-child(3) {
    transform: rotate(-1deg) translateX(-12px) translateY(-56px);
    z-index: 2;
}
.tilted-stack .stack-card:nth-child(4) {
    transform: rotate(0deg) translateX(-18px) translateY(-84px);
    z-index: 1;
}

.tilted-stack .stack-card:hover,
.tilted-stack .stack-card.stack-hover {
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateX(0) translateY(-6px);
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.18);
    border-color: var(--accent-blue);
}

/* Content styles inside stack cards */
.stack-card .skill-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}
.stack-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}
.stack-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.stack-card .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

/* ============================================
   RESPONSIVE - Tilted Stacks
   ============================================ */
@media (max-width: 768px) {
    .tilted-stack {
        padding-top: 0;
    }
    .tilted-stack .stack-card,
    .tilted-stack .stack-card:nth-child(1),
    .tilted-stack .stack-card:nth-child(2),
    .tilted-stack .stack-card:nth-child(3),
    .tilted-stack .stack-card:nth-child(4) {
        transform: none !important;
        z-index: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        margin-top: 1.25rem;
    }
}

/* Individual skill animations */
.skill-item:nth-child(1):hover .skill-icon {
    /* Laptop - open animation */
    animation: laptopOpen 0.6s ease-in-out forwards;
}

.skill-item:nth-child(2):hover .skill-icon {
    /* Gear - spin */
    animation: gearSpin 0.8s ease-in-out;
}

.skill-item:nth-child(3):hover .skill-icon {
    /* Satellite - release floating signal */
    animation: satelliteSignal 1.5s ease-out;
}

.skill-item:nth-child(4):hover .skill-icon {
    /* Tools/Hammers - move out opposite, then back */
    animation: hammersApart 0.8s ease-in-out;
}

@keyframes laptopOpen {
    0% { 
        transform: perspective(600px) rotateX(-45deg) scaleY(0.9);
    }
    100% { 
        transform: perspective(600px) rotateX(0deg);
    }
}

@keyframes gearSpin {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

@keyframes satelliteSignal {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5) translateY(-30px);
        opacity: 0;
    }
}

@keyframes hammersApart {
    0% { 
        transform: translateX(0);
    }
    50% { 
        transform: translateX(0);
    }
    60% {
        transform: translateX(0);
    }
    70% {
        /* Left hammer goes left, implied right goes right via visual */
        transform: translateX(-20px);
    }
    85% {
        transform: translateX(-20px);
    }
    100% {
        transform: translateX(0);
    }
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    margin-top: 80px;
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    letter-spacing: -0.3px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.projects-grid {
    position: relative;
    height: 2300px;
    overflow: hidden;
}

.project-card:nth-child(1) {
    grid-column: auto;
}

.project-card:nth-child(2) {
    grid-column: auto;
}

.project-card:nth-child(3) {
    grid-column: auto;
}

.project-card:nth-child(4) {
    grid-column: auto;
}

.project-card:nth-child(5) {
    grid-column: auto;
}

.project-card:nth-child(6) {
    grid-column: auto;
}

.project-card:nth-child(7) {
    grid-column: auto;
}

.project-card {
    position: absolute;
    width: calc(50% - 20px);
    height: 550px;
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.8s ease-in-out;
    will-change: transform, top, left;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.12);
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-card) 100%);
    transition: transform 0.4s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

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

.project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.project-tags {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: var(--accent-blue-muted);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent-blue);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: transparent;
    margin-top: 1rem;
}

.project-link:hover {
    background: var(--accent-blue-muted);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.about-text h2,
.about-text h3 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.about-text h3 {
    font-size: 1.3rem;
    color: var(--accent-blue);
    margin-top: 2.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.experience-item {
    background: var(--accent-blue-muted);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }
.experience-item:nth-child(4) { animation-delay: 0.4s; }

.experience-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    transform: translateY(-4px);
}

.experience-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.experience-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tech-stack {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.tech-stack h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.tech-category h4 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tech-category li:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
}

/* ============================================
   ABOUT INTRO & PROFILE IMAGE
   ============================================ */
.about-intro {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.about-text-content {
    flex: 1;
}

.about-image {
    flex: 0 0 280px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.profile-pic {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
    transition: all 0.4s ease;
    object-fit: cover;
}

.profile-pic:hover {
    border-color: var(--text-primary);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.3);
    transform: translateY(-4px);
}

/* ============================================
   MY UNIVERSE SECTION
   ============================================ */
.my-universe {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.my-universe h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.collage-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.universe-collage {
    position: relative;
    height: 800px;
    margin: 0 auto;
    max-width: 1400px;
    perspective: 1000px;
}

.collage-item {
    position: absolute;
    overflow: hidden;
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
    transition: all 0.4s ease;
    cursor: none;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .collage-item:hover {
        border-color: var(--text-primary);
        box-shadow: 0 12px 32px rgba(14, 165, 233, 0.3);
        transform: translateY(-8px);
        z-index: 10;
        cursor: zoom-in;
    }

    .collage-item:hover img {
        transform: none;
    }

    /* Actual size growth per item while keeping center roughly anchored */
    .item-1:hover { width: 350px; height: 310px; top: 5px; left: -15px; }
    .item-2:hover { width: 310px; height: 350px; top: 65px; right: -15px; }
    .item-3:hover { width: 330px; height: 280px; bottom: 25px; left: 305px; }
    .item-4:hover { width: 370px; height: 320px; top: 265px; }
    .item-5:hover { width: 290px; height: 330px; bottom: 5px; right: -5px; }
    .item-6:hover { width: 310px; height: 270px; top: 335px; left: 85px; }
    .item-7:hover { width: 320px; height: 340px; top: 65px; right: 405px; }
}

/* Asymmetrical collage layout */
.item-1 {
    width: 320px;
    height: 280px;
    top: 20px;
    left: 0;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.item-2 {
    width: 280px;
    height: 320px;
    top: 80px;
    right: 0;
    z-index: 2;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.item-3 {
    width: 300px;
    height: 250px;
    bottom: 40px;
    left: 320px;
    z-index: 3;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.item-4 {
    width: 340px;
    height: 290px;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.item-5 {
    width: 260px;
    height: 300px;
    bottom: 20px;
    right: 10px;
    z-index: 4;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.item-6 {
    width: 280px;
    height: 240px;
    top: 350px;
    left: 100px;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.item-7 {
    width: 290px;
    height: 310px;
    top: 80px;
    right: 420px;
    z-index: 3;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.testimonials-track {
    display: flex;
    gap: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(14, 165, 233, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.testimonial-arrow:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.testimonial {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out both;
    max-width: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.testimonial:nth-child(1) { animation-delay: 0.1s; }
.testimonial:nth-child(2) { animation-delay: 0.2s; }
.testimonial:nth-child(3) { animation-delay: 0.3s; }

.testimonial:hover {
    transform: translateY(-6px);
    border-left-color: var(--text-primary);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.08);
}

.testimonial .stars {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    letter-spacing: 2px;
}

.testimonial p {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    font-style: italic;
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial-author {
    display: block;
    margin-top: 0.75rem;
}

.testimonial-author strong {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* ============================================
   HIRING & SERVICES SECTION
   ============================================ */
.hiring {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hiring-info {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hiring-info h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.service {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    animation: slideInRight 0.6s ease-out both;
}

.service:nth-child(1) { animation-delay: 0.1s; }
.service:nth-child(2) { animation-delay: 0.2s; }
.service:nth-child(3) { animation-delay: 0.3s; }
.service:nth-child(4) { animation-delay: 0.4s; }
.service:nth-child(5) { animation-delay: 0.5s; }
.service:nth-child(6) { animation-delay: 0.6s; }

.service:hover {
    border-color: var(--accent-blue);
    background: var(--primary-card);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service:hover .service-icon {
    transform: scale(1.2) rotateY(360deg);
}

.service h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Tighter spacing for the quiz section under pricing */
.pricing-section.pricing-quiz {
    padding-top: 24px;
}

.pricing-section h2 {
    font-size: 2rem;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.pricing-card {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out both;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Subtle patterned backdrop */
    background-image: radial-gradient(circle at 20% 10%, rgba(14,165,233,0.08) 0%, rgba(14,165,233,0.03) 30%, transparent 60%),
                      linear-gradient(135deg, rgba(14,165,233,0.06) 0%, rgba(14,165,233,0) 40%);
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

.pricing-card.featured {
    border-color: var(--accent-blue);
    background: var(--accent-blue-muted);
    transform: scale(1.02);
    overflow: visible; /* ensure badge is not clipped */
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.1);
    /* Micro accent sweep */
    background-image: radial-gradient(circle at 20% 10%, rgba(14,165,233,0.12) 0%, rgba(14,165,233,0.05) 30%, transparent 60%),
                      linear-gradient(135deg, rgba(14,165,233,0.08) 0%, rgba(14,165,233,0.02) 40%);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(14,165,233,0.0));
    filter: blur(6px);
    opacity: 0.25;
    pointer-events: none;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(14,165,233,0.35), rgba(14,165,233,0.15));
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Tier icon above title */
.tier-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    background: rgba(14,165,233,0.06);
    margin-bottom: 0.75rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.price-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Value chips under price */
.value-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.value-chips .chip {
    display: inline-block;
    background: var(--accent-blue-muted);
    border: 1px solid rgba(14,165,233,0.25);
    color: var(--accent-blue);
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.price-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-features li:last-child {
    border-bottom: none;
}

.optional-add {
    color: var(--text-muted);
    font-style: italic;
}

.pricing-card button {
    width: 100%;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.process h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.process-step {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    animation: fadeInUp 0.6s ease-out both;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.6s ease;
}

.process-step:hover::before {
    left: 100%;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

.process-step:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15);
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(14, 165, 233, 0.01) 100%);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* FAQ controls */
.faq-controls {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.faq-pagination {
    max-width: 1000px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.faq-page-indicator {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Ensure pagination buttons don’t stretch on mobile */
.faq-pagination .btn {
    width: auto;
    flex: 0 0 auto;
}

@media (max-width: 480px) {
    .faq-pagination { gap: 0.5rem; }
    .faq-page-indicator { font-size: 0.9rem; }
}

.faq-pagination .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* FAQ footer note */
.faq-note {
    max-width: 1000px;
    margin: 1rem auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.faq-note a {
    color: var(--accent-blue);
    text-decoration: underline;
}
.faq-note a:hover {
    opacity: 0.85;
}

.faq-search {
    width: 100%;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.faq-search::placeholder { color: var(--text-muted); }
.faq-search:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.faq-actions { display: flex; gap: 0.75rem; }
.faq-actions .btn { padding: 0.6rem 1rem; }

.faq-item {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

.faq-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.12);
    transform: translateY(-4px);
}

/* Animated accent bar */
.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0px;
    height: 100%;
    background: linear-gradient(180deg, rgba(14,165,233,0.25), rgba(14,165,233,0.1));
    transition: width 0.4s ease;
}
.faq-item.active::before { width: 6px; }
.faq-item:hover::before { width: 3px; }

.faq-item.active {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(14, 165, 233, 0.01) 100%);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg) scale(1.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Search filtering */
.faq-item.hidden { display: none; }
.faq-highlight {
    background: rgba(14, 165, 233, 0.15);
    color: var(--text-primary);
    border-radius: 4px;
    padding: 0 2px;
}


.contact-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.9rem;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInRight 0.6s ease-out 0.2s both;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-item {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.contact-item h4 {
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    opacity: 0.8;
}

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

.social-icon {
    display: inline-block;
    background: var(--accent-blue-muted);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent-blue);
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.social-icon:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 100px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta .container {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.08) 25%, rgba(21, 21, 21, 0.6) 50%, rgba(14, 165, 233, 0.12) 75%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem 3rem;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
    transition: all 0.4s ease;
}

.cta .container:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 48px rgba(14, 165, 233, 0.15);
    transform: translateY(-4px);
}

.cta.cta-secondary {
    padding: 80px 0;
}

.cta.cta-secondary .container {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 30%, rgba(21, 21, 21, 0.5) 50%, rgba(14, 165, 233, 0.08) 70%, rgba(14, 165, 233, 0.12) 100%);
    padding: 4rem 3rem;
}

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

.cta.cta-secondary .cta-subtitle {
    margin-bottom: 0;
}

.cta.cta-secondary .btn {
    margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-light);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-secondary);
}

.footer p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.social-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .nav-item {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        flex-direction: column;
        padding: 60px 0;
        gap: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .code-block {
        max-width: 100%;
    }

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

    .experience-grid,
    .tech-categories {
        grid-template-columns: 1fr;
    }

    .featured-grid,
    .skills-grid,
    .projects-grid,
    .testimonials-grid,
    .pricing-cards,
    .services-list {
        grid-template-columns: 1fr;
    }

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

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

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .featured h2,
    .skills h2,
    .projects h2,
    .testimonials h2,
    .contact-section h2,
    .cta h2 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: auto;
        max-width: 92%;
        text-align: center;
    }

    /* Banners: add side breathing room on small screens */
    .page-hero .container,
    .cta .container,
    .cta.cta-secondary .container {
        max-width: 92%;
        margin: 0 auto;
    }

    .nav-menu {
        gap: 0;
    }

    .featured-grid,
    .skills-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Projects mobile fallback: stack cards */
    .projects-grid {
        height: auto;
        overflow: visible;
    }
    .project-card {
        position: static;
        width: 92%;
        height: auto;
        margin: 0 auto;
    }
    .project-image {
        height: 160px;
    }
    .project-info {
        padding: 1.2rem;
    }

    /* Featured carousel cards: keep full-width for correct slide translate */
    .featured-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    /* About intro: stack and center profile */
    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .about-image {
        flex: 0 1 auto;
        width: 180px;
    }
    .profile-pic {
        width: 180px;
        height: 180px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .service {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
        overflow-x: hidden;
    }

    .nav-container {
        padding: 0 1rem;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .hamburger {
        display: flex;
        z-index: 200;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: auto;
    }

    .code-block {
        display: none;
    }

    .code-block pre {
        font-size: 0.7rem;
    }

    .featured h2,
    .skills h2,
    .projects h2,
    .testimonials h2,
    .contact-section h2,
    .cta h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .featured-grid,
    .skills-grid,
    .projects-grid,
    .testimonials-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    /* Slightly smaller project image on very small screens */
    .project-image {
        height: 140px;
    }
    /* Tighten hero spacing on small screens */
    .hero {
        min-height: calc(100vh - 70px);
        padding: 24px 0;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .contact-wrapper {
        gap: 1.5rem;
    }

    .experience-grid,
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service {
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        margin: 0 auto;
    }

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

    .social-link {
        display: block;
    }

    .hiring-info h2,
    .pricing-section h2 {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    /* Responsive collage for mobile */
    .universe-collage {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .collage-item {
        position: static !important;
        width: calc(50% - 0.75rem) !important;
        height: 250px !important;
        animation: fadeInUp 0.6s ease-out both !important;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5,
    .item-6 {
        animation-delay: 0s !important;
    }

    /* Responsive carousel for mobile */
    .carousel-container {
        padding: 0;
        overflow-x: hidden;
    }
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 12px;
    }

    .carousel-next {
        right: 12px;
    }

    /* Clip slides correctly on mobile */
    .carousel-container {
        overflow: hidden;
    }
    .featured-carousel {
        overflow: visible;
    }

    .carousel-indicators {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 24px;
    }
}

/* ============================================
   PLAN QUIZ STYLES (removed UI)
   Keeping recommended card styles below
   ============================================ */

/* Highlight recommended pricing card */
.pricing-card.recommended {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15), 0 12px 28px rgba(14,165,233,0.12);
    position: relative;
    overflow: visible; /* ensure 'Recommended' label is not clipped */
}
.pricing-card.recommended::before { content: none; }

/* Dynamic Recommended label element for compatibility with featured ::before */
.pricing-card .reco-label {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--accent-blue);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Section cue (inline, centered) */
.section-cue {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin: 24px auto 0 auto;
}

.section-cue a {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.section-cue a:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.section-cue .curved-arrow {
    width: 72px;
    height: auto;
}

.section-cue .handwriting {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #fff;
    transform: rotate(-5deg);
}

/* Slightly larger handwriting for sticky cues (About + Hire) */
.sticky-cue .handwriting {
    font-size: 1.4rem;
}

/* Rotation indicator shown above projects grid (desktop only) */
.rotation-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin: 0 auto 12px auto;
    width: fit-content;
    opacity: 0.8;
}
.rotation-indicator .rotate-icon {
    animation: spin 2s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (min-width: 769px) {
    .rotation-indicator { display: flex; }
}

.rotation-indicator .rotation-tip {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sticky variant to keep the cue always visible while approaching contact */
.sticky-cue {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    pointer-events: none;
}

/* ============================================
   PROJECT DETAIL + TIMELINE
   ============================================ */
.project-detail { padding: 80px 0; }
.detail-header { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.detail-media { background: var(--primary-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.detail-img { width: 100%; height: 360px; object-fit: cover; display: block; }
.detail-summary { background: var(--primary-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; }
.detail-desc { color: var(--text-secondary); margin-bottom: 1rem; }
.detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

.timeline { margin-top: 2.5rem; }
.timeline-title { font-size: 1.6rem; margin-bottom: 1rem; }
.timeline-list { list-style: none; position: relative; padding-left: 1.5rem; }
.timeline-list::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border-light); }
.timeline-item { position: relative; margin-bottom: 1rem; padding-left: 0.75rem; }
.timeline-item::before { content: ''; position: absolute; left: -1px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.timeline-item .time { display: inline-block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.timeline-item .title { font-weight: 600; margin-bottom: 0.15rem; }
.timeline-item .desc { color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 768px) {
    .detail-header { grid-template-columns: 1fr; }
    .detail-img { height: 220px; }
}

/* ============================================
   MICRO INTERACTIONS: Ripple, Reveal
   ============================================ */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: rgba(255,255,255,0.2);
    width: 10px;
    height: 10px;
    animation: rippleExpand 500ms ease-out forwards;
}

@keyframes rippleExpand {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.5); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(20); }
}

@media (prefers-reduced-motion: reduce) {
    .ripple { animation: none; opacity: 0.12; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.revealed { opacity: 1; transform: translateY(0); }

/* ============================================
   BUILD ESTIMATOR
   ============================================ */
.build-estimator h2 { margin-bottom: 1.5rem; }

.estimator-form {
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

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

.estimator-group {
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.estimator-group h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.estimator-group label { display: block; margin: 0.5rem 0 0.25rem; font-weight: 600; font-size: 0.9rem; }
.estimator-group select, .estimator-group input[type="range"] {
    width: 100%;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
}
.pages-input { display: flex; align-items: center; gap: 0.75rem; }
.pages-input span { color: var(--text-secondary); font-weight: 600; }

.feature-list { display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.feature-list label { font-weight: 500; color: var(--text-secondary); }
.feature-list input { margin-right: 0.5rem; }

.radio-list { display: grid; gap: 0.75rem; }
.radio-title { display: block; color: var(--text-secondary); font-weight: 600; margin-bottom: 0.25rem; }
.radio-list label { margin-right: 0.75rem; font-weight: 500; color: var(--text-secondary); }
.radio-list .inline { font-weight: 600; }

.estimator-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }

.estimator-result {
    margin-top: 1rem;
    background: var(--primary-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.result-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.result-card { background: var(--primary-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.9rem; text-align: center; }
.result-label { color: var(--text-secondary); font-size: 0.85rem; }
.result-value { font-size: 1.4rem; font-weight: 700; color: var(--accent-blue); }
.result-breakdown { margin-top: 0.75rem; color: var(--text-secondary); font-size: 0.95rem; }
.estimator-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

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