:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #333333;
    --border: #222222;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(#333 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    min-height: 100vh;
    /* Full height sections */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-mobile {
    display: none;
}

.links {
    display: flex;
    gap: 1rem;
}

.links a {
    margin-left: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ccc;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.links a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.links a.active {
    color: #000;
    background-color: #fff;
    font-weight: 600;
}

/* Hero */
#hero {
    padding-top: 90px;
    justify-content: center;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 350px;
    height: 350px;
    filter: grayscale(100%);
    border-radius: 50%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.hero-image img:hover {
    filter: grayscale(0%);
}

.greeting {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    max-width: 700px;
    margin-bottom: 4rem;
    line-height: 1.5;
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.1);
}

/* About */
.large-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-family: var(--font-display);
}

/* Experience */
.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
}

.experience-list {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}

.experience-item {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    transition: background-color 0.3s ease;
    margin-left: 2rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -4.5rem;
    /* Adjust based on padding/margin */
    top: 3rem;
    width: 10px;
    height: 10px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.experience-item:hover::before {
    border-color: var(--text-primary);
    background-color: var(--text-primary);
}

.experience-item:hover {
    background-color: #0a0a0a;
}

.exp-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.experience-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
    line-height: 1.1;
}

.company {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Highlight current role */
.experience-item:first-child h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.experience-item:first-child::before {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.year {
    font-family: monospace;
    color: var(--text-secondary);
}

.exp-details {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: var(--text-secondary);
}

.exp-details li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.exp-details li::marker {
    color: var(--text-primary);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.project-number {
    font-family: monospace;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.project-link {
    margin-top: auto;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    width: max-content;
}

.project-link:hover {
    border-bottom-color: #fff;
}

/* Skills */
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-list li {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-display);
    color: var(--text-secondary);
    transition: color 0.3s ease;
    cursor: default;
}

.skills-list li:hover {
    color: var(--text-primary);
}

.skills-list li::after {
    content: "/";
    margin-left: 1rem;
    color: var(--border);
}

.skills-list li:last-child::after {
    display: none;
}

/* Contact */
#contact .container {
    max-width: 1600px;
}

.contact-form {
    max-width: 100%;
}

@media (min-width: 1024px) {
    .contact-form {
        min-width: 60vw;
    }

    #contact .container {
        max-width: 100%;
        padding: 0 4rem;
        /* More padding on sides for very wide screens */
    }
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

input,
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* Hide scroll to top button on desktop - only show on mobile */
@media (min-width: 769px) {
    .scroll-to-top {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: inline;
    }

    h1 {
        font-size: 2rem;
    }

    .links {
        display: none;
        /* Simple hide for now, or hamburger if needed */
    }

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

    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    #hero {
        padding-top: 12rem;
        justify-content: flex-start;
    }

    #hero .container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
}