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

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #13131a;
    --card-bg: rgba(20, 20, 30, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-color: #00d4ff;
    --accent-hover: #00e5ff;
    --accent-secondary: #6366f1;
    --accent-purple: #a855f7;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(0, 212, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
}

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

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

/* Section Styles */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
}

section.compact {
    min-height: auto;
    padding: 120px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero .tagline {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 56px;
    font-weight: 300;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.cta-button {
    padding: 18px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.cta-button.primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: var(--accent-color);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(10px) rotate(-45deg);
    }
    60% {
        transform: translateY(5px) rotate(-45deg);
    }
}

/* About Section */
.about {
    background: var(--secondary-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple));
    border-radius: 2px;
}

.about-text {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Expertise Section */
.expertise {
    position: relative;
    background: var(--primary-bg);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.expertise-card {
    background: var(--card-bg);
    padding: 48px 36px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.expertise-card:hover::before {
    opacity: 0.1;
}

.expertise-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.expertise-icon {
    font-size: 4rem;
    margin-bottom: 28px;
    display: block;
    filter: drop-shadow(0 0 10px currentColor);
}

.expertise-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.expertise-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Achievements Section */
.achievements {
    background: var(--secondary-bg);
    position: relative;
}

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

.achievement-card {
    background: var(--card-bg);
    padding: 48px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.achievement-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-purple));
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.achievement-card:hover::after {
    width: 8px;
    box-shadow: 0 0 20px var(--accent-color);
}

.achievement-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.achievement-label {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Experience Section */
.experience {
    background: var(--primary-bg);
}

.experience-timeline {
    max-width: 1000px;
    margin: 80px auto 0;
}

.experience-item {
    background: var(--card-bg);
    padding: 48px;
    margin-bottom: 32px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(20px);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.experience-item:hover::before {
    opacity: 0.3;
}

.experience-item:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

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

.experience-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.experience-company {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 500;
}

.experience-period {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Contact Section */
.contact {
    background: var(--secondary-bg);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 80px auto 0;
}

.contact-card {
    background: var(--card-bg);
    padding: 48px 36px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    opacity: 0;
    transition: var(--transition);
}

.contact-card:hover::before {
    opacity: 0.15;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 10px currentColor);
    position: relative;
    z-index: 1;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.contact-value {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 60px 0;
    opacity: 0.6;
}

.ai-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.ai-image:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--accent-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(60px);
    animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.2s; }
.stagger-2 { animation-delay: 0.4s; }
.stagger-3 { animation-delay: 0.6s; }
.stagger-4 { animation-delay: 0.8s; }

/* Intersection Observer Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Glow Effects */
.glow-text {
    text-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
}

.card-glow {
    position: relative;
}

.card-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    border-radius: inherit;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    filter: blur(20px);
}

.card-glow:hover::after {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    section.compact {
        padding: 80px 0;
    }
    
    .expertise-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .container,
    .wide-container {
        padding: 0 20px;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-padding-top: 20px;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Accent Decorations */
.accent-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 4px;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Grid Background Pattern */
.grid-background {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -1;
}
