/* =========================================================
   1. CSS RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Smooth scrolling when clicking navigation links */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   2. BODY
========================================================= */

body {
    font-family: Arial, Helvetica, sans-serif;

    background-color: #f8fafc;

    color: #1e293b;

    line-height: 1.6;
}


/* =========================================================
   3. BASIC ELEMENTS
========================================================= */

img {
    max-width: 100%;

    display: block;
}


a {
    text-decoration: none;

    color: inherit;
}


ul {
    list-style: none;
}


/* =========================================================
   4. GLOBAL CONTAINER
========================================================= */

.container {
    width: 90%;

    max-width: 1200px;

    margin-left: auto;

    margin-right: auto;
}


/* =========================================================
   5. NAVIGATION
========================================================= */

.header {
    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 75px;

    background-color: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid #e2e8f0;

    z-index: 1000;
}


.navbar {
    width: 90%;

    max-width: 1200px;

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* Logo */

.logo {
    font-size: 25px;

    font-weight: 800;

    color: #2563eb;
}


/* Navigation links */

.nav-links {
    display: flex;

    align-items: center;

    gap: 30px;
}


.nav-links a {
    font-size: 15px;

    font-weight: 600;

    color: #475569;

    transition:
        color 0.3s ease;
}


.nav-links a:hover {
    color: #2563eb;
}


/* =========================================================
   6. HERO SECTION
========================================================= */

.hero {
    min-height: 100vh;

    padding-top: 75px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #ffffff 50%,
            #f8fafc 100%
        );
}


.hero-container {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    align-items: center;

    gap: 70px;
}


/* Hero label */

.hero-label {
    color: #2563eb;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 18px;
}


/* Main heading */

.hero h1 {
    font-size: clamp(45px, 6vw, 75px);

    line-height: 1.05;

    color: #0f172a;

    margin-bottom: 25px;
}


/* Blue name */

.hero h1 span {
    color: #2563eb;
}


/* Description */

.hero-description {
    max-width: 650px;

    color: #64748b;

    font-size: 19px;

    margin-bottom: 30px;
}


/* =========================================================
   7. BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


.btn {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 700;

    transition:
        all 0.3s ease;
}


/* Primary button */

.btn-primary {
    background-color: #2563eb;

    color: white;
}


.btn-primary:hover {
    background-color: #1d4ed8;

    transform: translateY(-3px);
}


/* Secondary button */

.btn-secondary {
    background-color: white;

    border: 1px solid #cbd5e1;

    color: #334155;
}


.btn-secondary:hover {
    border-color: #2563eb;

    color: #2563eb;

    transform: translateY(-3px);
}


/* =========================================================
   8. PROFILE CARD
========================================================= */

.profile-card {
    background-color: white;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    padding: 40px;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);
}


/* Profile image placeholder */

.profile-image {
    width: 160px;

    height: 160px;

    margin:
        0 auto 25px;

    border-radius: 50%;

    background-color: #dbeafe;

    border: 6px solid #eff6ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 50px;

    font-weight: 800;

    color: #2563eb;
}


.profile-card h2 {
    font-size: 25px;

    color: #0f172a;

    margin-bottom: 5px;
}


.profile-card p {
    color: #64748b;

    font-size: 15px;
}


.profile-card .location {
    margin-top: 15px;

    font-size: 14px;

    color: #64748b;
}


/* =========================================================
   9. GENERAL SECTIONS
========================================================= */

.section {
    padding-top: 100px;

    padding-bottom: 100px;
}


/* Section headings */

.section-heading {
    text-align: center;

    margin-bottom: 50px;
}


.section-label {
    color: #2563eb;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 2px;
}


.section-heading h2 {
    margin-top: 8px;

    font-size: 40px;

    color: #0f172a;
}


/* =========================================================
   10. ABOUT
========================================================= */

.about {
    background-color: white;
}


.about-content {
    max-width: 900px;

    margin: auto;

    text-align: center;
}


.about-content p {
    color: #64748b;

    font-size: 17px;

    margin-bottom: 20px;
}


/* =========================================================
   11. STATISTICS
========================================================= */

.stats {
    margin-top: 50px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.stat-card {
    background-color: #f8fafc;

    border: 1px solid #e2e8f0;

    padding: 30px;

    text-align: center;

    border-radius: 12px;
}


.stat-card h3 {
    color: #2563eb;

    font-size: 32px;

    margin-bottom: 5px;
}


.stat-card p {
    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   12. EXPERIENCE
========================================================= */

.experience {
    background-color: #f8fafc;
}


.timeline {
    max-width: 900px;

    margin: auto;

    position: relative;
}


/* Vertical line */

.timeline::before {
    content: "";

    position: absolute;

    left: 20px;

    top: 0;

    bottom: 0;

    width: 2px;

    background-color: #bfdbfe;
}


/* Experience item */

.experience-item {
    position: relative;

    padding-left: 65px;

    margin-bottom: 45px;
}


/* Timeline circle */

.timeline-dot {
    position: absolute;

    left: 11px;

    top: 5px;

    width: 20px;

    height: 20px;

    background-color: #2563eb;

    border-radius: 50%;

    border: 4px solid #dbeafe;
}


/* Experience card */

.experience-card {
    background-color: white;

    border: 1px solid #e2e8f0;

    padding: 30px;

    border-radius: 12px;

    transition:
        all 0.3s ease;
}


.experience-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(15, 23, 42, 0.08);
}


.experience-date {
    color: #2563eb;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;
}


.experience-card h3 {
    color: #0f172a;

    font-size: 22px;

    margin-bottom: 5px;
}


.company {
    color: #64748b;

    font-weight: 600;

    margin-bottom: 15px;
}


.experience-card > p:last-child {
    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   13. SKILLS
========================================================= */

.skills {
    background-color: white;
}


.skill-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.skill-card {
    padding: 30px;

    background-color: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    transition:
        all 0.3s ease;
}


.skill-card:hover {
    transform: translateY(-5px);

    border-color: #bfdbfe;

    box-shadow:
        0 15px 30px
        rgba(37, 99, 235, 0.08);
}


.skill-number {
    display: block;

    font-size: 14px;

    color: #2563eb;

    font-weight: 800;

    margin-bottom: 15px;
}


.skill-card h3 {
    color: #0f172a;

    margin-bottom: 10px;
}


.skill-card p {
    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   14. SOFTWARE
========================================================= */

.software {
    background-color: #f8fafc;
}


.software-list {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;
}


.software-item {
    padding: 12px 22px;

    background-color: white;

    border: 1px solid #e2e8f0;

    border-radius: 50px;

    color: #334155;

    font-size: 14px;

    font-weight: 600;

    transition:
        all 0.3s ease;
}


.software-item:hover {
    color: #2563eb;

    border-color: #2563eb;

    transform: translateY(-2px);
}


/* =========================================================
   15. ACHIEVEMENTS
========================================================= */

.achievements {
    background-color: white;
}


.achievement-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    max-width: 1000px;

    margin: auto;
}


.achievement-card {
    padding: 30px;

    border-left:
        4px solid #2563eb;

    background-color: #f8fafc;

    border-radius: 8px;
}


.achievement-card h3 {
    color: #0f172a;

    margin-bottom: 10px;
}


.achievement-card p {
    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   16. CONTACT
========================================================= */

.contact {
    background-color: #0f172a;

    color: white;

    text-align: center;
}


.contact .section-label {
    color: #60a5fa;
}


.contact h2 {
    color: white;

    font-size: 42px;

    margin-top: 10px;

    margin-bottom: 15px;
}


.contact > .container > p:not(.section-label) {
    color: #94a3b8;

    max-width: 650px;

    margin:
        0 auto 30px;
}


.contact-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* =========================================================
   17. FOOTER
========================================================= */

footer {
    background-color: #020617;

    color: #64748b;

    text-align: center;

    padding: 25px;

    font-size: 14px;
}


/* =========================================================
   18. TABLET RESPONSIVE DESIGN
========================================================= */

@media (max-width: 900px) {

    /*
       Change hero from
       two columns to one column
    */

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .hero-description {
        margin-left: auto;

        margin-right: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .profile-card {
        max-width: 400px;

        width: 100%;

        margin: auto;
    }


    /*
       Change skills from
       3 columns to 2
    */

    .skill-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   19. MOBILE RESPONSIVE DESIGN
========================================================= */

@media (max-width: 700px) {


    /* Navigation */

    .header {
        height: 65px;
    }


    .navbar {
        width: 92%;
    }


    /*
       Hide desktop navigation
       temporarily on mobile
    */

    .nav-links {
        display: none;
    }


    /* Hero */

    .hero {
        padding-top: 100px;

        padding-bottom: 70px;
    }


    .hero h1 {
        font-size: 43px;
    }


    .hero-description {
        font-size: 17px;
    }


    /* Sections */

    .section {
        padding-top: 70px;

        padding-bottom: 70px;
    }


    .section-heading h2 {
        font-size: 32px;
    }


    /* Statistics */

    .stats {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    /* Skills */

    .skill-grid {
        grid-template-columns: 1fr;
    }


    /* Achievements */

    .achievement-grid {
        grid-template-columns: 1fr;
    }


    /* Timeline */

    .experience-item {
        padding-left: 50px;
    }


    .timeline::before {
        left: 15px;
    }


    .timeline-dot {
        left: 6px;
    }


    /* Contact */

    .contact h2 {
        font-size: 34px;
    }

}