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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0b;
    color: #eeeeee;
    line-height: 1.7;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}


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

:root {
    --background: #0b0b0b;
    --dark: #111111;
    --card: #171717;
    --border: #292929;
    --text: #eeeeee;
    --muted: #999999;
    --accent: #ffffff;
    --max-width: 1150px;
}


/* =========================
   COMMON
========================= */

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: auto;
}

.section {
    padding: 120px 0;
    background: var(--background);
}

.dark-section {
    background: #101010;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 70px;
}

.section-heading span {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 48px;
    font-weight: 600;
}


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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 11, 0.92);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
}

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

.logo {
    font-size: 30px;
    font-weight: bold;
}

.logo span {
    color: #888;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

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

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

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


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

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

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

.hero-small {
    color: #888;
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 105px);
    line-height: 0.95;
    font-weight: 600;
}

.hero h1 span {
    display: block;
    color: #777;
    font-size: 0.35em;
    line-height: 1.5;
    margin-top: 25px;
}

.hero-description {
    max-width: 620px;
    color: var(--muted);
    margin: 30px 0;
    font-size: 17px;
}

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

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid #444;
    transition: 0.3s;
    cursor: pointer;
}

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

.primary-btn:hover {
    background: transparent;
    color: white;
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 12px;
    transition: 0.3s;
}

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


/* HERO CARD */

.hero-card {
    display: flex;
    justify-content: center;
}

.hero-card-inner {
    width: 330px;
    height: 430px;
    border: 1px solid #333;
    padding: 15px;
    transform: rotate(3deg);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}


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

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

.about-text h3 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-text h3 span {
    color: #777;
}

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

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

.info-box {
    border: 1px solid var(--border);
    padding: 25px;
}

.info-box span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 8px;
}

.info-box strong {
    font-size: 16px;
}


/* =========================
   TIMELINE
========================= */

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

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

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

.timeline-dot {
    position: absolute;
    left: 0;
    top: 7px;
    width: 13px;
    height: 13px;
    border: 2px solid white;
    background: #101010;
    border-radius: 50%;
}

.timeline-date {
    color: #777;
    font-size: 13px;
}

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

.timeline-content h4 {
    color: #999;
    font-weight: normal;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #888;
    margin-bottom: 10px;
}


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

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.experience-card {
    border: 1px solid var(--border);
    padding: 35px;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 25px;
    transition: 0.3s;
}

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

.experience-number {
    font-size: 14px;
    color: #666;
}

.experience-type {
    font-size: 12px;
    letter-spacing: 2px;
    color: #777;
}

.experience-card h3 {
    font-size: 25px;
    margin: 8px 0;
}

.experience-card h4 {
    color: #999;
    font-weight: normal;
}

.experience-date {
    color: #666;
    font-size: 13px;
    margin: 8px 0 20px;
}

.experience-card p {
    color: #888;
}


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

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

.project-card {
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #555;
}

.project-image {
    height: 230px;
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 24px;
    letter-spacing: 4px;
    color: #444;
}

.project-content {
    padding: 30px;
}

.project-category {
    color: #777;
    font-size: 12px;
    letter-spacing: 2px;
}

.project-content h3 {
    font-size: 27px;
    margin: 10px 0;
}

.project-content p {
    color: #888;
    font-size: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.project-tags span {
    border: 1px solid #333;
    padding: 4px 9px;
    font-size: 11px;
    color: #888;
}


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

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.skill-category {
    border: 1px solid var(--border);
    padding: 35px;
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 25px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-list span {
    padding: 9px 15px;
    border: 1px solid #333;
    color: #aaa;
    font-size: 13px;
}


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

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

.contact-content h3 {
    font-size: 55px;
    line-height: 1;
    margin-bottom: 25px;
}

.contact-content h3 span {
    color: #666;
}

.contact-content > p {
    color: #888;
    max-width: 500px;
}

.contact-details {
    margin-top: 45px;
}

.contact-details div {
    margin-bottom: 25px;
}

.contact-details span {
    display: block;
    color: #666;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.contact-details a {
    color: #ccc;
}

.contact-details a:hover {
    color: white;
}


/* FORM */

.contact-form {
    border: 1px solid var(--border);
    padding: 35px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #151515;
    color: white;
    border: 1px solid #333;
    padding: 14px;
    outline: none;
    resize: vertical;
}

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


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

.footer {
    border-top: 1px solid var(--border);
    padding: 35px 0;
    background: #0b0b0b;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

.back-top {
    color: #888;
    font-size: 13px;
}

.back-top:hover {
    color: white;
}


/* =========================
   ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


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

@media (max-width: 900px) {

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0b0b0b;
        border-bottom: 1px solid #333;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        padding: 25px;
        gap: 20px;
    }

    .nav-menu.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

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

    .hero {
        padding: 130px 0 80px;
    }

    .hero-card {
        justify-content: flex-start;
    }

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

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


@media (max-width: 600px) {

    .section {
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

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

    .hero-card-inner {
        width: 270px;
        height: 350px;
    }

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

    .experience-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-content h3 {
        font-size: 42px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}