:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 8rem;
    --spacing-xl: 12rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Links Hover Effect on Cursor */
a:hover~#cursor-outline,
button:hover~#cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.menu-btn {
    display: none;
    /* Mobile only */
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-item {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    position: relative;
    color: #ccc;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: white;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--spacing-md);
    position: relative;
}

.hero-title {
    font-size: 8vw;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.1s;
}

.reveal-text:nth-child(4) {
    animation-delay: 0.2s;
}

/* br counts as child */

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    opacity: 0;
    animation: fadeIn 1s forwards 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--text-secondary);
}

/* General Section Styles */
.section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid #1a1a1a;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.section-number {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.section-title {
    font-size: 3rem;
    color: white;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.big-text {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    grid-column: 1 / -1;
}

.highlight {
    color: white;
    font-weight: 500;
    border-bottom: 2px solid #333;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
}

.stat-label {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Work Section */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.project-item:first-child {
    border-top: 1px solid #1a1a1a;
}

.project-item:hover {
    opacity: 1;
    padding-left: 1rem;
    background-color: #0a0a0a;
}

.project-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.project-cat {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: block;
}

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

.project-arrow {
    text-align: right;
    font-size: 2rem;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.project-item:hover .project-arrow {
    transform: rotate(0deg) translateX(5px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.skill-cat h3 {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 1rem;
    border-bottom: 1px solid #1a1a1a;
}

.skill-cat ul li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: white;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.cert-item {
    border-top: 1px solid #1a1a1a;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-year {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cert-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cert-provider {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.cert-desc {
    color: #aaa;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Achievements */
.achievement-list li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-sm);
    padding: 2rem 0;
    border-bottom: 1px solid #1a1a1a;
    align-items: start;
}

.ach-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ach-date {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ach-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: white;
}

.ach-desc {
    color: #aaa;
    font-size: 1rem;
    max-width: 700px;
}

/* Contact */
.contact-wrapper {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.contact-pre {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.contact-email {
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    transition: color 0.3s;
}

.contact-email:hover {
    -webkit-text-stroke: 1px white;
    color: transparent;
}

.footer-links {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    position: relative;
}

.footer-links a::before {
    content: '[';
    margin-right: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-links a::after {
    content: ']';
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-links a:hover::before,
.footer-links a:hover::after {
    opacity: 1;
}

.copyright {
    margin-top: var(--spacing-lg);
    color: #333;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

    .project-desc {
        display: none;
        /* Simplify for tablets if needed, or stack */
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 2rem;
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
    }

    .nav-links {
        display: none;
        /* Need a mobile menu script if we want toggle */
    }

    .menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 14vw;
    }

    .big-text {
        font-size: 1.5rem;
    }

    .project-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .project-arrow {
        display: none;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}