/* ============================================
   ALVIN IMMANUEL PORTFOLIO - UPGRADED STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
    --primary-color: #80c3fd;
    --primary-glow: rgba(128, 195, 253, 0.35);
    --accent-color: #d4c628;
    --accent-glow: rgba(212, 198, 40, 0.3);
    --bg-dark: #0b161d;
    --bg-darker: #080f14;
    --bg-card: #0e202f;
    --bg-card-hover: #132940;
    --text-light: #eef2f7;
    --text-muted: #8899aa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --border-glow: rgba(128, 195, 253, 0.15);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Custom Cursor ─────────────────────────── */
*, *::before, *::after { cursor: none !important; }

.cursor-dot {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.18s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.cursor-ring.hovering {
    width: 56px; height: 56px;
    border-color: var(--accent-color);
    opacity: 0.9;
}

/* ─── Scroll Progress Bar ───────────────────── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ─── Base ──────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
}

/* ─── Particles ─────────────────────────────── */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0%   { opacity: 0; transform: translateY(0) scale(0); }
    10%  { opacity: 0.6; transform: scale(1); }
    90%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}

/* ─── Navigation ────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.1rem 2.5rem;
    background: rgba(8, 15, 20, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 15, 20, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    padding: 0.8rem 2.5rem;
}

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

.brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.brand .highlight {
    background: var(--accent-color);
    color: var(--bg-dark);
    padding: 0.15rem 0.45rem;
    border-radius: 50%;
    margin-right: 0.15rem;
    display: inline-block;
    animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { transform: scale(1.08) rotate(-3deg); box-shadow: 0 0 0 8px transparent; }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
    padding: 0.4rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero Section ──────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 2.5rem;
    padding-top: 100px;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

/* Grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128,195,253,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128,195,253,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Radial glow behind content */
.hero::after {
    content: '';
    position: absolute;
    top: 20%; left: 5%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(128,195,253,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { animation: heroReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-eyebrow::before {
    content: '';
    width: 30px; height: 1px;
    background: var(--accent-color);
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-content h1 .name-highlight {
    position: relative;
    color: var(--primary-color);
    display: inline-block;
}

.hero-content h1 .name-highlight::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--primary-glow);
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    min-height: 1.7em;
}

.hero-content .subtitle .cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-color);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.9s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before { left: 100%; }
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px var(--primary-glow);
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}

.hero-scroll-hint:hover { color: var(--primary-color); }

.scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid var(--text-muted);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
    transition: var(--transition);
}

.hero-scroll-hint:hover .scroll-mouse { border-color: var(--primary-color); }

.scroll-wheel {
    /* width: 3px; height: 6px;
    background: var(--text-muted);
    border-radius: 2px; */
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(8px); opacity: 0; }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: heroRevealRight 1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    opacity: 0.6;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    from { opacity: 0.4; }
    to   { opacity: 0.8; box-shadow: 0 0 40px var(--primary-glow); }
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover { transform: scale(1.03); }

/* Floating stat cards */
.floating-cards {
    position: absolute;
    top: 0; right: -60px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-card {
    background: rgba(14, 32, 47, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-glow);
    padding: 1rem 1.2rem;
    width: 150px;
    animation: floatCard 4s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.floating-card:nth-child(2) { animation-delay: 1.3s; }
.floating-card:nth-child(3) { animation-delay: 2.6s; }

.floating-card .card-number {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.floating-card .card-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

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

/* ─── Stats Counter Strip ───────────────────── */
.stats-strip {
    background: var(--bg-card);
    border-top: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow);
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 2;
}

.stats-strip-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { padding: 0.5rem; }

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
    display: block;
}

/* ─── About Section ─────────────────────────── */
.about {
    padding: 7rem 2.5rem;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,198,40,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: center;
}

.about-images { position: relative; }

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.about-img {
    width: 100%;
    height: 145px;
    border-radius: 16px;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    border: 1px solid var(--border-glow);
}

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

.about-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-color: rgba(128,195,253,0.3);
}

.main-image {
    width: 100%;
    height: 195px;
    border-radius: 16px;
    border: 1px solid var(--border-glow);
    transition: var(--transition);
}

.main-image:hover {
    transform: scale(1.02);
    border-color: rgba(128,195,253,0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.about-content .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -12px; left: 0;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.3rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ─── Skills Section ────────────────────────── */
.skills {
    padding: 7rem 2.5rem;
    background: var(--bg-dark);
    position: relative;
}

.skills-container { max-width: 1200px; margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-tag-center {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.section-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: rgba(128,195,253,0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(128,195,253,0.1);
    background: var(--bg-card-hover);
}

.skill-category:hover::before { opacity: 1; }

.skill-category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.skill-category h3 {
    font-family: 'Syne', sans-serif;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.skill-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 300;
}

.skill-list li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--primary-glow);
}

/* Tools Cloud */
.tools-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 400;
}

.tool-tag:hover {
    background: rgba(128,195,253,0.08);
    border-color: rgba(128,195,253,0.3);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tool-tag i { font-size: 1.1rem; }

/* ─── Projects Section ──────────────────────── */
.projects {
    padding: 7rem 2.5rem;
    background: var(--bg-darker);
    position: relative;
}

.projects-container { max-width: 1200px; margin: 0 auto; }

.projects-carousel {
    position: relative;
    padding-top: 2.5rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

.carousel-container {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem;
    align-items: stretch;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border-radius: 22px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 360px;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(128,195,253,0.2), rgba(212,198,40,0.2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(128,195,253,0.15);
    background: var(--bg-card-hover);
}

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

/* Image with overlay */
.project-image {
    height: 210px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-1) center/cover no-repeat;
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 20, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(4px);
}

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

.overlay-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: 2px solid #ffffff;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(8px);
    transition: all 0.35s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.project-card:hover .overlay-view-btn {
    transform: translateY(0);
}

.overlay-view-btn:hover {
    background: #ffffff;
    color: var(--bg-dark);
}

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

.project-content h3 {
    font-family: 'Syne', sans-serif;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: -0.01em;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 300;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--accent-color);
    border-radius: 25px;
    transition: var(--transition);
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.88rem;
    font-weight: 600;
}

.project-link:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Carousel Controls */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border-glow);
    color: var(--primary-color);
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
    opacity: 0.4;
}

.dot.active {
    background: var(--primary-color);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--primary-glow);
}

.see-more-container {
    text-align: center;
    margin-top: 3rem;
}

.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 1.5px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.see-more-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

/* ─── New Projects Carousel (Radio Button Style) ───────────────────────── */
#scene {
    display: flex;
    align-items: center;
    justify-content: left;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 0 auto;
    background-color: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

#left-zone {
    background: var(--bg-card);
    height: 75%;
    flex-grow: 0;
    display: flex;
    width: 350px;
    align-items: flex-start;
    justify-content: left;
    z-index: 10;
}

#left-zone .list {
    display: flex;
    list-style: none;
    align-content: stretch;
    flex-direction: column;
    flex-grow: 1;
    margin: 0;
    padding: 0;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
}

#left-zone .list::-webkit-scrollbar {
    width: 6px;
}

#left-zone .list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

#left-zone .list::-webkit-scrollbar-thumb {
    background: var(--border-glow);
    border-radius: 10px;
}

#left-zone .list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

#left-zone .list li.item {
    width: 100%;
}

#left-zone .list li.item input[type="radio"] {
    display: none;
}

#left-zone .list li.item label {
    display: block;
    opacity: 0.5;
    height: 50px;
    text-align: left;
    line-height: 50px;
    padding-left: 80px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

#left-zone .list li.item label:hover {
    opacity: 0.75;
}

#left-zone .list li.item input[type="radio"]:checked ~ label {
    opacity: 1;
    color: var(--text-light);
    border-right: solid 4px var(--primary-color);
}

#left-zone .list li.item .content {
    position: absolute;
    left: 350px;
    top: 0;
    width: calc(100% - 350px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

#left-zone .list li.item input[type="radio"]:checked ~ .content {
    opacity: 1;
    pointer-events: auto;
}

#left-zone .list li.item .content .picto {
    height: 180px;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 1.5rem;
    border-radius: 0 24px 0 0;
    flex-shrink: 0;
}

#left-zone .list li.item .content h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    text-transform: capitalize;
}

#left-zone .list li.item .content p {
    max-width: 60%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

#middle-border {
    background-color: var(--border-glow);
    height: 75%;
    flex-grow: 1;
    max-width: 2px;
    z-index: 0;
}

#right-zone {
    background: var(--bg-darker);
    height: 100%;
    flex-grow: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#right-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(128,195,253,0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    #scene {
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }
    #left-zone {
        width: 100%;
        height: auto;
    }
    #left-zone .list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    #left-zone .list li.item label {
        padding: 1rem 1.5rem;
        text-align: center;
    }
    #middle-border {
        width: 100%;
        height: 2px;
        max-width: none;
    }
    #left-zone .list li.item .content {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        padding: 2rem;
    }
    #left-zone .list li.item .content .picto {
        border-radius: 16px;
        height: 200px;
    }
}

/* ─── Contact Section ───────────────────────── */
.contact {
    padding: 7rem 2.5rem;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(128,195,253,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 2rem;
    font-weight: 300;
}

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

.social-link {
    width: 48px; height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    border: 1px solid var(--border-glow);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px var(--primary-glow);
    border-color: transparent;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 2.2rem;
    border-radius: 22px;
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
}
.contact-form::after {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.form-group { margin-bottom: 1.2rem; position: relative; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(128, 195, 253, 0.04);
    border: 1.5px solid var(--border-glow);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(128, 195, 253, 0.07);
    box-shadow: 0 0 0 3px rgba(128,195,253,0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::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 ease;
}

.submit-btn:hover::before { left: 100%; }
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

.form-message {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
    animation: fadeInUp 0.4s ease;
}

.form-message.success { background: rgba(76,175,80,0.1); color: #4CAF50; border: 1px solid rgba(76,175,80,0.3); }
.form-message.error   { background: rgba(244,67,54,0.1); color: #f44336; border: 1px solid rgba(244,67,54,0.3); }

/* ─── Footer ────────────────────────────────── */
.footer {
    background: var(--bg-darker);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-glow);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 300;
}

/* ─── Scroll Animations ─────────────────────── */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Animations ────────────────────────────── */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

/* ─── Responsive ────────────────────────────── */
@media (max-width: 900px) {
    .hero-container,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content { text-align: center; }
    .hero-actions { justify-content: center; }

    .hero-visual { display: flex; justify-content: center; }
    .hero-image-container { max-width: 380px; }
    .floating-cards { display: none; }

    .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(8,15,20,0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        padding: 2rem 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-glow);
        z-index: 1050;
    }

    .nav-links.mobile-open { transform: translateX(0); }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--text-light);
    }

    .project-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: unset;
        max-width: 100%;
    }

    .carousel-slide {
        flex-direction: column;
        align-items: center;
    }

    .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
    .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.5rem; }
    .section-header h2, .about-content h2, .contact-info h2 { font-size: 2rem; }
}

/* ─── Testimonial-Inspired Project Carousel ───────────────────────── */
.testimonial-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  color: #222;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 260px;
  max-width: 320px;
  margin: 0 12px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.testimonial-card .testimonial-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}
.testimonial-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.testimonial-arrow:hover {
  background: var(--primary-color);
  color: #fff;
}
.testimonial-stars {
  margin: 18px 0 0 18px;
  color: var(--accent-color);
  font-size: 1rem;
}
.testimonial-info {
  margin: 12px 0 18px 18px;
}
.testimonial-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-role {
  font-size: 0.95rem;
  color: #888;
}

/* Carousel nav at top right */
.projects-carousel {
  position: relative;
  padding-top: 2.5rem;
}
.carousel-nav {
  position: absolute;
  top: 0;
  right: 0;
  gap: 0.5rem;
  margin-top: 0;
  z-index: 3;
}
.carousel-btn {
  background: #fff;
  color: var(--primary-color);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.carousel-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.08);
}
.carousel-dots {
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .testimonial-card { min-width: 220px; max-width: 98vw; }
}
