/* ==========================================================================
   1. GLOBAL STYLES & BASE SETUP
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", sans-serif;
    color: #E6F1FF;
    overflow-x: hidden;
    background: #050816;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.10) 1px,
        transparent 1px
    );
    background-size: 130px 130px;
}

section {
    padding: 120px 10%;
}

/* ==========================================================================
   2. NAVIGATION HEADER
   ========================================================================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 22, 0.7);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}

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

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #00C2FF;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-content {
    min-width: 0;
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 0.95;
}

.hero-content h2 {
    color: #00C2FF;
    margin: 20px 0;
}

.hero-content p {
    max-width: 550px;
    color: #7A8CA5;
    margin-bottom: 40px;
}

.hero-metadata {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    color: #00C2FF;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* BUTTONS */
.btn,
.btn-secondary {
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, background 0.2s;
}

.btn {
    background: #00C2FF;
    color: black;
}

.btn:hover {
    transform: translateY(-2px);
    background: #009ecf;
}

.btn-secondary {
    border: 1px solid #00C2FF;
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(0, 194, 255, 0.1);
}

/* CODE CARD */
.code-card {
    min-width: 0;
    padding: 50px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 60px rgba(0, 194, 255, 0.08);
}

.code-card pre {
    max-width: 100%;
    line-height: 2;
    color: #bfd9ff;
    overflow: hidden;
}

/* BACKGROUND GLOWS */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
}

.glow1 {
    width: 450px;
    height: 450px;
    left: -100px;
    top: 200px;
    background: #00C2FF;
    opacity: 0.10;
}

.glow2 {
    width: 450px;
    height: 450px;
    right: 100px;
    bottom: 0;
    background: #7C3AED;
    opacity: 0.08;
}

/* ==========================================================================
   4. ABOUT SECTION
   ========================================================================== */
#about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 320px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid rgba(0, 194, 255, 0.2);
}

.skills {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.skills span {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 194, 255, 0.2);
}

/* ==========================================================================
   5. PROJECTS SECTION
   ========================================================================== */
.project-grid {
    margin-top: 50px;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    min-width: 0;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
}

/* ==========================================================================
   6. EXPERIENCE, CONTACT, AND FOOTER
   ========================================================================== */
.experience-list {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.experience-item {
    padding: 25px;
    border-left: 3px solid #00C2FF;
    background: rgba(255, 255, 255, 0.03);
}

.contact-links {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.contact-links a {
    color: #00C2FF;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 40px;
}

/* ==========================================================================
   7. LAPTOPS
   ========================================================================== */
@media (max-width: 1500px) {
    section {
        padding: 100px 6%;
    }

    nav {
        padding: 18px 6%;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
        gap: 40px;
        max-width: 1250px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: clamp(4rem, 6vw, 5.25rem);
    }

    .code-card {
        width: 100%;
        padding: 32px;
    }

    .code-card pre {
        font-size: 0.85rem;
        line-height: 1.8;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #about {
        grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.5fr);
        gap: 50px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-image img {
        width: 100%;
        max-width: 300px;
    }

    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================================================
   8. SMALL LAPTOPS AND TABLETS
   ========================================================================== */
@media (max-width: 1150px) {
    header {
        position: relative;
    }

    nav {
        flex-direction: column;
        gap: 18px;
        padding: 18px 5%;
    }

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

    section {
        padding: 80px 6%;
    }

    #hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-layout,
    #about {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 45px;
        max-width: 850px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: clamp(3.5rem, 8vw, 4.5rem);
    }

    .hero-content p {
        margin-bottom: 28px;
    }

    .hero-metadata {
        flex-wrap: wrap;
    }

    .code-card {
        width: 100%;
        max-width: 700px;
        padding: 30px;
    }

    .code-card pre {
        font-size: 0.85rem;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    #about {
        max-width: 850px;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   9. SMARTPHONES
   ========================================================================== */
@media (max-width: 600px) {
    header {
        position: relative;
        background: #050816;
    }

    nav {
        padding: 20px;
    }

    .logo-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        font-size: 0.78rem;
        letter-spacing: 0.5px;
    }

    section {
        padding: 60px 20px;
    }

    #hero {
        padding-top: 40px;
    }

    .hero-layout {
        gap: 35px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 16vw, 3.6rem);
        line-height: 1;
    }

    .hero-content h2 {
        font-size: 1.35rem;
    }

    .hero-metadata {
        gap: 10px;
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .code-card {
        width: 100%;
        max-width: 100%;
        padding: 20px 12px;
        border-radius: 15px;
    }

    .code-card pre {
        font-size: 0.7rem;
        line-height: 1.65;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .about-image img {
        width: 100%;
        max-width: 280px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .project-card {
        width: 100%;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}