@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-0: #0b0f14;
    --bg-1: #0f151c;
    --bg-2: #141b24;
    --text-1: #f3f5f7;
    --text-2: rgba(243, 245, 247, 0.7);
    --text-3: rgba(243, 245, 247, 0.5);
    --accent: #4fd1c5;
    --accent-2: #f6c453;
    --accent-3: #7bd88f;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 60px rgba(6, 10, 14, 0.45);
    --glow: 0 10px 30px rgba(79, 209, 197, 0.2);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(79, 209, 197, 0.18), transparent 60%),
        radial-gradient(900px 600px at 95% 5%, rgba(246, 196, 83, 0.14), transparent 58%),
        radial-gradient(800px 600px at 70% 85%, rgba(123, 216, 143, 0.14), transparent 60%),
        linear-gradient(160deg, #0a0e13 0%, #101923 45%, #0c1219 100%);
    color: var(--text-1);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: -20%;
    pointer-events: none;
    background:
        conic-gradient(from 120deg at 20% 20%, rgba(79, 209, 197, 0.08), transparent 30%, rgba(246, 196, 83, 0.08), transparent 60%, rgba(123, 216, 143, 0.08), transparent 80%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 10px);
    mix-blend-mode: screen;
    opacity: 0.6;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(700px 400px at 15% 15%, rgba(255, 255, 255, 0.04), transparent 70%),
        radial-gradient(600px 380px at 90% 25%, rgba(255, 255, 255, 0.03), transparent 70%),
        linear-gradient(transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    opacity: 0.55;
    z-index: -1;
}

/* === HEADER === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: rgba(12, 16, 22, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-1);
}

header.scrolled {
    background: rgba(10, 13, 18, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-1);
}

nav a:hover::after {
    width: 100%;
}

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

nav a.active::after {
    width: 100%;
}

.lang-toggle {
    margin-left: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.35);
}

/* === HERO === */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 120px 8% 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.18), transparent 70%);
    filter: blur(2px);
    z-index: -1;
}

.hero-text {
    text-align: left;
    max-width: 560px;
}

.hero h1 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 3.7rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-2);
    line-height: 1.75;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    border-radius: 28px;
    object-fit: cover;
    border: 1px solid rgba(79, 209, 197, 0.3);
    box-shadow: var(--shadow);
    flex-shrink: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-avatar:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 20px 50px rgba(9, 14, 19, 0.6);
}

/* Hero without avatar (centered) */
.hero.centered {
    flex-direction: column;
    text-align: center;
}

.hero.centered .hero-text {
    text-align: center;
}

.hero.centered .buttons {
    justify-content: center;
}

/* === BUTTONS === */
.buttons {
    margin-top: 34px;
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #091016;
    box-shadow: var(--glow);
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(79, 209, 197, 0.35);
}

.secondary {
    border: 1.5px solid rgba(246, 196, 83, 0.5);
    color: var(--accent-2);
    background: rgba(246, 196, 83, 0.08);
}

.secondary:hover {
    transform: translateY(-3px);
    background: rgba(246, 196, 83, 0.15);
    box-shadow: 0 18px 40px rgba(246, 196, 83, 0.25);
}

/* === SECTIONS === */
.section {
    padding: 90px 8%;
}

.section-title {
    text-align: center;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-1);
}

.divider {
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border: none;
    border-radius: 3px;
    margin: 0 auto 50px;
}

/* === CARDS GRID === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card,
.image-card,
.social-card,
.collab-card,
.buddy-section {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(8, 12, 18, 0.35);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.card:hover,
.image-card:hover,
.social-card:hover,
.collab-card:hover,
.buddy-section:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 209, 197, 0.35);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.06);
}

.card {
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.4;
}

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-3);
    line-height: 1.6;
}

.card a {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.card a:hover {
    text-decoration: underline;
}

/* === ABOUT CONTENT === */
.about-text {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.85;
}

/* === STATS === */
.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 30px 0 10px;
}

.stat {
    text-align: center;
    min-width: 110px;
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === SOCIAL LINKS === */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    text-decoration: none;
    color: var(--text-1);
}

.social-card .social-icon {
    font-size: 1.9rem;
    flex-shrink: 0;
}

.social-card .social-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.social-card .social-desc {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-top: 2px;
}

/* === IMAGE CARDS === */
.image-card {
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.image-card .card-body {
    padding: 24px;
}

.image-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

.image-card p {
    font-size: 0.92rem;
    color: var(--text-3);
    line-height: 1.6;
}

.image-card .tag,
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 12px;
    margin-right: 6px;
    background: rgba(79, 209, 197, 0.12);
    color: var(--accent);
    border: 1px solid rgba(79, 209, 197, 0.25);
}

.tag.purple {
    background: rgba(246, 196, 83, 0.12);
    color: var(--accent-2);
    border-color: rgba(246, 196, 83, 0.25);
}

.tag.orange {
    background: rgba(123, 216, 143, 0.12);
    color: var(--accent-3);
    border-color: rgba(123, 216, 143, 0.25);
}

/* === IMAGE PLACEHOLDER (gradient banners) === */
.img-placeholder {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.img-placeholder.warthunder {
    background: linear-gradient(135deg, #142b26, #1f3f37, #1c2e2b);
}

.img-placeholder.cod {
    background: linear-gradient(135deg, #1a1f24, #2a3036, #1b2127);
}

.img-placeholder.battlefield {
    background: linear-gradient(135deg, #162332, #203447, #182637);
}

.img-placeholder.linexin {
    background: linear-gradient(135deg, #1f2530, #2a3342, #1b2432);
}

.img-placeholder.maxis {
    background: linear-gradient(135deg, #1c2f2a, #21433b, #193229);
}

.img-placeholder .placeholder-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: absolute;
}

/* === BUDDY / PARTNER SECTION === */
.buddies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.buddy-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.buddy-avatar {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid rgba(79, 209, 197, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.buddy-section:hover .buddy-avatar {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: var(--glow);
}

.buddy-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

.buddy-info p {
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 14px;
}

.buddy-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(79, 209, 197, 0.15);
    border: 1px solid rgba(79, 209, 197, 0.4);
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.buddy-info a:hover {
    background: rgba(79, 209, 197, 0.25);
    transform: translateY(-2px);
}

/* === COLLAB MODES === */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.collab-card {
    padding: 24px;
}

.duo-avatars,
.trio-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.duo-avatar {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    background: #10182a;
}

.duo-avatars .duo-avatar + .duo-avatar,
.trio-avatars .duo-avatar + .duo-avatar {
    margin-left: -14px;
}

.collab-card h3 {
    color: var(--text-1);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.collab-card p {
    color: var(--text-2);
    line-height: 1.6;
    font-size: 0.92rem;
}

.collab-card a {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.collab-card a:hover {
    text-decoration: underline;
}

/* === QUOTE / HIGHLIGHT TEXT === */
.highlight-text {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-2);
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.highlight-text::before {
    content: '\201C';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4.5rem;
    color: rgba(79, 209, 197, 0.15);
    font-style: normal;
    line-height: 1;
}

/* === FLAG / LOCATION === */
.location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--text-2);
    margin-top: 16px;
}

/* === SCROLL SCENE === */
.scroll-scene {
    padding: 120px 8% 80px;
    display: grid;
    gap: 38px;
}

.scene-copy h2 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.scene-copy p {
    color: var(--text-2);
    max-width: 600px;
    line-height: 1.7;
}

.scene-track {
    --scene-progress: 0;
    min-height: 160vh;
    position: relative;
}

.scene-window {
    position: sticky;
    top: 18vh;
    border-radius: 28px;
    padding: 18px;
    background: rgba(10, 14, 19, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.scene-canvas {
    position: relative;
    height: 360px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #0d1b2a 0%, #16334a 45%, #1b2b3a 100%);
}

.scene-canvas::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 260px at 20% 20%, rgba(79, 209, 197, 0.2), transparent 70%);
    opacity: calc(0.2 + (0.5 * var(--scene-progress)));
    pointer-events: none;
}

.sun {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #f9de8e 0%, rgba(246, 196, 83, 0.2) 70%);
    top: calc(20px + (60px * var(--scene-progress)));
    left: calc(60% + (120px * var(--scene-progress)));
    opacity: calc(0.6 + (0.4 * var(--scene-progress)));
    filter: blur(1px);
}

.cloud {
    position: absolute;
    width: 140px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    filter: blur(0.4px);
    opacity: 0.7;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.cloud::before {
    width: 48px;
    height: 48px;
    top: -20px;
    left: 16px;
}

.cloud::after {
    width: 60px;
    height: 60px;
    top: -28px;
    right: 18px;
}

.cloud-1 {
    top: 60px;
    left: calc(-30px + (240px * var(--scene-progress)));
    opacity: 0.6;
}

.cloud-2 {
    top: 120px;
    left: calc(200px + (140px * var(--scene-progress)));
    opacity: 0.5;
}

.cloud-3 {
    top: 40px;
    left: calc(420px + (200px * var(--scene-progress)));
    opacity: 0.45;
}

.plane {
    position: absolute;
    width: 220px;
    height: 90px;
    top: calc(140px - (60px * var(--scene-progress)));
    left: calc(20px + (360px * var(--scene-progress)));
    transform: rotate(calc(-6deg + (12deg * var(--scene-progress))));
    filter: drop-shadow(0 18px 24px rgba(9, 14, 20, 0.45));
    transition: transform 0.15s ease-out;
}

.plane svg {
    width: 100%;
    height: 100%;
}

.horizon {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -30px;
    height: 160px;
    background: linear-gradient(180deg, rgba(27, 55, 74, 0.9) 0%, rgba(10, 14, 19, 1) 85%);
    transform: translateY(calc(10px + (30px * var(--scene-progress))));
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 60px;
}

footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === FADE IN ON LOAD === */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

.fade-in-delay {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .hero {
        padding: 100px 8% 80px;
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .buttons {
        justify-content: center;
    }

    .scene-window {
        top: 12vh;
    }

    .scene-canvas {
        height: 320px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 6%;
    }

    nav {
        gap: 20px;
        justify-content: center;
    }

    .hero {
        padding: 90px 16px 60px;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .section {
        padding: 70px 6%;
    }

    .cards,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .scroll-scene {
        padding: 90px 6% 60px;
    }

    .plane {
        left: calc(10px + (260px * var(--scene-progress)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .plane,
    .horizon,
    .cloud,
    .sun {
        transition: none;
    }
}

/* === HOME (INDEX) === */
.home {
    --home-bg: #0f0f0f;
    --home-surface: #171717;
    --home-accent: #00c3ff;
    --home-accent-2: #4f46e5;
    --home-text: #f5f5f5;
    --home-muted: rgba(245, 245, 245, 0.68);
    --home-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    --home-radius: 18px;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(0, 195, 255, 0.12), transparent 70%),
        radial-gradient(900px 420px at 80% 20%, rgba(79, 70, 229, 0.18), transparent 70%),
        linear-gradient(160deg, #0b0b0b 0%, #121212 45%, #0f0f0f 100%);
    color: var(--home-text);
}

.home::before,
.home::after {
    content: none;
}

.home section {
    padding: 100px 8%;
}

.home .container {
    max-width: 1100px;
    margin: 0 auto;
}

.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.home-nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(10px);
}

.home-nav .logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.home-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.home-nav a {
    color: var(--home-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.home-nav a:hover {
    color: var(--home-text);
}

.home .hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.home .hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.home .hero p {
    margin-top: 14px;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--home-muted);
}

.home .buttons {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.home .btn {
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home .btn.primary {
    background: linear-gradient(90deg, var(--home-accent), var(--home-accent-2));
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 195, 255, 0.25);
}

.home .btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--home-text);
    background: rgba(255, 255, 255, 0.04);
}

.home .btn:hover {
    transform: translateY(-2px);
}

.home h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}

.home .section-sub {
    color: var(--home-muted);
    margin-bottom: 28px;
}

.home .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.home .card {
    background: var(--home-surface);
    border-radius: var(--home-radius);
    padding: 22px;
    box-shadow: var(--home-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.home .card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.home .card p {
    color: var(--home-muted);
    margin-bottom: 16px;
}

.home .card-link {
    color: var(--home-accent);
    text-decoration: none;
    font-weight: 600;
}

.home .card-link:hover {
    text-decoration: underline;
}

.home .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.home .skill-card {
    background: var(--home-surface);
    border-radius: var(--home-radius);
    padding: 20px 18px;
    text-align: center;
    box-shadow: var(--home-shadow);
    display: grid;
    gap: 10px;
    justify-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home .skill-card i {
    font-size: 1.7rem;
    color: var(--home-accent);
}

.home .skill-card span {
    font-size: 1.05rem;
    font-weight: 600;
}

.home .skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.home .terminal {
    background: #0b0b0b;
    border-radius: var(--home-radius);
    padding: 24px;
    box-shadow: var(--home-shadow);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #b7ffb7;
    position: relative;
    overflow: hidden;
}

.home .terminal::before {
    content: '●  ●  ●';
    color: #ff5f57;
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 0.9rem;
}

.home .terminal::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 38px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #febc2e;
    box-shadow: 14px 0 0 #28c840;
}

.home .terminal-output {
    margin-top: 28px;
    white-space: pre-wrap;
    min-height: 160px;
    max-height: 270px;
    overflow-y: auto;
    scrollbar-width: none;
    padding-right: 4px;
}

.home .terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.home .terminal-prompt {
    color: #8be38b;
}

.home .terminal input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #d4ffd4;
    font-family: inherit;
    font-size: 0.95rem;
}

.home .contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.home .contact-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.home footer {
    padding: 40px 8%;
    text-align: center;
    color: var(--home-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home .footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .home-nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

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