/* ==================== style.css ==================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-tertiary: #7a7a8c;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-accent: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-neon: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    
    --glow-primary: 0 0 20px rgba(102, 126, 234, 0.5);
    --glow-secondary: 0 0 30px rgba(79, 172, 254, 0.6);
    --glow-accent: 0 0 40px rgba(240, 147, 251, 0.4);
    
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hard: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --backdrop-blur: blur(20px);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-tertiary: #7a7a8c;
    
    --border-glass: 1px solid rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 16px 48px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    opacity: 0.15;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--gradient-neon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: var(--border-glass);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.logo-gradient {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: var(--border-glass);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

.toggle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

[data-theme="light"] .toggle-icon {
    background: var(--gradient-accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: var(--glow-accent);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.cta-button {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: var(--transition-smooth);
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.6) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-secondary);
}

.cta-button:hover .button-glow {
    opacity: 1;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.3) 0%, transparent 70%);
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -30px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(20px, 30px); }
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.5rem auto;
    border-radius: 2px;
    box-shadow: var(--glow-primary);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.glow-text {
    color: var(--text-primary);
    text-shadow: var(--glow-primary);
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: var(--border-glass);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--glow-secondary);
    border-color: rgba(102, 126, 234, 0.3);
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(var(--glow-primary));
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tag:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

.contact {
    background: var(--bg-secondary);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: var(--border-glass);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
    border-color: rgba(102, 126, 234, 0.5);
}

.contact-icon {
    font-size: 3rem;
    filter: drop-shadow(var(--glow-primary));
}

.contact-label {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border-top: var(--border-glass);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        backdrop-filter: var(--backdrop-blur);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        border-bottom: var(--border-glass);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}