/* CSS Variables */
:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-navy: #233554;
    --lightest-navy: #303C55;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --green-tint: rgba(100, 255, 218, 0.1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-navy);
    color: var(--slate);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: bold;
    color: var(--green);
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 150px;
    height: 3px;
    background-color: var(--navy);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--green);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 50px;
}

.nav-logo a {
    color: var(--green);
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a:hover {
    color: var(--green);
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--green);
}

.nav-number {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-right: 5px;
}

.resume-button {
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 10px 20px;
    margin-left: 15px;
}

.resume-button:hover {
    background-color: var(--green-tint);
}

.hamburger {
    display: grid;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--green);
    margin: 3px 0;
    transition: var(--transition);
}

/* Side Elements */
.side-elements {
    position: fixed;
    bottom: 0;
    left: 40px;
    right: auto;
    z-index: 10;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: var(--light-slate);
    margin-top: 20px;
}

.social-links a {
    color: var(--light-slate);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-intro {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-name {
    color: var(--lightest-slate);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--slate);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 30px;
}

.hero-description {
    max-width: 540px;
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.hero-cta {
    display: inline-block;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: var(--transition);
}

.hero-cta:hover {
    background-color: var(--green-tint);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 100px 0;
}

.section-title {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
    color: var(--lightest-slate);
    font-size: clamp(26px, 5vw, 32px);
    white-space: nowrap;
}

.section-title::after {
    content: '';
    display: block;
    position: relative;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--lightest-navy);
}

.section-number {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 400;
    margin-right: 10px;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    padding: 0;
    margin-top: 20px;
    list-style: none;
}

.skills-list li {
    position: relative;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--green);
}

.about-image {
    position: relative;
    max-width: 300px;
}

.image-wrapper {
    position: relative;
    border-radius: 4px;
    background-color: var(--green);
    transition: var(--transition);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--green);
    border-radius: 4px;
    top: 20px;
    left: 20px;
    z-index: -1;
    transition: var(--transition);
}

.image-wrapper:hover::after {
    top: 15px;
    left: 15px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 4px;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1);
    transition: var(--transition);
}

.image-wrapper:hover img {
    filter: none;
    mix-blend-mode: normal;
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    gap: 100px;
}

.project-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.project-content {
    position: relative;
    grid-column: 1 / 7;
    z-index: 2;
}

.project-card:nth-child(even) .project-content {
    grid-column: 7 / -1;
    text-align: right;
}

.project-overline {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
}

.project-title {
    color: var(--lightest-slate);
    font-size: clamp(24px, 5vw, 28px);
    margin: 10px 0 20px;
}

.project-description {
    background-color: var(--light-navy);
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-description p {
    color: var(--light-slate);
    font-size: 1.05rem;
    line-height: 1.5;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0 10px;
    list-style: none;
}

.project-card:nth-child(even) .project-tech-list {
    justify-content: flex-end;
}

.project-tech-list li {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.project-card:nth-child(even) .project-links {
    justify-content: flex-end;
}

.project-links a {
    color: var(--light-slate);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h3 {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.contact-button {
    display: inline-block;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: var(--transition);
}

.contact-button:hover {
    background-color: var(--green-tint);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 50px 0;
    text-align: center;
}

.footer-social {
    display: none;
}

.footer-text {
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1080px) {
    .container {
        padding: 0 40px;
    }
    
    .side-elements {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    .nav-container {
        padding: 0 25px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: var(--light-navy);
        padding: 50px 10px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .side-elements {
        display: none;
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin: 50px auto 0;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-content,
    .project-card:nth-child(even) .project-content {
        grid-column: 1 / -1;
        text-align: left;
    }
    
    .project-tech-list,
    .project-card:nth-child(even) .project-tech-list,
    .project-links,
    .project-card:nth-child(even) .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-name,
    .hero-subtitle {
        font-size: clamp(30px, 10vw, 50px);
    }
    
    .section-title {
        font-size: clamp(20px, 5vw, 26px);
    }
    
    .section-title::after {
        width: 100px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Utility Classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}
