/* =========================================================================
   Design System & Variables
   ========================================================================= */
:root {
    /* Color Palette */
    --bg-base: #0a0a0f;
    --bg-surface: #12131b;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Vibrant Accents */
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-tertiary: #b122e5;
    --accent-quaternary: #ff637c;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1100px;
    --section-padding: 100px 20px;
    --border-radius: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* =========================================================================
   Background Elements
   ========================================================================= */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    animation: drift 20s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-tertiary), transparent 70%);
    animation: drift 25s ease-in-out infinite alternate-reverse;
}

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

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    border-color: rgba(0, 242, 254, 0.3);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

/* =========================================================================
   Sections & Layouts
   ========================================================================= */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.section-title span {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--accent-primary);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================================
   About Section
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.profile-img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--border-radius);
    border: 2px solid var(--glass-border);
    transition: var(--transition-smooth);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.profile-img:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* =========================================================================
   Experience / Timeline Section
   ========================================================================= */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--accent-primary),
        var(--accent-secondary) 40%,
        var(--accent-tertiary) 70%,
        transparent 100%
    );
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.8rem 2rem;
}

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

.timeline-marker {
    position: absolute;
    left: -2.65rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-base);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    z-index: 1;
}

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

.timeline-role {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.timeline-date {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    background: rgba(0, 242, 254, 0.08);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-company {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -2.15rem;
        width: 10px;
        height: 10px;
    }

    .timeline-item {
        padding: 1.5rem;
    }

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

/* =========================================================================
   Projects Section
   ========================================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.project-category {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.4rem;
}

.project-links a:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-title:hover {
    color: var(--accent-primary);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-main);
    margin-top: auto;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    padding: 4rem 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.5);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
