/* ================================
   GLOBAL
================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f8fafc;
    color: #111827;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    scroll-margin-top: 80px;
}


/* ================================
   HEADER
================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(15px);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 18px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: white;
}

.logo span {
    color: #38bdf8;
}

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

.nav-links a {
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.3s;
}

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

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}


/* ================================
   HERO
================================ */

.hero {
    min-height: 100vh;
    padding: 150px 8% 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    color: white;

    background:
        radial-gradient(circle at 80% 20%, #164e63 0%, transparent 35%),
        linear-gradient(135deg, #020617, #0f172a);
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    color: #38bdf8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 90px);
    line-height: 1.05;
    margin: 15px 0;
}

.hero h1 span,
.hero h2 span {
    color: #38bdf8;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hero-description {
    color: #94a3b8;
    max-width: 600px;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

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

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

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

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

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 14px;
}

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


/* ================================
   TERMINAL
================================ */

.hero-card {
    width: 430px;
}

.terminal {
    background: #020617;
    border: 1px solid #334155;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.terminal-header {
    height: 42px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    gap: 7px;

    background: #111827;
}

.terminal-header span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #475569;
}

.terminal-body {
    padding: 25px;
    font-family: monospace;
    font-size: 14px;
}

.terminal-body p {
    margin-bottom: 10px;
}

.green {
    color: #4ade80;
}

.output {
    color: #94a3b8;
    margin-left: 20px;
}


/* ================================
   SECTIONS
================================ */

.section {
    padding: 100px 8%;
}

.dark-section {
    background: #0f172a;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: #0ea5e9;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
}

.section-title h2 {
    font-size: 42px;
    margin-top: 8px;
}

.section-title h2 span {
    color: #0ea5e9;
}


/* ================================
   ABOUT
================================ */

.about-container {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    color: #64748b;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.stat-card h3 {
    color: #0284c7;
    font-size: 24px;
}

.stat-card p {
    color: #64748b;
}


/* ================================
   SKILLS
================================ */

.skills-grid {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    padding: 30px;

    background: #111c31;
    border: 1px solid #263449;
    border-radius: 14px;

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: #38bdf8;
}

.skill-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 8px;
}

.skill-card p {
    color: #94a3b8;
    font-size: 14px;
}


/* ================================
   CERTIFICATIONS
================================ */

.certification-container {
    max-width: 1000px;
    margin: auto;

    display: grid;
    gap: 20px;
}

.certification-card {
    padding: 30px;

    display: flex;
    gap: 25px;
    align-items: center;

    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;

    transition: 0.3s;
}

.certification-card:hover {
    transform: translateX(5px);
    border-color: #38bdf8;
}

.cert-badge {
    min-width: 90px;
    height: 90px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: #0f172a;
    color: #38bdf8;

    font-weight: 800;
}

.cert-badge.small {
    min-width: 70px;
    height: 70px;
}

.certification-card h3 {
    margin-bottom: 7px;
}

.certification-card p {
    color: #64748b;
    font-size: 14px;
}

.cert-status {
    display: inline-block;
    margin-top: 8px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
}


/* ================================
   PROJECTS
================================ */

.projects-grid {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    padding: 30px;

    background: #111c31;
    border: 1px solid #263449;
    border-radius: 15px;

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
}

.project-number {
    color: #38bdf8;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.project-card h3 {
    margin-bottom: 12px;
}

.project-card p {
    color: #94a3b8;
    font-size: 14px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 20px 0;
}

.project-tech span {
    padding: 5px 9px;
    border-radius: 5px;
    background: #1e293b;
    color: #7dd3fc;
    font-size: 11px;
}

.project-link {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
}


/* ================================
   EXPERIENCE
================================ */

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

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e1;
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 45px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;

    width: 20px;
    height: 20px;

    border: 4px solid #f8fafc;
    border-radius: 50%;

    background: #0ea5e9;
}

.timeline-date {
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
}

.timeline-content h3 {
    font-size: 23px;
    margin-top: 5px;
}

.timeline-content h4 {
    color: #64748b;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #64748b;
}


/* ================================
   EDUCATION
================================ */

.education-card {
    max-width: 900px;
    margin: auto;

    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #111c31;
    border: 1px solid #263449;
    border-radius: 14px;
}

.education-card p {
    color: #94a3b8;
}

.education-card span {
    color: #38bdf8;
}


/* ================================
   CONTACT
================================ */

.contact-container {
    max-width: 1000px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-info > p {
    color: #64748b;
}

.contact-details {
    margin-top: 25px;
    color: #475569;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    font-family: inherit;
    outline: none;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0ea5e9;
}


/* ================================
   FOOTER
================================ */

footer {
    padding: 30px 8%;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    background: #020617;
    color: #64748b;

    font-size: 13px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {

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

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-card {
        width: 100%;
        max-width: 500px;
    }

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

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


@media (max-width: 700px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;

        width: 100%;

        padding: 20px;

        flex-direction: column;
        text-align: center;

        background: #0f172a;

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 130px 6% 70px;
    }

    .section {
        padding: 75px 6%;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .skills-grid,
    .projects-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .certification-card {
        align-items: flex-start;
    }

    .education-card,
    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
