/* ═══════════════════════════════════════════════════════════
   PRINCE GUPTA | FLUTTER DEVELOPER PORTFOLIO
   Professional Dark Theme with Flutter-inspired accents
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --flutter-blue: #54C5F8;
    --flutter-dark: #01579B;
    --flutter-mid: #29B6F6;
    --accent: #54C5F8;
    --accent2: #7c3aed;
    --accent3: #34d399;
    --bg: #080B14;
    --bg2: #0D1117;
    --bg3: #111827;
    --bg4: #1a2235;
    --card: #0f1621;
    --card2: #131d2e;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(84, 197, 248, 0.2);
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #54C5F8, #7c3aed);
    --gradient2: linear-gradient(135deg, #6C63FF, #3ECFCF);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(84, 197, 248, 0.15);
    --radius: 16px;
    --radius2: 12px;
    --radius3: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', sans-serif;
    --font2: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: rgba(84, 197, 248, 0.3);
    color: var(--white);
}

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

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

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

/* ── Utility ──────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg2);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(84, 197, 248, 0.1);
    border: 1px solid rgba(84, 197, 248, 0.3);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font2);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--text2);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Custom Cursor ────────────────────────────────────────── */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(84, 197, 248, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, width 0.2s, height 0.2s, opacity 0.3s;
}

/* ── Loading Screen ───────────────────────────────────────── */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

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

.flutter-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.flutter-icon {
    width: 80px;
    height: 80px;
    animation: flutter-spin 1.5s ease-in-out infinite alternate;
}

.flutter-icon svg {
    width: 100%;
    height: 100%;
}

.flutter-top {
    animation: flutter-fade 1.5s ease-in-out infinite alternate;
}

.flutter-bottom-dark {
    animation: flutter-fade 1.5s ease-in-out 0.2s infinite alternate;
}

.flutter-bottom-light {
    animation: flutter-fade 1.5s ease-in-out 0.4s infinite alternate;
}

.flutter-mid {
    animation: flutter-fade 1.5s ease-in-out 0.6s infinite alternate;
}

@keyframes flutter-spin {
    0% {
        transform: rotateY(0deg) scale(1);
        filter: drop-shadow(0 0 10px rgba(84, 197, 248, 0.5));
    }

    100% {
        transform: rotateY(20deg) scale(1.05);
        filter: drop-shadow(0 0 20px rgba(84, 197, 248, 0.9));
    }
}

@keyframes flutter-fade {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.loader-text {
    display: flex;
    flex-direction: column;
}

.loader-name {
    font-family: var(--font2);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.loader-role {
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.loader-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader-bar {
    width: 280px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(84, 197, 248, 0.6);
}

.loader-percent {
    font-size: 12px;
    color: var(--text3);
    font-weight: 500;
}

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
    padding: 0;
}

#navbar.scrolled {
    background: rgba(8, 11, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-family: var(--font2);
    font-size: 18px;
    font-weight: 700;
    margin-right: auto;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 14px rgba(84, 197, 248, 0.3);
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius3);
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width var(--transition);
}

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

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

.nav-cta {
    margin-left: 16px;
    padding: 9px 22px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(84, 197, 248, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(84, 197, 248, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text2);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    background: rgba(8, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    text-decoration: none;
    color: var(--text2);
    padding: 12px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: var(--accent);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(84, 197, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 197, 248, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(84, 197, 248, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
    animation: orbFloat 10s ease-in-out 2s infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: orbFloat 6s ease-in-out 4s infinite;
}

@keyframes orbFloat {

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

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

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Hero Left */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent3);
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent3);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

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

    50% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}

.hero-title {
    font-family: var(--font2);
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle-wrap {
    display: flex;
    align-items: center;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 24px;
    min-height: 40px;
}

.hero-subtitle-static {
    color: var(--text2);
}

.typewriter {
    color: var(--accent);
    font-weight: 700;
}

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-size: inherit;
    font-weight: 700;
}

/* Override cursor for the text cursor */
span.cursor {
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    transform: none;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-desc {
    color: var(--text2);
    font-size: 16px;
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 28px;
}

.hero-desc strong {
    color: var(--text);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text2);
    font-weight: 500;
    transition: all var(--transition);
}

.chip:hover {
    border-color: var(--border2);
    color: var(--accent);
}

.chip i {
    color: var(--accent);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(84, 197, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(84, 197, 248, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--border2);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(84, 197, 248, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius2);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font2);
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Right - Phone Mockup */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero 3D Model */
.hero-model-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 420px;
}

.hero-model-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 197, 248, 0.18) 0%, rgba(124, 58, 237, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 0;
}

.hero-model-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(84, 197, 248, 0.15);
    z-index: 0;
}

.hero-model-ring.ring-1 {
    width: 320px;
    height: 320px;
    animation: ringRotate 10s linear infinite;
}

.hero-model-ring.ring-2 {
    width: 380px;
    height: 380px;
    border-color: rgba(124, 58, 237, 0.1);
    animation: ringRotate 16s linear infinite reverse;
}

.hero-model-img {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    border-radius: 40px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(84, 197, 248, 0.12),
        0 0 60px rgba(84, 197, 248, 0.1);
    animation: phoneBob 5s ease-in-out infinite;
}

.phone-mockup-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.phone-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 50% 50%, rgba(84, 197, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

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

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

.phone-mockup {
    width: 270px;
    background: #0a0f1a;
    border-radius: 44px;
    border: 8px solid #1e2c42;
    box-shadow:
        0 0 0 1px rgba(84, 197, 248, 0.1),
        0 32px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: phoneBob 4s ease-in-out infinite;
}

@keyframes phoneBob {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

.phone-notch {
    width: 80px;
    height: 22px;
    background: #0a0f1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-notch::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #111d30;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(84, 197, 248, 0.4);
}

.phone-screen {
    height: 460px;
    background: #000;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.phone-chin {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-chin::after {
    content: '';
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.app-preview {
    position: relative;
    height: 100%;
}

.app-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.app-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.app-slide.exit {
    opacity: 0;
    transform: translateX(-30px);
}

/* app-body real image — full fill */
.app-body--img {
    position: absolute;
    inset: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.app-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.app-header {
    padding: 20px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex-shrink: 0;
}

.app-header-icon {
    font-size: 24px;
}

.app-header-title {
    font-size: 15px;
    font-weight: 700;
}

.app-header-sub {
    font-size: 11px;
    opacity: 0.8;
}

.app-body {
    flex: 1;
    background: #f8fafc;
    padding: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.item-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-info b {
    font-size: 12px;
    color: #1e293b;
}

.item-info span {
    font-size: 10px;
    color: #64748b;
}

.app-bottom-bar {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.app-nav-item {
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.app-nav-item.active {
    background: #EEF2FF;
}

/* Music Player (High App) */
.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.music-disc {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e1b4b, #3730a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    animation: discSpin 8s linear infinite;
}

@keyframes discSpin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.music-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.music-artist {
    font-size: 11px;
    color: #a78bfa;
}

.music-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.music-progress {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 2px;
    animation: musicProgress 4s ease-in-out infinite alternate;
}

@keyframes musicProgress {
    0% {
        width: 20%
    }

    100% {
        width: 80%
    }
}

.music-controls {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #a78bfa;
}

.play-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.music-item {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

.music-item.active {
    background: rgba(124, 58, 237, 0.2);
    border-left: 2px solid #a78bfa;
}

/* Matrimonial Cards */
.match-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.match-avatar {
    font-size: 28px;
    flex-shrink: 0;
}

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

.match-info b {
    font-size: 12px;
    color: #1e293b;
}

.match-info span {
    font-size: 10px;
    color: #64748b;
}

.match-score {
    font-size: 11px;
    font-weight: 700;
    color: #e91e8c;
    background: #fce4ec;
    padding: 3px 8px;
    border-radius: 50px;
}

.app-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(84, 197, 248, 0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
    animation: fadeInUp 1s 2s ease both;
}

.scroll-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

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

    50% {
        transform: translateY(6px)
    }
}

/* ── About Section ────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    width: 320px;
    height: 400px;
    margin: 0 auto;
}

.about-img-bg {
    position: absolute;
    inset: 20px;
    background: var(--gradient);
    border-radius: 30px;
    opacity: 0.18;
    filter: blur(32px);
}

.about-avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.avatar-inner {
    width: 240px;
    height: 300px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    box-shadow:
        0 24px 60px rgba(84, 197, 248, 0.25),
        0 0 0 1px rgba(84, 197, 248, 0.15);
    background: var(--card);
}

.avatar-3d {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(84, 197, 248, 0.3));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-inner:hover .avatar-3d {
    transform: scale(1.04) translateY(-4px);
}

.avatar-ring {
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1.5px solid rgba(84, 197, 248, 0.2);
    border-radius: 50%;
    animation: ringRotate 8s linear infinite;
}

.avatar-ring--2 {
    width: 310px;
    height: 310px;
    border-color: rgba(124, 58, 237, 0.12);
    animation-duration: 14s;
    animation-direction: reverse;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.about-float-card {
    position: absolute;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    animation: cardFloat 3s ease-in-out infinite alternate;
    z-index: 2;
}

.card-1 {
    top: 10px;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 60px;
    right: -40px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10px;
    left: -30px;
    animation-delay: 0.5s;
}

@keyframes cardFloat {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(-8px)
    }
}

.about-intro h3 {
    font-family: var(--font2);
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.about-intro p {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-intro strong {
    color: var(--text);
}

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

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    transition: all var(--transition);
}

.highlight-item:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
}

.hi-icon {
    width: 36px;
    height: 36px;
    background: rgba(84, 197, 248, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.hi-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hi-text strong {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

.hi-text span {
    font-size: 12px;
    color: var(--text3);
}

.about-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ── Projects Section — Full Showcase Slider ──────────────── */

/* Showcase Wrapper */
.showcase-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--card);
}

.showcase-track {
    position: relative;
    width: 100%;
}

.showcase-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px 64px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(60px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    inset: 0;
    min-height: 540px;
}

.showcase-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    position: relative;
}

.showcase-slide.exit {
    opacity: 0;
    transform: translateX(-60px);
    position: absolute;
}

/* Left — details */
.showcase-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 48px;
}

.showcase-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.showcase-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid;
}

.showcase-platforms {
    display: flex;
    gap: 10px;
}

.showcase-platforms span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text3);
    font-weight: 500;
}

.showcase-platforms i {
    color: var(--accent);
    font-size: 13px;
}

.showcase-title {
    font-family: var(--font2);
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.showcase-desc {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.8;
    max-width: 460px;
}

.showcase-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.showcase-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text3);
    transition: all var(--transition);
}

.showcase-slide.active .feature-tag {
    border-color: rgba(84, 197, 248, 0.2);
    color: var(--text2);
}

.tech-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tech-badge.flutter {
    background: rgba(84, 197, 248, 0.12);
    color: #54C5F8;
}

.tech-badge.dart {
    background: rgba(1, 87, 155, 0.2);
    color: #29B6F6;
}

.tech-badge.firebase {
    background: rgba(249, 168, 37, 0.12);
    color: #f9a825;
}

.tech-badge.audio {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
}

/* Right — phone */
.showcase-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.showcase-phone-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(64px);
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

.showcase-phone {
    width: 240px;
    background: #0a0f1a;
    border-radius: 42px;
    border: 7px solid #1e2c42;
    box-shadow:
        0 0 0 1px rgba(84, 197, 248, 0.12),
        0 32px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: phoneBob 4s ease-in-out infinite;
}

.sphone-notch {
    width: 90px;
    height: 24px;
    background: #0a0f1a;
    border-radius: 0 0 18px 18px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphone-notch::before {
    content: '';
    width: 9px;
    height: 9px;
    background: #111d30;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(84, 197, 248, 0.4);
}

.sphone-screen {
    height: 460px;
    background: #000;
    overflow: hidden;
}

.sphone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.sphone-chin {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphone-chin::after {
    content: '';
    width: 70px;
    height: 4px;
    background: #1e2c42;
    border-radius: 2px;
}

/* Controls bar */
.showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 32px 18px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.sc-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.sc-btn:hover {
    background: rgba(84, 197, 248, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.08);
}

.sc-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-dot {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}

.sc-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text3);
    transition: all 0.3s ease;
    display: block;
}

.sc-dot.active::before {
    background: var(--accent);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(84, 197, 248, 0.6);
}

.sc-dot-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    transition: color var(--transition);
    white-space: nowrap;
}

.sc-dot.active .sc-dot-label {
    color: var(--accent);
}

.sc-progress-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.sc-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    transition: width 0.12s linear;
    box-shadow: 0 0 6px rgba(84, 197, 248, 0.5);
}

/* ── Skills Section ───────────────────────────────────────── */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.skills-left h3,
.skills-right h3 {
    font-family: var(--font2);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 28px;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.skill-name i {
    color: var(--accent);
    width: 16px;
}

.skill-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.skill-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(84, 197, 248, 0.4);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--border2);
    box-shadow: var(--shadow-glow);
}

.skill-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.skill-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
}

.deploy-card {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 24px;
    color: white;
}

.deploy-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.deploy-desc {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1.6;
}

.deploy-platforms {
    display: flex;
    gap: 20px;
}

.deploy-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.deploy-platform i {
    font-size: 16px;
}

/* Timeline */
.timeline-section {
    margin-top: 40px;
}

.timeline-title {
    font-family: var(--font2);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 48px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2), var(--accent3));
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    padding-right: 55%;
    position: relative;
    margin-bottom: 40px;
}

.timeline-item.right {
    justify-content: flex-end;
    padding-right: 0;
    padding-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(8, 11, 20, 1), 0 0 16px currentColor;
    z-index: 1;
}

.timeline-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 18px 20px;
    max-width: 260px;
    transition: all var(--transition);
}

.timeline-card:hover {
    border-color: var(--border2);
    transform: scale(1.02);
}

.timeline-year {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.timeline-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.timeline-card p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
}

/* ── Contact Section ──────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-left h3 {
    font-family: var(--font2);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-left p {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    transition: all var(--transition);
}

.contact-info-item:hover {
    border-color: var(--border2);
    transform: translateX(6px);
}

.ci-icon {
    width: 40px;
    height: 40px;
    background: rgba(84, 197, 248, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.ci-text {
    display: flex;
    flex-direction: column;
}

.ci-text span {
    font-size: 11px;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ci-text a {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.ci-text a:hover {
    color: var(--accent);
}

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

.social-btn {
    width: 44px;
    height: 44px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text3);
    font-size: 16px;
    transition: all var(--transition);
}

.social-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(84, 197, 248, 0.3);
}

/* Contact Form */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
}

.form-group input,
.form-group textarea {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius3);
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    transition: all var(--transition);
    outline: none;
    resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg4);
    box-shadow: 0 0 0 3px rgba(84, 197, 248, 0.1);
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius3);
    color: var(--accent3);
    font-weight: 500;
}

.form-success.show {
    display: flex;
    animation: fadeInUp 0.4s ease;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.footer-links-col a {
    text-decoration: none;
    color: var(--text3);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text3);
    flex-wrap: wrap;
    gap: 12px;
}

.heart {
    animation: heartBeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartBeat {

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

    50% {
        transform: scale(1.2)
    }
}

/* ── Back to Top ──────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(84, 197, 248, 0.3);
    transition: all var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(84, 197, 248, 0.45);
}

/* ── Animations / AOS-like ────────────────────────────────── */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].animated {
    opacity: 1;
    transform: none;
}

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

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .showcase-slide {
        padding: 48px 40px;
    }
}

@media (max-width: 900px) {
    .showcase-slide {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        text-align: center;
    }

    .showcase-left {
        padding-right: 0;
        align-items: center;
    }

    .showcase-meta {
        justify-content: center;
    }

    .showcase-desc {
        margin: 0 auto;
    }

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

    .showcase-features,
    .showcase-tech {
        justify-content: center;
    }

    .showcase-right {
        margin-top: 32px;
    }

    .showcase-phone {
        width: 200px;
    }

    .sphone-screen {
        height: 400px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-model-wrap {
        width: 240px;
        height: 300px;
        margin: 0 auto;
    }

    .hero-model-img {
        width: 200px;
        height: 260px;
    }

    .hero-model-ring.ring-1 {
        width: 230px;
        height: 230px;
    }

    .hero-model-ring.ring-2 {
        width: 270px;
        height: 270px;
    }

    .hero-badge {
        display: inline-flex;
    }

    .hero-subtitle-wrap {
        justify-content: center;
    }

    .hero-desc {
        margin: 0 auto 28px;
    }

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

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

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

    .hero-right {
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

    .skills-layout {
        grid-template-columns: 1fr;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-right: 0;
        padding-left: 50px;
    }

    .timeline-item.right {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-card {
        max-width: none;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .showcase-slide {
        padding: 28px 20px;
    }

    .showcase-phone {
        width: 180px;
    }

    .sphone-screen {
        height: 360px;
    }

    .sc-dot-label {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .about-float-card {
        display: none;
    }

    .deploy-platforms {
        flex-direction: column;
    }

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

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

    .section {
        padding: 72px 0;
    }

    .phone-mockup {
        width: 230px;
    }

    .phone-screen {
        height: 380px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 24px;
    }

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

    .contact-form {
        padding: 24px;
    }
}