/* =========================================
   DESIGN SYSTEM
   ========================================= */

:root {
    /* Color Palette */
    --color-bg: #030014;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.1);

    --color-primary: #7928ca;
    --color-secondary: #ff0080;
    --color-tertiary: #00d2ff;

    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --glass-blur: blur(12px);
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   BACKGROUND EFFECTS (Neon Orbs)
   ========================================= */
.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s linear;
    mix-blend-mode: screen;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-normal);
    backdrop-filter: var(--glass-blur);
    background: rgba(3, 0, 20, 0.5);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--color-text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-text-main);
}

/* Buttons */
.btn-primary-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-surface);
    color: var(--color-text-main) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Glass Card */
.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--spacing-md);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--color-surface-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-xl);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--color-tertiary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
    font-weight: 500;
}

.name {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: var(--spacing-xs);
    line-height: 1.1;
    letter-spacing: -2px;
}

.title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    min-height: 3rem;
    /* Prevents jumping during typing */
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--color-secondary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(121, 40, 202, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: transparent;
    color: var(--color-text-main) !important;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: var(--spacing-xl);
        gap: var(--spacing-md);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        margin-bottom: var(--spacing-md);
        transform: scale(0.8);
    }
}

.abstract-shape {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: floatShape 10s ease-in-out infinite alternate;
}

.shape-inner {
    width: 100%;
    height: 100%;
    border-radius: 30%;
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.4), rgba(0, 210, 255, 0.4));
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotateX(10deg) rotateY(-10deg);
    }

    100% {
        transform: translateY(-30px) rotateX(-10deg) rotateY(10deg);
    }
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50%;
        box-shadow: 0 0 80px rgba(255, 0, 128, 0.3);
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* =========================================
   TYPOGRAPHY HEADINGS
   ========================================= */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-border), transparent);
    margin-left: var(--spacing-sm);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.about-text strong {
    color: var(--color-tertiary);
}

.about-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.stat-item {
    margin: var(--spacing-xs) 0;
}

.stat-num {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll reveal classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   EXPERIENCE SECTION (Timeline)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid var(--color-border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 1px - 8px);
    /* Container padding + border width + half dot size */
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-tertiary);
    box-shadow: 0 0 10px var(--color-tertiary);
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--color-secondary);
    box-shadow: 0 0 20px var(--color-secondary);
    transform: scale(1.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--color-tertiary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    letter-spacing: 1px;
}

.timeline-role {
    font-size: 1.5rem;
    color: var(--color-text-main);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.timeline-details {
    list-style-type: none;
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-muted);
}

.timeline-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-category {
    margin-bottom: var(--spacing-md);
}

.category-name {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    color: var(--color-text-muted);
    font-family: monospace;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.skill-tag:hover {
    color: #fff;
    border-color: var(--color-tertiary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.skill-tag:hover::before {
    left: 100%;
}

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.contact-card p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer {
    text-align: center;
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-xl);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}