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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.accent {
    color: #38bdf8;
}

/* ====================== NAVBAR ====================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    z-index: 1000;
}

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

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

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

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #38bdf8;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -0.6vw;
    left: 0;
    background: #38bdf8;
    transition: width 0.4s ease;
}

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

.nav-socials {
    display: flex;
    gap: 1.2rem;
}

.nav-socials a {
    color: #94a3b8;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.nav-socials a:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

/* ====================== HERO ====================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e2937 100%);
    padding-top: 80px;
    /* Desktop padding */
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #34d399;
    border-radius: 50%;
    animation: glow 2s infinite;
}

@keyframes glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 1.5rem;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.8s steps(30, end) forwards, blink 0.8s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    font-size: 1.05rem;
}

.btn-primary {
    background: #38bdf8;
    color: #0f172a;
}

.btn-primary:hover {
    background: #22d3ee;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid #64748b;
    color: #e2e8f0;
}

.btn-secondary:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #38bdf8;
}

.stat-label {
    font-size: 0.95rem;
    color: #64748b;
}

/* ====================== SECTIONS ====================== */
.section {
    padding: 100px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.alt {
    background: #020617;
}

/* About Section */
.about-grid {
    display: flex;
    width: 80vw;
    justify-content: center;
}

.about-text {
    margin-left: 10vw;
}

.about-text p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.about-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 1.5vw;
    width: 84vw;
}

.mockup-header {
    font-size: 2.3vw;
    margin-left: 36.5vw;
    margin-top: 6vw;
}

.about-card h3 {
    margin-bottom: 1.2rem;
    color: #38bdf8;
}

/* Projects */
.work-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1vw;

    margin-top: 20px;
}

.work-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25vw;
    gap: 0.9vw;
}

.image-class {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
}

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

.work-projects>a {
    color: white;
    text-decoration: none;
}

.work-projects>a:hover {
    color: rgba(0, 0, 255, 0.678);
    scale: 1.1;
    transition: all ease 0.3s;
}

.image-class:hover {
    scale: 1.1;
    transition: all ease-in 0.3s;
}

/* Contact */
.text-center-links {
    display: flex;
    margin-left: 2vw;
    justify-content: center;
    align-items: center;
    gap: 2.5vw;
}

.text-center-links>a {
    color: rgba(0, 0, 0, 0.897);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4vw;
    border: 0.1vw solid black;
    border-radius: 0.8vw;
    padding: 0.4vw;
    background-color: white;
}

.text-center-links>.x-class {
    padding: 0.2vw 0.9vw;
}

.text-center-links>a:hover {
    scale: 1.01;
}

/* ====================== MOBILE RESPONSIVE ====================== */
@media screen and (max-width: 768px) {

    /* Navbar */
    .nav-container {
        padding: 1rem 1.25rem;
    }

    .logo {
        font-size: 1.55rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

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

    .nav-socials {
        gap: 0.9rem;
    }

    .nav-socials a {
        font-size: 1.25rem;
    }

    /* HERO - Reduced top padding to fix the big gap */
    .hero {
        padding-top: 70px;

        /* Much smaller than before */
        min-height: 100vh;
    }

    .hero-content {
        padding-top: 0;
        /* No extra top space */
    }

    .hero-badge {
        margin-bottom: 1.2rem;
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.75rem;
        line-height: 1.05;
    }

    .hero-subtitle {
        font-size: 1.85rem;
    }

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

    .hero-buttons {
        gap: 0.8rem;
        margin-bottom: 2.5rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .hero-stats {
        gap: 2.5rem;
    }

    .stat-number {
        font-size: 1.85rem;
    }

    /* Sections */
    .section {
        padding: 70px 0;
    }

    .section-container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    /* About */
    .about-grid {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .about-text p {
        font-size: 1.05rem;
    }

    .about-card {
        width: 100%;
        padding: 1.25rem;
        margin-top: 2rem;
    }

    /* Projects */
    .mockup-header {
        font-size: 1.65rem;
        margin-left: 0;
        margin-top: 2rem;
        text-align: center;
        width: 100%;
    }

    .work-tags {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        margin-top: 1.5rem;
    }

    .work-projects {
        width: 100%;
    }

    .image-class {
        height: 210px;
    }

    /* Contact */
    .text-center-links {
        flex-direction: column;
        margin-left: 0;
        gap: 1rem;
        align-items: stretch;
    }

    .text-center-links>a {
        font-size: 1.1rem;
        border: 0.1vw solid black;
        border-radius: 2vw;
        padding-top: 1.4vw;
        text-align: center;

        width: 100%;
    }
}