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

:root {
    --bg-dark: #050505;
    --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --text-white: #ffffff;
    --text-gray: #888888;
    --border-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 2rem;
    right: 2rem;
    left: auto;
    background-color: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 0;
    border-bottom: none;
}

.nav-container {
    padding: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(5rem, 18vw, 18rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin: 0;
    text-align: left;
    width: 100%;
}

.hero-title-last {
    display: block;
    text-align: right;
    margin-right: 5vw;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    opacity: 0.8;
    opacity: 0.8;
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
    margin-right: 5vw;
    text-align: right;
    transform: none;
    text-transform: uppercase;
    color: var(--text-white);
}

.resume-button-container {
    position: absolute;
    bottom: 5vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.resume-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.resume-button:hover {
    background-color: var(--text-white);
    color: #000;
    border-color: var(--text-white);
}

/* Section Styles */
section {
    padding: 10rem 5vw;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: clamp(8rem, 25vw, 20rem);
    /* Massive size */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: var(--text-white);
    margin-left: -2vw;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    transform: translateY(-20%);
}

.contact .section-title {
    font-weight: 100;
}

/* Specific Section Title Adjustments */
.about .section-title {
    margin-top: -5rem;
}

/* About Section */
.about {
    min-height: auto;
    padding-top: 15rem;
    /* Extra space before About */
    padding-bottom: 10rem;
}

.about-content {
    max-width: 600px;
    /* Narrow readability */
    margin-left: 0;
    /* Left align */
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-weight: 300;
    text-align: justify;
    /* Request: justified alignment */
}

/* Resume Section */
.resume {
    padding: 10rem 0;
    overflow: hidden;
    position: relative;
    width: 100vw;
    max-width: none;
    /* Override section max-width */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.resume .section-title {
    padding-left: 5vw;
    /* Align with other sections */
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 8rem;
}

.skills-scroll {
    overflow: hidden;
    padding: 1.5rem 0;
    background: var(--text-white);
    color: var(--bg-dark);
    transform: skewY(-2deg);
    /* Optional dynamic effect */
}

.skills-scroll:nth-child(even) {
    transform: skewY(2deg);
}

.skills-track {
    display: flex;
    gap: 4rem;
    animation: scroll 20s linear infinite;
    width: fit-content;
}

.skills-track.reverse {
    animation-direction: reverse;
}

.skill-tag {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Projects Section */
.projects-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

.projects {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
}

.project-name {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-gray);
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    /* Ensure no underline for links */
}

.project-name:hover {
    color: var(--text-white);
}

.project-name::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-white);
    transition: width 0.3s ease;
}

.project-name:hover::before {
    width: 100%;
}

/* Contact Section */
.contact {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 4rem;
}

.contact-content {
    max-width: 1200px;
    width: 100%;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 5rem;
    color: var(--text-gray);
    max-width: 600px;
    text-align: justify;
    /* Request: justified alignment */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.contact-link,
.social-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.contact-link:hover,
.social-link:hover {
    color: #888;
}

/* Responsive Design */
/* Responsive Design */
/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        top: 1rem;
        right: 1rem;
    }

    .nav-links {
        gap: 1rem;
        background: rgba(0, 0, 0, 0.8);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        backdrop-filter: blur(5px);
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 15vw;
        /* Proportional to viewport width */
        line-height: 0.9;
        margin-left: -5px;
    }

    .hero-title-last {
        text-align: right;
        margin-right: 0;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        /* Reset positioning for flow layout */
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: 0.5rem;
        margin-right: 0;
        text-align: right;
    }

    .resume-button {
        padding: 0.8rem 2rem;
        font-size: 0.75rem;
    }

    /* Section Global */
    section {
        padding: 6rem 1.5rem;
    }

    .section-title {
        font-size: clamp(3rem, 12vw, 5rem);
        transform: translateY(0);
        /* Reset transform */
        margin-bottom: 2rem;
        margin-left: -2px;
        white-space: normal;
        /* Allow wrapping if needed or keep nowrap */
    }

    .about {
        padding-top: 2rem;
        /* Reduce gap */
    }

    .about .section-title {
        margin-top: 0;
    }

    .about-text {
        font-size: 1rem;
        text-align: left;
        /* Justify can look bad on small mobile */
    }

    /* Resume */
    .resume {
        padding: 6rem 0;
    }

    .resume .section-title {
        padding-left: 1.5rem;
    }

    .skills-track {
        gap: 2rem;
    }

    .skill-tag {
        font-size: 1rem;
    }

    /* Projects */
    .projects {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .project-name {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-text {
        font-size: 1rem;
        text-align: left;
    }

    .contact-link,
    .social-link {
        font-size: 1.2rem;
        word-break: break-all;
        /* Prevent email overflow */
    }
}