/* Custom Properties & Cyber Theme Color Palette */
:root {
    --bg-main: #020617;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-input: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(56, 189, 248, 0.4);
    
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.35);
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --success: #10b981;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    opacity: 0.45;
}

/* Background Glowing Ambient Orbs */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

body::before {
    top: -50px;
    left: -50px;
    background: var(--primary-glow);
}

body::after {
    bottom: 10%;
    right: -50px;
    background: var(--accent-glow);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Visual Effects */
h1, h2, h3 {
    color: #ffffff;
    letter-spacing: -0.02em;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineGradient 6s ease infinite;
}

@keyframes shineGradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.bg-light {
    background: rgba(15, 23, 42, 0.4);
}

/* Mouse Spotlight Effect for Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(56, 189, 248, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Header & Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Language Switcher */
.lang-switch-container {
    display: flex;
    align-items: center;
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    background-color: var(--primary);
    color: #020617;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--primary-glow);
    opacity: 0.95;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* Sections */
.section {
    padding: 90px 0;
    position: relative;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px 0;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-text h2 {
    font-size: 1.6rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 24px;
}

.bio {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.contact-quick p {
    font-size: 0.95rem;
    color: var(--text-main);
    background: rgba(30, 41, 59, 0.5);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-quick p:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.skill-card h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.skill-card li {
    padding: 8px 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.skill-card li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--primary);
}

/* Experience / Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 850px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-color: var(--accent);
    transform: translateX(6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.timeline-date {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 12px;
    border-radius: 9999px;
}

.company {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.timeline-item ul {
    padding-left: 20px;
    color: var(--text-muted);
}

.timeline-item li {
    margin-bottom: 6px;
}

/* Education Card */
.education-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 850px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-3px);
}

.university {
    color: var(--text-muted);
    margin-top: 6px;
}

/* Invite Form */
.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.invite-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.form-success {
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #020617;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .form-wrapper {
        padding: 24px;
    }
}
