:root {
    --bg-color: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #e3f2fd;
    /* Soft blue/white */
    --card-bg: #1a1a1a;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom one */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

body.loading {
    overflow: hidden;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s var(--easing);
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.loader-progress {
    width: 0%;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.5s ease;
}

/* Custom Cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s var(--easing);
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 3rem;
    z-index: 100;
    mix-blend-mode: difference;
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.nav-item {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-item:hover {
    opacity: 1;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: white;
    transition: width 0.3s var(--easing);
}

.nav-item:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

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

.hero-title {
    font-size: 5vw;
    line-height: 1.2;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.reveal-text {
    opacity: 0;
    transform: translateY(50px);
    display: inline-block;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 10%;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

.scroll-indicator .line {
    width: 50px;
    height: 1px;
    background: white;
}

/* Work Section */
.work-section {
    padding: 10rem 10%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.section-header h2 {
    font-size: 4rem;
}

.section-header .count {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.project-card {
    display: block;
    position: relative;
    transition: transform 0.5s var(--easing);
}

.project-card:nth-child(even) {
    margin-top: 6rem;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
    background: var(--card-bg);
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--easing);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-overlay span {
    border: 1px solid white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.project-card:hover .project-thumb {
    transform: scale(1.05);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.project-card:hover .card-overlay span {
    transform: translateY(0);
}

.card-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* About Section */
.about-section {
    padding: 10rem 10%;
    background: #111;
}

.about-content {
    max-width: 1200px;
}

.about-content>h2 {
    font-size: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.resume-section {
    margin-bottom: 4rem;
}

.resume-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.resume-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resume-item:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 2rem;
}

.item-header strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.item-header span:not(.date) {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    flex: 1;
}

.date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-style: italic;
}

.resume-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.resume-item .role {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.resume-item ul {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.resume-item ul li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.8;
}

.resume-item ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Legacy about grid styles for compatibility */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text .lead {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    max-width: 600px;
}

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

.stat-item {
    padding: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 10rem 10% 5rem;
    text-align: center;
}

.contact-section h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.email-link {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    transition: border-color 0.3s;
}

.email-link:hover {
    border-color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 6rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Keyframes */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .project-card:nth-child(even) {
        margin-top: 0;
    }

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

    .about-content>h2 {
        font-size: 2.5rem;
    }

    .resume-section h3 {
        font-size: 1.3rem;
    }

    .item-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .item-header strong,
    .item-header span:not(.date) {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}