/* ===== CSS Variables ===== */
:root {
    --bg-dark: #0D0F16;
    --bg-darker: #090B10;
    --bg-card: #151820;
    --bg-card-hover: #1A1D28;
    
    --cyan: #00F5FF;
    --purple: #B175FF;
    --pink: #FF3D9A;
    --blue: #4D9FFF;
    
    --text-primary: #E4E6EB;
    --text-secondary: #B0B3B8;
    --text-muted: #8A8D91;
    
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    border-radius: 2px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 15, 22, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo-text {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition);
}

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

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

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.neon-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(177, 117, 255, 0.6));
    }
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.btn-neon {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.btn-neon:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== Hero Decoration ===== */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.glow-cyan {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    top: 10%;
    right: 10%;
}

.glow-purple {
    width: 350px;
    height: 350px;
    background: var(--purple);
    bottom: 20%;
    left: 5%;
    animation-delay: -7s;
}

.glow-pink {
    width: 300px;
    height: 300px;
    background: var(--pink);
    top: 50%;
    right: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-darker);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-category:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.1);
    transform: translateY(-5px);
}

.skill-category-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--cyan);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(0, 245, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

/* ===== Projects Section ===== */
.projects-section {
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(177, 117, 255, 0.3);
    box-shadow: 0 10px 40px rgba(177, 117, 255, 0.2);
    transform: translateY(-8px);
}

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

.project-card.featured {
    border-color: rgba(0, 245, 255, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.featured-badge {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    background: rgba(177, 117, 255, 0.1);
    color: var(--purple);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    border: 1px solid rgba(177, 117, 255, 0.2);
}

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

.project-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--cyan);
}

.project-link.demo-link:hover {
    color: var(--pink);
}

.icon {
    width: 18px;
    height: 18px;
}

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

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 16px 32px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-email:hover {
    background: var(--bg-card-hover);
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
    transform: translateY(-3px);
}

.contact-email .icon {
    width: 24px;
    height: 24px;
}

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

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.neon-text {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

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

.footer-links {
    text-align: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--cyan);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13, 15, 22, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 24px;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .glow-orb {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-email {
        font-size: 1.1rem;
        padding: 12px 24px;
    }
}
