/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
}

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

button,
input,
textarea {
    font-family: inherit;
}


/* =========================
   VARIABLES
========================= */

:root {
    --black: #111111;
    --dark: #1c1c1c;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border: #e5e5e5;
    --white: #ffffff;
}


/* =========================
   CONTAINER
========================= */

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #555555;
}

nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
}

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


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

.hero {
    min-height: 100vh;
    padding-top: 75px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.intro {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 82px);
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #666666;
}

.hero h2 {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 650px;
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--black);
    transition: 0.3s;
}

.primary-btn {
    background: var(--black);
    color: white;
}

.primary-btn:hover {
    background: #333333;
}

.secondary-btn {
    background: white;
    color: black;
}

.secondary-btn:hover {
    background: #f2f2f2;
}


/* =========================
   SOCIAL LINKS
========================= */

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #111;
    padding-bottom: 3px;
}


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

.hero-card {
    border: 1px solid var(--border);
    padding: 45px 30px;
    text-align: center;
    background: #fafafa;
}

.profile-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #111111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: 700;
    margin: 0 auto 25px;
}

.hero-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.hero-card > p {
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.hero-info div {
    display: flex;
    flex-direction: column;
}

.hero-info strong {
    font-size: 20px;
}

.hero-info span {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
}


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

.section {
    padding: 110px 0;
}

.skills-section,
.education-section {
    background: #f7f7f7;
}

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

.section-title p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #777777;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 42px;
    letter-spacing: -2px;
}


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

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

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

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    border-bottom: 1px solid black;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-box {
    border: 1px solid var(--border);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-box span {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
}

.detail-box strong {
    font-size: 17px;
}


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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #999999;
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: #111111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.skill-card p {
    color: var(--gray);
    font-size: 14px;
}


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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    border: 1px solid var(--border);
    padding: 30px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.project-number {
    font-size: 13px;
    color: #888888;
    margin-bottom: 50px;
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
}

.project-tech span {
    background: #f2f2f2;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
}

.project-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
}


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

.timeline {
    max-width: 800px;
    position: relative;
    margin-left: 15px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #cccccc;
}

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

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 13px;
    height: 13px;
    background: #111111;
    border-radius: 50%;
}

.timeline-date {
    font-size: 12px;
    color: #777777;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 22px;
    margin: 8px 0 5px;
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--gray);
    margin-bottom: 10px;
}


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

.contact-section {
    background: #111111;
    color: white;
}

.contact-section .section-title p {
    color: #999999;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-info h3 {
    font-size: 35px;
    margin-bottom: 20px;
}

.contact-info > p {
    color: #aaaaaa;
    margin-bottom: 40px;
    max-width: 450px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item span {
    display: block;
    font-size: 11px;
    color: #888888;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    color: #eeeeee;
    font-size: 14px;
}


/* =========================
   FORM
========================= */

.contact-form {
    background: #181818;
    padding: 35px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
    color: #cccccc;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: #111111;
    border: 1px solid #333333;
    color: white;
    padding: 13px;
    outline: none;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #777777;
}

.contact-form .primary-btn {
    background: white;
    color: black;
    border-color: white;
}

#form-message {
    margin-top: 15px;
    font-size: 13px;
}


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

footer {
    background: #111111;
    border-top: 1px solid #292929;
    color: #888888;
}

.footer-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.footer-container a {
    color: white;
}


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

@media (max-width: 900px) {

    nav {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border);

        display: none;
        flex-direction: column;
        gap: 0;
    }

    nav.show {
        display: flex;
    }

    .nav-link {
        padding: 15px 5%;
        border-bottom: 1px solid var(--border);
    }

    .menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-card {
        max-width: 450px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .project-card {
        min-height: 300px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}


@media (max-width: 600px) {

    .container {
        width: 88%;
    }

    .hero {
        padding-top: 110px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -2px;
    }

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

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 35px;
    }

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

    .about-details {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 20px 0;
        text-align: center;
    }
}