/* =====================================================
   PREMIUM PORTFOLIO - STYLES
   ===================================================== */
:root {
    --bg-primary: #e8eef3;
    --bg-secondary: #dfe6ed;
    --bg-tertiary: #d1dbe4;
    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-primary: #2A9D8F;
    --accent-secondary: #E76F51;
    --accent-tertiary: #F4A261;
    --accent-gradient: linear-gradient(135deg, #2A9D8F 0%, #264653 50%, #E76F51 100%);
    --accent-glow: rgba(42, 157, 143, 0.4);
    --font-primary: 'Inter', sans-serif;
    --font-cursive: 'Playfair Display', serif;
    --cursor-size: 20px;
    --cursor-hover-size: 60px;
}

/* Cursive Highlight Style */
.cursive-highlight {
    font-family: var(--font-cursive);
    font-style: italic;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.cursive-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.cursive-highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

[data-theme="dark"] {
    --bg-primary: #0f1115;
    --bg-secondary: #1a1d23;
    --bg-tertiary: #22262e;
    --shadow-light: rgba(55, 63, 75, 0.5);
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --accent-glow: rgba(42, 157, 143, 0.3);
}

/* Custom Cursor */
.cursor {
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor.hover {
    width: var(--cursor-hover-size);
    height: var(--cursor-hover-size);
    border-color: var(--accent-secondary);
    background: rgba(99, 102, 241, 0.1);
}

/* Smooth Scroll Container */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

/* Theme Transition Curtain Effect */
.theme-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
}

.curtain-panel {
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg,
            var(--accent-primary) 0%,
            var(--accent-secondary) 50%,
            var(--accent-tertiary) 100%);
    transform: scaleX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.curtain-left {
    transform-origin: left center;
}

.curtain-right {
    transform-origin: right center;
}

.theme-curtain.animating .curtain-panel {
    animation: curtain-close 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.theme-curtain.opening .curtain-panel {
    animation: curtain-open 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes curtain-close {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes curtain-open {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

/* Hero Mascot - Eye Tracking Character */
.hero-mascot {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 60px rgba(42, 157, 143, 0.4));
    animation: mascot-float 6s ease-in-out infinite;
}

@keyframes mascot-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Mascot Rings Animation */
.mascot-ring {
    animation: ring-rotate 20s linear infinite;
    transform-origin: center;
}

.mascot-ring.ring-2 {
    animation-direction: reverse;
    animation-duration: 25s;
}

@keyframes ring-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mascot Eye Pupils - Will be animated by JS */
.mascot-pupil {
    transition: cx 0.15s ease-out, cy 0.15s ease-out;
}

/* Code-style Decorations */
.mascot-decorations .deco {
    opacity: 0.6;
    animation: deco-breathe 3s ease-in-out infinite;
}

.mascot-decorations .deco-dot {
    opacity: 0.5;
    animation: deco-pulse 2s ease-in-out infinite;
}

/* Staggered animation delays */
.deco-1 {
    animation-delay: 0s;
}

.deco-2 {
    animation-delay: 0.3s;
}

.deco-3 {
    animation-delay: 0.1s;
}

.deco-4 {
    animation-delay: 0.2s;
}

.deco-5 {
    animation-delay: 0.3s;
}

.deco-6 {
    animation-delay: 0.4s;
}

.deco-7 {
    animation-delay: 0.5s;
}

.deco-8 {
    animation-delay: 0.6s;
}

.deco-9 {
    animation-delay: 0.7s;
}

.deco-10 {
    animation-delay: 0.8s;
}

.deco-11 {
    animation-delay: 0.9s;
}

.deco-12 {
    animation-delay: 1s;
}

@keyframes deco-breathe {

    0%,
    100% {
        opacity: 0.4;
        stroke-width: 2;
    }

    50% {
        opacity: 0.8;
        stroke-width: 3;
    }
}

@keyframes deco-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

/* Mascot Glow */
.mascot-glow {
    position: absolute;
    inset: 20px;
    background: radial-gradient(ellipse at center, rgba(42, 157, 143, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glow-pulse-mascot 3s ease-in-out infinite;
}

@keyframes glow-pulse-mascot {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .mascot-svg {
    filter: drop-shadow(0 20px 60px rgba(231, 111, 81, 0.5));
}

[data-theme="dark"] .mascot-glow {
    background: radial-gradient(ellipse at center, rgba(231, 111, 81, 0.4) 0%, transparent 70%);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-mascot {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-mascot {
        width: 280px;
        height: 280px;
    }
}

/* Magnetic Buttons */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-btn-inner {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Enhanced Neumorphism */
.neu-convex {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.neu-convex:hover {
    box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
    transform: translateY(-5px);
}

.neu-inset {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}

/* Text Reveal Animation Classes */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-90deg);
    transform-origin: center top;
}

.word {
    display: inline-block;
    overflow: hidden;
}

.line-reveal {
    overflow: hidden;
    display: block;
}

.line-inner {
    display: block;
    transform: translateY(100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(232, 238, 243, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 17, 21, 0.8);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.theme-toggle {
    width: 70px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: none;
    position: relative;
}

.toggle-track {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #4FB4E8 50%, #74b9ff 100%);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(99, 102, 241, 0.2);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
}

[data-theme="dark"] .toggle-track {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(99, 102, 241, 0.3);
}

.toggle-thumb {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 10px rgba(255, 165, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    transition:
        transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        background 0.5s,
        box-shadow 0.5s;
    z-index: 10;
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(34px);
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
    box-shadow:
        0 2px 10px rgba(200, 200, 200, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2),
        inset -2px -2px 4px rgba(0, 0, 0, 0.1);
}

.thumb-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.thumb-icon svg {
    width: 100%;
    height: 100%;
}

.thumb-icon.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #fff;
}

.thumb-icon.moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    color: #1a1a2e;
}

[data-theme="dark"] .thumb-icon.sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .thumb-icon.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Stars Animation */
.toggle-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.toggle-stars .star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s, transform 0.5s;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.toggle-stars .star:nth-child(1) {
    top: 8px;
    right: 12px;
    transition-delay: 0.1s;
}

.toggle-stars .star:nth-child(2) {
    top: 18px;
    right: 20px;
    width: 2px;
    height: 2px;
    transition-delay: 0.2s;
}

.toggle-stars .star:nth-child(3) {
    top: 10px;
    right: 28px;
    width: 2px;
    height: 2px;
    transition-delay: 0.3s;
}

[data-theme="dark"] .toggle-stars .star {
    opacity: 1;
    transform: scale(1);
    animation: twinkle 2s ease-in-out infinite;
}

[data-theme="dark"] .toggle-stars .star:nth-child(2) {
    animation-delay: 0.5s;
}

[data-theme="dark"] .toggle-stars .star:nth-child(3) {
    animation-delay: 1s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Clouds Animation */
.toggle-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.toggle-clouds .cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    opacity: 1;
    transition: opacity 0.5s, transform 0.5s;
}

.toggle-clouds .cloud:nth-child(1) {
    width: 16px;
    height: 8px;
    top: 6px;
    right: 8px;
    box-shadow:
        6px 2px 0 rgba(255, 255, 255, 0.8),
        -4px 2px 0 rgba(255, 255, 255, 0.6);
}

.toggle-clouds .cloud:nth-child(2) {
    width: 12px;
    height: 6px;
    top: 20px;
    right: 18px;
    box-shadow:
        4px 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .toggle-clouds .cloud {
    opacity: 0;
    transform: translateX(-10px);
}

/* Hover Effect */
.theme-toggle:hover .toggle-thumb {
    box-shadow:
        0 4px 15px rgba(255, 165, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle:hover .toggle-thumb {
    box-shadow:
        0 4px 15px rgba(200, 200, 200, 0.4),
        0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateX(34px) scale(1.05);
}

/* Focus State */
.theme-toggle:focus {
    outline: none;
}

.theme-toggle:focus-visible .toggle-track {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 0 3px var(--accent-primary),
        0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Hero Section with Parallax */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-text {
    position: absolute;
    font-size: 20vw;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(99, 102, 241, 0.1);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 4px;
    opacity: 0.3;
    filter: blur(8px);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px var(--accent-glow);
}

.btn-secondary {
    color: var(--text-primary);
    position: relative;
    background: transparent;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn:hover svg {
    transform: translateX(5px);
}

/* Hero Tech Stack */
.hero-tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.tech-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    position: relative;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: floatIcon 3s ease-in-out infinite;
}

.tech-icon:nth-child(1) {
    animation-delay: 0s;
}

.tech-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-icon:nth-child(3) {
    animation-delay: 0.4s;
}

.tech-icon:nth-child(4) {
    animation-delay: 0.6s;
}

.tech-icon:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.tech-icon:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow:
        8px 8px 20px var(--shadow-dark),
        -8px -8px 20px var(--shadow-light),
        0 0 20px var(--accent-glow);
}

.tech-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--accent-gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.tech-icon::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 6px solid transparent;
    border-top-color: var(--accent-primary);
    opacity: 0;
    transition: all 0.3s;
}

.tech-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.tech-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.currently-exploring {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    width: fit-content;
    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.currently-exploring strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Hero Visual with 3D effect */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.hero-3d-card {
    width: 350px;
    height: 450px;
    background: var(--neu-convex);
    border-radius: 30px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 20px 20px 60px var(--shadow-dark), -20px -20px 60px var(--shadow-light);
}

.hero-visual:hover .hero-3d-card {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.hero-3d-content {
    position: absolute;
    inset: 20px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.code-snippet {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    width: 80%;
    transform: translateZ(30px);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 5px 5px 15px var(--shadow-dark), -5px -5px 15px var(--shadow-light);
    animation: float-3d 6s ease-in-out infinite;
}

.float-icon:nth-child(1) {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.float-icon:nth-child(2) {
    top: 30%;
    right: -20px;
    animation-delay: 2s;
}

.float-icon:nth-child(3) {
    bottom: 20%;
    left: -20px;
    animation-delay: 4s;
}

@keyframes float-3d {

    0%,
    100% {
        transform: translateY(0) translateZ(20px);
    }

    50% {
        transform: translateY(-20px) translateZ(40px);
    }
}

/* Horizontal Scroll Sections */
.horizontal-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.horizontal-container {
    display: flex;
    width: fit-content;
    height: 100vh;
    padding: 0 5vw;
    align-items: center;
    gap: 4rem;
    will-change: transform;
}

.horizontal-title {
    font-family: var(--font-cursive);
    font-style: italic;
    font-size: 4.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    margin-right: 4rem;
    position: relative;
    animation: title-shimmer 3s ease-in-out infinite;
}

@keyframes title-shimmer {

    0%,
    100% {
        filter: brightness(1);
        transform: scale(1);
    }

    50% {
        filter: brightness(1.15);
        transform: scale(1.02);
    }
}

/* Skills Cards - No Levels */
.skill-card {
    width: 300px;
    height: 400px;
    flex-shrink: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--accent-primary), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover::before {
    opacity: 0.1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.skill-icon-large {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px var(--accent-glow);
    transform: translateZ(20px);
    transition: transform 0.3s;
}

.skill-card:hover .skill-icon-large {
    transform: translateZ(40px) scale(1.1);
}

.skill-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.skill-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

/* Project Cards - Horizontal */
.project-card-horizontal {
    width: 500px;
    height: 350px;
    flex-shrink: 0;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card-horizontal:hover {
    transform: scale(1.05) rotateY(5deg);
}

.project-image-wrap {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    overflow: hidden;
}

.project-content-float {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(60%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card-horizontal:hover .project-content-float {
    transform: translateY(0);
}

.project-title-large {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-tags-inline {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-pill {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

/* Parallax Background Elements */
.parallax-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    will-change: transform;
}

.parallax-circle {
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.05;
    filter: blur(40px);
}

/* Regular Sections */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.3;
}

.section-tag::before {
    left: -40px;
}

.section-tag::after {
    right: -40px;
}

/* Services Grid with Hover Effects */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card-premium {
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.service-card-premium:hover {
    transform: translateY(-10px) rotateX(5deg);
    color: white;
}

.service-card-premium:hover::before {
    opacity: 1;
}

.service-card-premium>* {
    position: relative;
    z-index: 1;
}

.service-card-premium:hover h3,
.service-card-premium:hover p,
.service-card-premium:hover .service-icon-wrap {
    color: white;
}

.service-icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    transition: all 0.3s;
}

/* Services Timeline Layout */
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
}

.services-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    opacity: 0.3;
}

.service-timeline-item {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-timeline-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.service-timeline-item.featured {
    border: 2px solid var(--accent-primary);
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent-gradient);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timeline-number {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.timeline-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding-left: 2rem;
}

.timeline-content .service-icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

.timeline-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item svg {
    opacity: 0.7;
}

.meta-item.price {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-number {
        left: -10px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .timeline-content {
        flex-direction: column;
        padding-left: 1.5rem;
    }
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form-premium {
    padding: 3rem;
    position: relative;
}

.form-group-premium {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s;
    padding: 0 0.5rem;
    background: var(--bg-primary);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: 0;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

textarea+.form-label {
    top: 1.25rem;
    transform: translateY(0);
}

textarea:focus+.form-label,
textarea:not(:placeholder-shown)+.form-label {
    top: 0;
    transform: translateY(-50%);
}

/* Ripple Effect Button */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animated Footer */
.footer {
    background: var(--bg-secondary);
    padding: 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.3;
}

/* Wave Animation */
.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    transform: translateY(-100%);
}

.waves {
    width: 100%;
    height: 100%;
    animation: wave-move 25s linear infinite;
}

.wave-parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.wave-parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.wave-parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.wave-parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes wave-move {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0 2rem;
}

/* Footer Mascot */
.footer-mascot-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-mascot {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-mascot:hover {
    transform: scale(1.1);
}

.mascot-mini {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 10px 30px rgba(42, 157, 143, 0.3));
    animation: mascot-bounce 3s ease-in-out infinite;
}

@keyframes mascot-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.mascot-eye {
    animation: blink 4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    90%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.footer-mascot:hover .mascot-eye {
    animation: none;
}

/* Speech Bubble */
.mascot-speech {
    position: absolute;
    top: -20px;
    right: -80px;
    background: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mascot-speech::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 10px;
    border: 8px solid transparent;
    border-right-color: var(--bg-primary);
}

.footer-mascot:hover .mascot-speech {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.speech-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.5;
    animation: particle-float 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 10%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    bottom: 40%;
    right: 20%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0.8;
    }
}

/* Footer Content */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-btn:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-mascot-container {
        order: -1;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .mascot-speech {
        right: -60px;
        top: -30px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .assistant-container {
        display: none;
    }

    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .horizontal-container {
        gap: 2rem;
    }

    .project-card-horizontal {
        width: 350px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .horizontal-title {
        font-size: 2rem;
    }
}

/* iPhone-Style Greeting Animation */
.loader-premium {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.greeting-container {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.greeting {
    position: absolute;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.greeting.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.greeting.exit {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
}

.loader-premium.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* Building Process Section */
.process-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-icon {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.process-connector {
    color: var(--accent-primary);
    opacity: 0.5;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .process-grid {
        flex-direction: column;
    }

    .process-connector {
        transform: rotate(90deg);
    }
}

/* My Approach Section */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.approach-card {
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.approach-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.approach-icon {
    margin-bottom: 1.5rem;
}

.approach-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.approach-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 20px var(--shadow-dark);
}

.cert-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cert-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Form Enhanced Background */
.contact {
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 111, 81, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(244, 162, 97, 0.1) 0%, transparent 50%);
    animation: contact-bg-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes contact-bg-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.contact-form-premium {
    position: relative;
    z-index: 1;
}

.form-input:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ==============================================
   MOBILE RESPONSIVE STYLES
   ============================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    box-shadow:
        5px 5px 15px var(--shadow-dark),
        -5px -5px 15px var(--shadow-light);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-mascot {
        width: 300px;
        height: 300px;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .horizontal-title {
        font-size: 3rem;
    }

    .skill-card {
        width: 250px;
        height: 350px;
    }

    .project-card {
        width: 350px;
        height: 280px;
    }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {

    /* PREVENT HORIZONTAL SCROLL ON MOBILE */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide default cursor on mobile */
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    /* Mobile Navigation Dropdown */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.4s ease;
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

    /* Navbar layout */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo span {
        display: none;
    }

    /* Hero Section Mobile */
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-mascot {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-bg-text {
        font-size: 15vw;
        opacity: 0.03;
    }

    /* About Section Mobile - LARGER PHOTO */
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .about-image {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
        transform: none !important;
        order: 1;
    }

    .about-image>div {
        aspect-ratio: 1 !important;
    }

    .about-content {
        order: 2;
    }

    .about-content h3 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .about-content p {
        font-size: 1rem !important;
        text-align: center;
    }

    /* Stats boxes in about */
    .about-content>div:last-child {
        justify-content: center !important;
    }

    /* Section Headers Mobile */
    .section-header {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    /* Process Section Mobile */
    .process-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .process-step {
        max-width: 100%;
        min-width: auto;
    }

    .process-connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    /* Approach Section Mobile */
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-card {
        padding: 1.5rem;
    }

    /* Certifications Mobile */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* Keep horizontal scroll on mobile - just adjust sizing */
    .horizontal-title {
        font-size: 2.5rem;
    }

    .skill-card {
        width: 250px;
        height: 350px;
    }

    .project-card {
        width: 300px;
        height: 250px;
    }
}

/* Services Timeline Mobile - Inside proper media query */
@media (max-width: 768px) {
    .services-timeline {
        padding: 1rem 0;
    }

    .timeline-line {
        left: 25px;
    }

    .service-timeline-item {
        padding: 1.5rem;
        margin-left: 20px;
    }

    .timeline-number {
        left: -35px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .timeline-content {
        flex-direction: column;
        padding-left: 0.5rem;
        gap: 1rem;
    }

    .timeline-content .service-icon-wrap {
        width: 50px;
        height: 50px;
    }

    .timeline-text h3 {
        font-size: 1.2rem;
    }

    .timeline-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .featured-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
        right: 10px;
        top: -10px;
    }

    /* Contact Section Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-premium {
        padding: 1.5rem;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-mascot-container {
        width: 150px;
        height: 150px;
    }

    /* Disable heavy animations on mobile */
    .parallax-layer,
    .parallax-bg {
        display: none;
    }

    /* Simplify animations for performance */
    .mascot-svg {
        animation: none;
    }

    .mascot-ring {
        animation: none;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    /* Larger "Ansh Kapuriya" name in responsive view */
    .hero-title .cursive-highlight {
        font-size: 2.2rem;
        display: block;
        margin-top: 0.25rem;
    }

    .hero-mascot {
        width: 160px;
        height: 160px;
    }

    .cursive-highlight {
        font-size: inherit;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Horizontal section titles */
    .horizontal-title {
        font-size: 1.5rem;
    }

    .service-timeline-item {
        margin-left: 15px;
        padding: 1rem;
    }

    .timeline-number {
        left: -30px;
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .btn-premium {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Additional responsive fixes for 768px */
@media (max-width: 768px) {

    /* Larger "Ansh Kapuriya" in tablet/mobile view */
    .hero-title .cursive-highlight {
        font-size: 2.5rem;
        display: block;
        margin-top: 0.25rem;
    }

    /* Ensure mobile nav is properly visible */
    .nav-links {
        display: flex;
    }

    .nav-links.active {
        background: var(--bg-primary);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}