:root {
    /* Colors */
    --color-bg: #050505;
    --color-surface: #0f0f0f;
    --color-surface-hover: #1a1a1a;
    --color-text-main: #ffffff;
    --color-text-muted: #a1a1aa;
    --color-primary: #7b2cbf;
    /* Purple */
    --color-primary-glow: rgba(123, 44, 191, 0.4);
    --color-accent: #00f5d4;
    /* Cyan */
    --color-accent-glow: rgba(0, 245, 212, 0.4);
    --color-border: #27272a;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.1;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.8);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav a:hover,
.nav a.active {
    color: var(--color-text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-primary:hover {
    background: #6a24a5;
    transform: translateY(-2px);
    box-shadow: 0 5px 30px var(--color-primary-glow);
}

.btn-outline {
    border-color: var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-main);
}

.btn-ghost:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Header height */
    overflow: hidden;
}

.hero-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}

.hero-btns {
    display: flex;
    gap: var(--spacing-sm);
}

/* Background Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin-left: 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-dot {
    position: absolute;
    left: -35px;
    /* Adjust based on padding above includes border width logic ish */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 245, 212, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.company {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.job-details {
    list-style: disc;
    padding-left: 1.2rem;
    color: #e5e5e5;
    margin-bottom: var(--spacing-sm);
}

.job-details li {
    margin-bottom: 0.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: transform 0.1s;
    /* Faster for lag free feel */
    opacity: 0.5;
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header .nav {
        display: none;
        /* simple hidden nav for mobile MVP */
    }

    .hero-title {
        font-size: 3rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-dot {
        left: -26px;
    }
}

/* Skills Section */
/* Collaboration Section */
.collaboration {
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

/* Background Glow for attention */
.collaboration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(123, 44, 191, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.collaboration-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--spacing-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Accent top border */
.collaboration-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.collaboration .section-title {
    margin-bottom: var(--spacing-md);
    font-size: 2.8rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.collaboration-text {
    max-width: 900px;
    margin: 0 auto;
}

.collaboration-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.collaboration-text p.lead {
    font-size: 1.4rem;
    color: var(--color-text-main);
    font-weight: 500;
    margin-bottom: 2rem;
}

.collaboration-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .collaboration .section-title {
        font-size: 2rem;
    }

    .collaboration-content {
        padding: var(--spacing-md);
    }

    .collaboration-text p.lead {
        font-size: 1.2rem;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: var(--spacing-md);
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    height: 100%;
    /* Equal height */
}

.skill-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-card h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-card h3 svg {
    color: var(--color-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tags span {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    cursor: default;
}

.skill-tags span:hover {
    border-color: var(--color-primary);
    background: rgba(123, 44, 191, 0.1);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-main);
}

.contact-item .icon {
    font-size: 1.5rem;
}

/* Form */
.contact-form {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--color-primary-glow);
    background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--color-surface);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    margin-top: 0;
    /* Removing extra margin since it's after contact section now */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.network-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: 0;
}

.network-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #a1a1aa;
    /* Explicit color */
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.network-links a svg {
    stroke: currentColor;
    /* Ensure stroke uses the text color */
}

.network-links a:hover {
    color: white;
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.3);
}

.copyright {
    color: #52525b;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
    text-align: right;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }
}