/* ==================== */
/* Modern CSS Variables - Elegant Dark Theme 2025 */
/* ==================== */
:root {
    /* Primary Colors - Tech & Futuristic Palette */
    --primary-color: #00D9FF;        /* Neon Cyan - Modern & Tech */
    --secondary-color: #F59E0B;      /* Amber Gold - Warm Accent */
    --accent-color: #8B5CF6;         /* Purple - Creative Touch */

    /* Background Colors - Dark Professional */
    --dark-bg: #0A0E27;              /* Deep Navy - Main Background */
    --darker-bg: #050711;            /* Almost Black - Footer/Header */
    --card-bg: #151B35;              /* Slightly Lighter - Cards */
    --card-hover-bg: #1A2140;        /* Card Hover State */

    /* Light Theme (for contrast) */
    --light-bg: #F8FAFC;             /* Clean White Background */

    /* Text Colors - High Contrast */
    --text-dark: #0F172A;            /* For Light Backgrounds */
    --text-light: #94A3B8;           /* Secondary Text on Dark */
    --text-lighter: #CBD5E1;         /* Primary Text on Dark */
    --text-white: #FFFFFF;           /* Pure White for Headers */

    /* Shadows - Elegant Depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-neon: 0 0 20px rgba(0, 217, 255, 0.3);
    --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.3);

    /* Gradients - Modern & Sleek */
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);
    --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #050711 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);

    /* Border Colors */
    --border-color: rgba(0, 217, 255, 0.2);
    --border-hover: rgba(0, 217, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gradient-dark);
    color: var(--text-lighter);
    line-height: 1.6;
    overflow-x: hidden;
}

.wrapper {
    flex: 1;
}

/* ==================== */
/* Header & Navigation */
/* ==================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(5, 7, 17, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-text {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav ul li a:hover::after {
    width: 80%;
}

.main-nav ul li a:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero-section {
    background: var(--dark-bg);
    position: relative;
    color: var(--text-white);
    text-align: center;
    padding: 180px 50px 120px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0.3;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section .greeting {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out;
    text-shadow: var(--shadow-gold);
}

.hero-section h1 {
    font-size: 64px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-section .tagline {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-lighter);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease-out 0.8s backwards;
}

.hero-button, .hero-button-secondary {
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.hero-button {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-neon);
    border: 1px solid var(--primary-color);
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.6);
    border-color: var(--text-white);
}

.hero-button-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border-color);
}

.hero-button-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-neon);
}

/* ==================== */
/* Container & Sections */
/* ==================== */
.container {
    padding: 80px 50px;
    max-width: 1200px;
    margin: auto;
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section .section-subtitle {
    text-align: center;
    color: var(--text-lighter);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== */
/* Skills Section */
/* ==================== */
.skills {
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-hover);
    background: var(--card-hover-bg);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

/* ==================== */
/* Projects Section */
/* ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-hover);
    background: var(--card-hover-bg);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
}

.project-content p {
    margin: 0 0 20px 0;
    color: var(--text-lighter);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(0, 217, 255, 0.15);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 217, 255, 0.25);
    border-color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.project-link:hover {
    color: var(--text-white);
    text-shadow: var(--shadow-neon);
}

.project-link:hover::after {
    width: 100%;
}

/* ==================== */
/* About Section */
/* ==================== */
.about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-lighter);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-hover);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-lighter);
    font-weight: 500;
}

/* ==================== */
/* Contact Section */
/* ==================== */
.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact p {
    font-size: 18px;
    color: var(--text-lighter);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-button {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.contact-button.email {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary-color);
}

.contact-button.email:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.6);
    border-color: var(--text-white);
}

.contact-button.github,
.contact-button.linkedin {
    background: var(--card-bg);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-button.github:hover,
.contact-button.linkedin:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-hover);
    background: var(--card-hover-bg);
}

/* ==================== */
/* Footer */
/* ==================== */
footer {
    background: var(--darker-bg);
    color: var(--text-white);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 1px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

footer p {
    margin: 0;
    color: var(--text-lighter);
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-section {
        padding: 140px 20px 80px;
    }

    .hero-section h1 {
        font-size: 40px;
    }

    .hero-section .tagline {
        font-size: 22px;
    }

    .container {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 32px;
    }

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