/* 
   ══════════════════════════════════════════════════════════════════
   PREMIUM PORTFOLIO THEME - ULTRA MODERN
   Author: Erick Viane (AI Generated)
   ══════════════════════════════════════════════════════════════════
*/

/* ============================================
   1. CSS VARIABLES & THEME
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.7);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7a;

    --accent-1: #6366f1;
    /* Indigo */
    --accent-2: #8b5cf6;
    /* Violet */
    --accent-3: #a855f7;
    /* Purple */
    --accent-4: #ec4899;
    /* Pink */

    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    --gradient-text: linear-gradient(135deg, #fff 0%, var(--accent-2) 50%, var(--accent-4) 100%);
    --gradient-mesh:
        radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.2) 0px, transparent 50%);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 10vw, 120px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: 0.3s var(--ease-out-expo);
    --transition-medium: 0.6s var(--ease-out-expo);
    --transition-slow: 1s var(--ease-out-expo);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-primary);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* iOS-friendly viewport: prevents content jumping when address bar collapses */
@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

/* Make every interactive element keyboard-focus visible */
:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: 4px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    z-index: -1;
}

::selection {
    background: var(--accent-2);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 4px;
}

/* ============================================
   2.5 PRELOADER - CLEAN DESIGN
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0f18 50%, #12121a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Hexagon Spinner */
.hex-spinner {
    position: relative;
    width: 100px;
    height: 100px;
}

.hex-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-2);
    border-radius: 50%;
    animation: hexSpin 1.8s ease-in-out infinite;
}

.hex-dot:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.hex-dot:nth-child(2) {
    top: 25%;
    right: 0;
    animation-delay: 0.3s;
}

.hex-dot:nth-child(3) {
    bottom: 25%;
    right: 0;
    animation-delay: 0.6s;
}

.hex-dot:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.9s;
}

.hex-dot:nth-child(5) {
    bottom: 25%;
    left: 0;
    animation-delay: 1.2s;
}

.hex-dot:nth-child(6) {
    top: 25%;
    left: 0;
    animation-delay: 1.5s;
}

@keyframes hexSpin {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
        background: var(--accent-1);
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
        background: var(--accent-4);
        box-shadow: 0 0 20px var(--accent-4);
    }
}

/* Preloader Logo */
.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.pl-bracket {
    color: var(--accent-2);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.pl-text {
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.pl-slash {
    color: var(--accent-4);
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

/* Progress Bar */
.preloader-bar {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-4));
    border-radius: 10px;
    transition: width 0.1s ease;
}

/* Percentage */
.preloader-percent {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* ============================================
   2.6 MOUSE-REACTIVE GRADIENT
   ============================================ */
.mouse-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(139, 92, 246, 0.15),
            transparent 40%);
    transition: opacity 0.3s ease;
}

/* ============================================
   2.7 CURSOR TRAIL
   ============================================ */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ============================================
   3. CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, opacity 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-2);
    background: rgba(139, 92, 246, 0.1);
}

/* ============================================
   4. ANIMATED BACKGROUNDS
   ============================================ */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    z-index: -2;
    animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(3deg);
    }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Neural Network Canvas */
#neural-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* ============================================
   5. TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

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

strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.highlight-text {
    color: var(--accent-2);
    font-weight: 600;
}

/* ============================================
   6. LAYOUT
   ============================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    border: none;
}

.btn i {
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.btn-glow {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 24px;
    font-size: 0.85rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    }

    to {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    }
}

/* Magnetic Button Effect (JS handles positioning) */
.magnetic {
    transition: transform 0.2s ease-out;
}

/* ============================================
   8. NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo,
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.logo-slash {
    color: var(--accent-4);
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-cta {
    margin-left: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    /* Button reset (since this is now a <button>) */
    background: transparent;
    border: 0;
    padding: 8px;
    margin: 0;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

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

/* ============================================
   9. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-bottom: 30px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    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(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-title .line {
    display: block;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat .stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-2);
}

.hero-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 480px;
    border-radius: 20px;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: 20px;
    z-index: 3;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(60px);
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

.hero-image-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: 1;
    opacity: 0.8;
}

.floating-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 5;
    animation: floatBadge 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.badge-react {
    top: 20%;
    left: -25px;
    color: #61DAFB;
    animation-delay: 0s;
}

.badge-figma {
    top: 50%;
    right: -25px;
    color: #f24e1e;
    animation-delay: 0.5s;
}

.badge-node {
    bottom: 15%;
    left: -15px;
    color: #68A063;
    animation-delay: 1s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-2), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ============================================
   10. SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   11. ABOUT SECTION
   ============================================ */
.about {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

/* Dot Grid Pattern Background */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(139, 92, 246, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.8;
    pointer-events: none;
}

/* Radial Glow Effect */
.about::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.highlight-item i {
    color: var(--accent-2);
}

/* About Image */
.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-card {
    position: relative;
    width: 350px;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), transparent);
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 25px;
    backdrop-filter: blur(20px);
    z-index: 2;
}

.experience-badge .exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-2);
}

.experience-badge .exp-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* NEW: About Grid Layout with Image */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-section {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.about-image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent);
    pointer-events: none;
}

.about-text-section .lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.about-text-section>p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-fast);
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-2);
}

.about-card .card-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #fff;
}

.about-card h3 {
    font-size: 0.95rem;
    margin: 0;
}

.about-cta {
    margin-top: 10px;
}

/* Logo name styling */
.logo-name {
    color: var(--text-primary);
    font-weight: 400;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: #fff;
}

/* ============================================
   12. EXPERIENCE / TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
    padding-left: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--accent-2);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--accent-2);
    transform: translateX(10px);
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-2);
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    padding: 5px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Timeline Expand Button */
.timeline-expand-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    margin: 10px 0;
    position: relative;
}

.timeline-expand-wrapper::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
}

.timeline-expand-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.timeline-expand-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(99, 102, 241, 0.25));
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.timeline-expand-btn i {
    font-size: 0.9rem;
    transition: transform 0.4s ease;
}

.timeline-expand-btn.expanded i {
    transform: rotate(180deg);
}

.timeline-expand-btn.expanded .expand-text::after {
    content: '';
}

/* Hidden Timeline Items */
.timeline-hidden-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    opacity: 0;
}

.timeline-hidden-items.expanded {
    max-height: 2000px;
    opacity: 1;
}

.timeline-hidden-items .timeline-item {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.timeline-hidden-items.expanded .timeline-item {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   13. SKILLS SECTION
   ============================================ */
.skills {
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0a12 100%);
    overflow: hidden;
}

/* Animated Grid Lines Background */
.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Horizontal Scan Line Effect */
.skills::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), var(--accent-3), transparent);
    animation: scanLine 4s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Corner Accents */
.skills .container {
    position: relative;
    z-index: 1;
}

.skills .container::before,
.skills .container::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    pointer-events: none;
}

.skills .container::before {
    top: -30px;
    left: -30px;
    border-right: none;
    border-bottom: none;
}

.skills .container::after {
    bottom: -30px;
    right: -30px;
    border-left: none;
    border-top: none;
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.skill-category:hover {
    border-color: var(--accent-2);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: #fff;
}

.category-header h3 {
    font-size: 1.3rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-item .skill-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--accent-2);
}

.skill-item span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.skill-level {
    width: 80px;
    height: 6px;
    background: var(--glass-bg);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s var(--ease-out-expo);
}

.skill-level.animate::after {
    width: calc(var(--level) * 1%);
}

/* ============================================
   14. PORTFOLIO SECTION
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

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

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

.project-link {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
    transform: scale(0);
    transition: transform var(--transition-fast);
}

.portfolio-card:hover .project-link {
    transform: scale(1);
}

.card-content {
    padding: 25px;
}

.project-category {
    font-size: 0.8rem;
    color: var(--accent-2);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 5px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

/* Placeholder card image (gradient + icon) for projects without screenshots */
.card-image-placeholder {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

.card-image-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.25), transparent 60%);
    pointer-events: none;
}

.card-image-placeholder i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    transition: transform var(--transition-medium);
}

.portfolio-card:hover .card-image-placeholder i {
    transform: scale(1.15) rotate(-4deg);
}

.card-image-placeholder.theme-blue   { background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%); }
.card-image-placeholder.theme-purple { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.card-image-placeholder.theme-pink   { background: linear-gradient(135deg, #db2777 0%, #f43f5e 100%); }
.card-image-placeholder.theme-orange { background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%); }
.card-image-placeholder.theme-green  { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.card-image-placeholder.theme-dark   { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.card-image-placeholder.theme-cyan   { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); }
.card-image-placeholder.theme-rose   { background: linear-gradient(135deg, #be123c 0%, #fb7185 100%); }
.card-image-placeholder.theme-emerald { background: linear-gradient(135deg, #047857 0%, #34d399 100%); }

/* Expandable extra projects section */
.portfolio-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease, opacity 0.5s ease, margin 0.4s ease;
    margin-top: 0;
}

.portfolio-extra.expanded {
    max-height: 8000px;
    opacity: 1;
    margin-top: 30px;
}

.portfolio-extra .portfolio-grid {
    margin-top: 0;
}

#portfolioToggle .fas {
    transition: transform 0.3s ease;
}

#portfolioToggle.expanded .fas {
    transform: rotate(90deg);
}

/* ============================================
   15. TESTIMONIALS - PREMIUM CAROUSEL
   ============================================ */
.testimonials {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    padding: 120px 0;
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.testi-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: floatGlow 10s ease-in-out infinite;
}

.testi-glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.15);
    top: 10%;
    left: 10%;
}

.testi-glow-2 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.1);
    bottom: 10%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes floatGlow {

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

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

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

.testimonials-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

/* ========== BENTO GRID TESTIMONIALS ========== */
.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.85), rgba(20, 20, 35, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.bento-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-card:hover .bento-glow {
    opacity: 1;
}

/* Featured Card - Takes up 2 rows */
.bento-featured {
    grid-row: span 2;
    padding: 40px;
}

/* Medium Card */
.bento-medium {
    min-height: 200px;
}

/* Small Card */
.bento-small {
    min-height: 200px;
}

/* Wide Card - Spans 2 columns */
.bento-wide {
    grid-column: span 2;
}

/* Compact Card */
.bento-compact {
    min-height: 180px;
}

/* Card Content */
.bento-content {
    flex: 1;
    margin-bottom: 25px;
}

.bento-quote {
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 0.8;
    color: var(--accent-2);
    opacity: 0.25;
    margin-bottom: 15px;
}

.bento-featured .bento-quote {
    font-size: 5rem;
}

.bento-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bento-featured .bento-text {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Expand Button */
.bento-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-2);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-expand {
    opacity: 1;
}

.bento-expand i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-expand i {
    transform: rotate(45deg);
}

/* Footer */
.bento-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bento-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bento-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.bento-featured .bento-avatar {
    width: 55px;
    height: 55px;
    font-size: 1.1rem;
}

.bento-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bento-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bento-featured .bento-name {
    font-size: 1.1rem;
}

.bento-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bento-stars {
    display: flex;
    gap: 3px;
}

.bento-stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* ========== TESTIMONIAL MODAL ========== */
.testi-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.testi-modal.active {
    opacity: 1;
    visibility: visible;
}

.testi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.testi-modal-content {
    position: relative;
    max-width: 850px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 0.99));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 50px;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s ease;
}

.testi-modal.active .testi-modal-content {
    transform: translateY(0) scale(1);
}

.testi-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testi-modal-close:hover {
    background: var(--accent-2);
    transform: rotate(90deg);
}

.modal-quote-mark {
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-2);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testi-modal-body {
    margin-bottom: 30px;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-style: italic;
    white-space: pre-line;
}

.testi-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.modal-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-avatar {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.modal-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.modal-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-rating {
    display: flex;
    gap: 4px;
}

.modal-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

/* Bento Grid Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bento-featured,
    .bento-wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .bento-card {
        padding: 26px;
    }
}

/* ============================================
   16. CONTACT SECTION
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag {
    margin-bottom: 15px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info>p {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--accent-2);
}

.contact-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-item a,
.contact-item p {
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--accent-2);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group textarea~label {
    top: 20px;
    transform: none;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -12px;
    left: 15px;
    font-size: 0.75rem;
    background: var(--bg-card);
    padding: 0 8px;
    color: var(--accent-2);
}

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

/* ============================================
   17. FOOTER
   ============================================ */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

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

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-tagline i {
    color: var(--accent-4);
}

/* ============================================
   18. ANIMATIONS
   ============================================ */

/* Base Fade Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in-scale {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-scale {
    transform: scale(0.9);
}

.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

/* ═══════════════════════════════════════════
   ANIMATED GRADIENT TEXT 
   ═══════════════════════════════════════════ */
.gradient-text {
    background: linear-gradient(90deg,
            #fff 0%,
            var(--accent-1) 25%,
            var(--accent-2) 50%,
            var(--accent-4) 75%,
            #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ═══════════════════════════════════════════
   FLOATING ANIMATIONS
   ═══════════════════════════════════════════ */
.floating-badge {
    animation: float 3s ease-in-out infinite;
}

.floating-badge.badge-react {
    animation-delay: 0s;
}

.floating-badge.badge-figma {
    animation-delay: 1s;
}

.floating-badge.badge-node {
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hero image subtle pulse glow */
.hero-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

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

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

/* ═══════════════════════════════════════════
   SHIMMER EFFECT ON BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* ═══════════════════════════════════════════
   GLOW PULSE ON ACCENT ELEMENTS
   ═══════════════════════════════════════════ */
.timeline-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 35px rgba(139, 92, 246, 0.9), 0 0 60px rgba(139, 92, 246, 0.4);
    }
}

/* Badge dot pulse */
.badge-dot {
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* ═══════════════════════════════════════════
   CARD HOVER ANIMATIONS
   ═══════════════════════════════════════════ */
.portfolio-card {
    transition: all 0.4s var(--ease-out-expo);
}

.portfolio-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.15);
}

.about-card {
    transition: all 0.3s var(--ease-out-expo);
}

.about-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.about-card:hover .card-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

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

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

.skill-category:hover {
    animation: cardShine 0.6s ease;
}

@keyframes cardShine {
    0% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0);
    }

    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    }

    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
    }
}

/* ═══════════════════════════════════════════
   TYPEWRITER / TEXT REVEAL EFFECT
   ═══════════════════════════════════════════ */
.hero-title .line {
    display: block;
    opacity: 0;
    animation: textReveal 0.8s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

/* ═══════════════════════════════════════════
   SCROLL LINE ANIMATION (Hero)
   ═══════════════════════════════════════════ */
.scroll-indicator {
    animation: fadeInBounce 1s ease 1.5s forwards;
    opacity: 0;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    50% {
        opacity: 1;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   ICON ROTATION ON HOVER
   ═══════════════════════════════════════════ */
.social-link:hover i {
    animation: iconSpin 0.5s ease;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.2);
    }

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

/* ═══════════════════════════════════════════
   TESTIMONIAL QUOTE ANIMATION
   ═══════════════════════════════════════════ */
.testimonial-card:hover .quote-icon {
    animation: quoteFloat 0.6s ease;
}

@keyframes quoteFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ═══════════════════════════════════════════
   FORM INPUT FOCUS ANIMATION
   ═══════════════════════════════════════════ */
.form-group input:focus,
.form-group textarea:focus {
    animation: inputGlow 0.3s ease;
}

@keyframes inputGlow {
    0% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }
}

/* ═══════════════════════════════════════════
   NAVBAR LOGO ANIMATION
   ═══════════════════════════════════════════ */
.logo:hover .logo-bracket {
    animation: bracketPop 0.4s ease;
}

@keyframes bracketPop {

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

    50% {
        transform: scale(1.3);
        color: var(--accent-4);
    }
}

/* ═══════════════════════════════════════════
   STAT NUMBER COUNTUP GLOW
   ═══════════════════════════════════════════ */
.stat-number {
    transition: text-shadow 0.3s ease;
}

.hero-stat:hover .stat-number {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

/* ═══════════════════════════════════════════
   RIPPLE EFFECT ON CLICK
   ═══════════════════════════════════════════ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   18.5 ACCESSIBILITY, REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .cursor-dot,
    .cursor-outline,
    #cursor-trail,
    .mouse-gradient,
    #neural-network,
    .floating-badge,
    .hero-glow,
    .testi-glow,
    .mesh-gradient,
    .noise-overlay {
        display: none !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Hide hover-only effects on touch devices */
@media (hover: none) {

    .cursor-dot,
    .cursor-outline,
    #cursor-trail,
    .mouse-gradient {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    /* Disable magnetic / tilt hover transforms on touch */
    .magnetic,
    .portfolio-card,
    .skill-category,
    .testimonial-card,
    #tilt-card {
        transform: none !important;
    }

    .portfolio-card:hover,
    .skill-category:hover,
    .testimonial-card:hover,
    #tilt-card:hover {
        transform: translateY(0) !important;
    }
}

/* ============================================
   19. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    /* Show the hero image stacked above content on tablets/mobile */
    .hero-visual {
        order: -1;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-image-wrapper {
        width: 240px;
        height: 240px;
        max-width: 80vw;
        max-height: 80vw;
        border-radius: 50%;
    }

    .hero-image-wrapper img,
    .hero-image-wrapper::after {
        border-radius: 50%;
    }

    .hero-image-border {
        border-radius: 50%;
    }

    /* Floating badges look cluttered when image is small, hide on mobile/tablet */
    .floating-badge {
        display: none;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-section {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }

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

    .about-cards {
        justify-items: center;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info>p {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline,
    #cursor-trail,
    .mouse-gradient {
        display: none !important;
    }

    /* Navigation Mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 10, 20, 0.98), rgba(20, 15, 35, 0.98));
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s var(--ease-out-expo);
        z-index: 999;
    }

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

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .nav-links a {
        font-size: 1.6rem;
        font-weight: 500;
    }

    .nav-cta {
        display: none;
    }

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

    /* Lang switcher: hide the navbar version, show inside open mobile menu */
    .lang-switcher {
        display: none;
    }

    .nav-links.active .lang-switcher {
        display: flex;
        margin-top: 40px;
        gap: 14px;
    }

    /* Hero Mobile */
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        justify-content: center;
        padding-top: 25px;
        margin-bottom: 0;
    }

    .hero-stat {
        text-align: center;
        min-width: 0;
    }

    .hero-stat .stat-number {
        font-size: 1.7rem;
    }

    .hero-stat .stat-suffix {
        font-size: 1.3rem;
    }

    .hero-stat .stat-label {
        font-size: 0.72rem;
        line-height: 1.3;
        margin-top: 4px;
    }

    /* Scroll indicator overlaps wrapped stats on small viewports, hide on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 0.95rem;
    }

    section {
        padding: 80px 0;
    }

    /* About Mobile, show image but smaller, above text */
    .about-image-section {
        max-width: 240px;
        margin: 0 auto 10px;
    }

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

    .about-cards {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .about-card {
        padding: 20px;
    }

    /* Skills Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 25px;
    }

    /* Portfolio Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portfolio-card {
        padding: 0;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    /* Bento Grid Mobile */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bento-featured,
    .bento-wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .bento-card {
        padding: 25px;
    }

    .bento-card:hover {
        transform: translateY(-4px);
    }

    .bento-quote {
        font-size: 3rem;
    }

    .bento-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .bento-avatar {
        width: 42px;
        height: 42px;
        font-size: 0.85rem;
    }

    .bento-name {
        font-size: 0.95rem;
    }

    .bento-role {
        font-size: 0.75rem;
    }

    .bento-expand span {
        font-size: 0.8rem;
    }

    /* Modal Mobile */
    .testi-modal-content {
        width: 95%;
        padding: 30px 25px;
        border-radius: 20px;
        max-height: 85vh;
    }

    .modal-quote-mark {
        font-size: 3.5rem;
    }

    .modal-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .testi-modal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .testi-modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    /* Contact Mobile */
    .contact-wrapper {
        gap: 40px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .contact-details {
        gap: 20px;
    }

    /* Timeline Mobile */
    .timeline {
        padding-left: 15px;
    }

    .timeline-item {
        padding-left: 25px;
        padding-bottom: 25px;
    }

    .timeline-dot {
        left: -22px;
        width: 12px;
        height: 12px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 0 15px;
    }

    /* Hero Small Mobile */
    .hero-title {
        font-size: 1.8rem;
    }

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

    .hero-stats {
        gap: 8px;
        padding-top: 20px;
    }

    .hero-stat .stat-number {
        font-size: 1.4rem;
    }

    .hero-stat .stat-suffix {
        font-size: 1.1rem;
    }

    .hero-stat .stat-label {
        font-size: 0.65rem;
        line-height: 1.25;
    }

    /* About cards: single column on very small screens */
    .about-cards {
        grid-template-columns: 1fr;
    }

    /* Section Small Mobile */
    .section-title {
        font-size: 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    /* Cards Small Mobile */
    .bento-card {
        padding: 22px;
    }

    .bento-text {
        font-size: 0.9rem;
    }

    .skill-category,
    .portfolio-card {
        padding: 20px;
    }

    .portfolio-card {
        padding: 0;
    }

    .card-content {
        padding: 20px;
    }

    /* Buttons Small Mobile */
    .btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    /* Modal Small Mobile */
    .testi-modal-content {
        padding: 25px 20px;
    }

    .modal-text {
        font-size: 0.95rem;
    }

    /* Form Small Mobile, inputs MUST stay >=16px to avoid iOS zoom-on-focus */
    .form-group input,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 16px;
    }

    /* Contact form padding tighter */
    .contact-form {
        padding: 25px 18px;
    }

    /* Timeline small mobile */
    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
    }

    .timeline-tags span {
        font-size: 0.7rem;
    }

    /* About Image Small Mobile (kept for completeness, section is hidden at 768px) */
    .about-image-wrapper {
        max-width: 280px;
    }

    /* Navigation Small Mobile */
    .logo {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 1.4rem;
    }
}