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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #172033;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* =========================
   NAVIGATION
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

.navbar {
    max-width: 1150px;
    margin: auto;
    height: 75px;

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

    padding: 0 25px;
}

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

.logo span {
    color: #6366f1;
}

.nav-links {
    list-style: none;

    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #6366f1;
}


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

.hero {
    min-height: 100vh;
    max-width: 1150px;
    margin: auto;

    padding: 140px 25px 80px;

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

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

.small-title {
    color: #6366f1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -4px;
    margin-bottom: 15px;
}

.hero h1 span {
    color: #6366f1;
}

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

.hero-description {
    color: #64748b;
    max-width: 580px;
    font-size: 17px;
    margin-bottom: 30px;
}

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

.btn {
    display: inline-block;

    padding: 13px 24px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s;
}

.primary {
    background: #6366f1;
    color: white;
}

.primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.secondary {
    border: 1px solid #d1d5db;
    background: white;
}

.secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
}


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

.hero-card {
    width: min(100%, 360px);
    aspect-ratio: 3 / 4;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    margin: 0 auto;
    padding: 0;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

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

.section {
    max-width: 1150px;
    margin: auto;
    padding: 110px 25px;
}

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

.section-title p {
    color: #6366f1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 40px;
    letter-spacing: -1.5px;
    margin-top: 5px;
}


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

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

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

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

.about-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: white;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    padding: 20px;

    display: flex;
    align-items: center;
    gap: 15px;
}

.info-card > span {
    font-size: 25px;
}

.info-card h4 {
    font-size: 14px;
}

.info-card p {
    color: #64748b;
    font-size: 13px;
}


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

.skills-section {
    max-width: none;
    padding-left: max(25px, calc((100% - 1100px) / 2));
    padding-right: max(25px, calc((100% - 1100px) / 2));

    background: #f1f5f9;
}

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

.skill-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 30px;

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.skill-icon {
    font-size: 28px;
    margin-bottom: 18px;
}

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

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


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

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

.project-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;

    overflow: hidden;

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.project-number {
    padding: 25px;

    background: #eef2ff;

    color: #6366f1;
    font-size: 28px;
    font-weight: 800;
}

.project-content {
    padding: 25px;
}

.project-type {
    color: #6366f1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.project-content h3 {
    margin: 8px 0 12px;
}

.project-content > p:not(.project-type) {
    color: #64748b;
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: 20px 0;
}

.tags span {
    background: #f1f5f9;

    padding: 5px 9px;

    border-radius: 5px;

    color: #475569;
    font-size: 11px;
    font-weight: 600;
}

.project-link {
    color: #6366f1;
    font-size: 13px;
    font-weight: 700;
}


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

.education-section {
    background: #f1f5f9;
    max-width: none;

    padding-left: max(25px, calc((100% - 1100px) / 2));
    padding-right: max(25px, calc((100% - 1100px) / 2));
}

.timeline {
    max-width: 800px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";

    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 0;

    width: 2px;

    background: #cbd5e1;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;

    left: -31px;
    top: 5px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #6366f1;

    border: 3px solid #e0e7ff;
}

.timeline-content {
    background: white;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    padding: 25px;
}

.timeline-content > span {
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
}

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

.timeline-content h4 {
    color: #475569;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #64748b;
    font-size: 14px;
}


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

.contact-section {
    background: #111827;
    color: white;

    text-align: center;

    padding: 120px 25px;
}

.contact-content {
    max-width: 700px;
    margin: auto;
}

.contact-section .small-title {
    color: #818cf8;
}

.contact-section h2 {
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1.1;
    letter-spacing: -2px;

    margin-bottom: 25px;
}

.contact-section h2 span {
    color: #818cf8;
}

.contact-section p:not(.small-title) {
    color: #9ca3af;
    margin-bottom: 30px;
}

.social-links {
    margin-top: 40px;

    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: #9ca3af;
    font-size: 14px;

    transition: 0.3s;
}

.social-links a:hover {
    color: white;
}


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

footer {
    background: #0b1120;

    color: #64748b;

    padding: 25px;

    text-align: center;

    font-size: 12px;

    display: flex;
    justify-content: space-between;

    max-width: none;
}


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

@media (max-width: 850px) {

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 130px;
    }

    .hero-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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


@media (max-width: 600px) {

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

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

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

    footer {
        flex-direction: column;
        gap: 8px;
    }
}