/* ================================
   GLOBAL
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg: #080808;
    --bg-secondary: #101010;
    --card: #141414;
    --border: #292929;
    --text: #ffffff;
    --muted: #9b9b9b;
    --accent: #ffffff;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    scroll-margin-top: 90px;
}


/* ================================
   HEADER
================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span {
    color: #888;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #aaa;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}


/* ================================
   HERO
================================ */

.hero {
    min-height: 100vh;
    max-width: 1200px;
    margin: auto;

    padding: 150px 25px 80px;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-small {
    color: #777;
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(60px, 9vw, 120px);
    line-height: 0.9;
    letter-spacing: -7px;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #777;
}

.hero h2 {
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 550px;
    color: var(--muted);
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 22px;
    border: 1px solid #333;
    transition: 0.3s;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
}

.primary-btn {
    background: white;
    color: black;
}

.primary-btn:hover {
    background: #ccc;
    transform: translateY(-3px);
}

.secondary-btn {
    color: white;
}

.secondary-btn:hover {
    background: white;
    color: black;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.social-icons a {
    color: #777;
    font-size: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
}


/* ================================
   ENGINEERING GRAPHIC
================================ */

.hero-model {
    display: flex;
    justify-content: center;
    align-items: center;
}

.engineering-circle {
    width: 380px;
    height: 380px;

    border: 1px solid #333;
    border-radius: 50%;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: rotateCircle 20s linear infinite;
}

.engineering-circle::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    border: 1px dashed #444;
    border-radius: 50%;
}

.engineering-circle::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    border: 1px solid #333;
    border-radius: 50%;
}

.center-text {
    position: absolute;
    z-index: 5;

    display: flex;
    flex-direction: column;

    align-items: center;

    animation: reverseRotate 20s linear infinite;
}

.center-text span {
    font-size: 70px;
    font-weight: 800;
}

.center-text small {
    color: #777;
    letter-spacing: 4px;
}

.gear {
    position: absolute;
    font-size: 90px;
    color: #444;
}

.gear-one {
    top: 10px;
    right: 30px;
}

.gear-two {
    bottom: 10px;
    left: 25px;
}

@keyframes rotateCircle {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes reverseRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }

}


/* ================================
   SECTIONS
================================ */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 120px 25px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-heading span {
    color: #555;
    font-size: 13px;
}

.section-heading h2 {
    font-size: 48px;
    letter-spacing: -2px;
}

.section-heading strong {
    color: #666;
}


/* ================================
   ABOUT
================================ */

.about-container {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    height: 480px;
    background: #111;
    border: 1px solid #292929;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder {
    width: 220px;
    height: 220px;

    border: 1px solid #444;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #555;
    font-size: 80px;
}

.about-content h3 {
    font-size: 30px;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 18px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    margin-top: 35px;
}

.about-info div {
    border-top: 1px solid #333;
    padding-top: 15px;
}

.about-info span {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.about-info strong {
    font-size: 14px;
}


/* ================================
   SKILLS
================================ */

.skills-section {
    background: var(--bg-secondary);
    max-width: none;
    padding-left: max(25px, calc((100% - 1150px) / 2));
    padding-right: max(25px, calc((100% - 1150px) / 2));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px;
    border: 1px solid #292929;
    background: #0c0c0c;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #555;
}

.skill-card i {
    font-size: 25px;
    margin-bottom: 25px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: #777;
    font-size: 14px;
    min-height: 70px;
}

.skill-bar {
    width: 100%;
    height: 3px;
    background: #292929;
    margin-top: 20px;
}

.skill-bar span {
    height: 100%;
    display: block;
    background: white;
}


/* ================================
   PROJECTS
================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: #111;
    border: 1px solid #292929;
    transition: 0.3s;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #555;
}

.project-image {
    height: 230px;
    background: #171717;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 70px;
    color: #444;

    border-bottom: 1px solid #292929;
}

.project-content {
    padding: 30px;
}

.project-number {
    font-size: 11px;
    color: #666;
    letter-spacing: 2px;
}

.project-content h3 {
    font-size: 25px;
    margin: 10px 0;
}

.project-content p {
    color: #777;
    font-size: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tags span {
    border: 1px solid #333;
    padding: 6px 10px;
    color: #888;
    font-size: 11px;
}


/* ================================
   EXPERIENCE
================================ */

.experience-section {
    background: var(--bg-secondary);
    max-width: none;
    padding-left: max(25px, calc((100% - 1150px) / 2));
    padding-right: max(25px, calc((100% - 1150px) / 2));
}

.timeline {
    max-width: 800px;
    position: relative;
    margin-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 1px;
    background: #333;
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    padding-bottom: 60px;
}

.timeline-dot {
    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;
    background: white;

    left: -5px;
    top: 5px;
}

.timeline-content span {
    font-size: 12px;
    color: #666;
}

.timeline-content h3 {
    margin-top: 10px;
    font-size: 25px;
}

.timeline-content h4 {
    color: #888;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content p {
    color: #777;
}


/* ================================
   CONTACT
================================ */

.contact-section {
    max-width: none;
    background: #111;
}

.contact-container {
    max-width: 1150px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.contact-label {
    color: #666;
    font-size: 12px;
    letter-spacing: 3px;
}

.contact-text h2 {
    font-size: clamp(45px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -4px;
    margin: 25px 0;
}

.contact-text h2 span {
    color: #666;
}

.contact-text p {
    color: #777;
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    gap: 20px;
    align-items: center;

    padding: 25px;
    border: 1px solid #292929;

    transition: 0.3s;
}

.contact-link:hover {
    border-color: #666;
    transform: translateX(5px);
}

.contact-link > i {
    font-size: 22px;
    color: #aaa;
}

.contact-link small {
    display: block;
    color: #555;
    margin-bottom: 5px;
}

.contact-link strong {
    font-size: 14px;
}


/* ================================
   FOOTER
================================ */

footer {
    background: #050505;
    border-top: 1px solid #222;
    padding: 50px 25px;
    text-align: center;
}

.footer-content h3 {
    font-size: 25px;
}

.footer-content h3 span {
    color: #666;
}

.footer-content p {
    color: #555;
    font-size: 13px;
    margin-top: 8px;
}

.copyright {
    margin-top: 25px !important;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 900px) {

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;

        width: 100%;

        background: #0b0b0b;

        flex-direction: column;
        align-items: center;

        padding: 30px;

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: auto;
    }

    .hero-buttons,
    .social-icons {
        justify-content: center;
    }

    .hero-model {
        margin-top: 30px;
    }

    .engineering-circle {
        width: 280px;
        height: 280px;
    }

    .center-text span {
        font-size: 50px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .navbar {
        height: 70px;
    }

    .nav-links {
        top: 70px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 65px;
        letter-spacing: -4px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .section {
        padding: 80px 20px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 350px;
    }

    .contact-text h2 {
        font-size: 50px;
    }

    .engineering-circle {
        width: 240px;
        height: 240px;
    }

    .engineering-circle::before {
        width: 180px;
        height: 180px;
    }

    .engineering-circle::after {
        width: 120px;
        height: 120px;
    }

}