:root {
    --bg-color: #0b0f19;
    --text-color: #e2e8f0;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(17, 25, 40, 0.75);
    --glass-border: rgba(255, 255, 255, 0.125);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Animations */
.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 10s infinite linear alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 25px; height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Base Section */
.section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.description {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.8);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(59, 130, 246, 1);
}

.btn.secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 400px;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.image-wrapper:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.glass-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

@keyframes float-slow {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Sections General */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.underline {
    height: 5px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 10px;
}

/* About */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1.2;
    font-size: 1.15rem;
    color: #cbd5e1;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-card p {
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.skill-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}

.skill-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.skill-item p {
    color: #94a3b8;
    line-height: 1.7;
}

/* Contact */
.contact-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6rem 3rem;
    border-radius: 32px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-card p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    border-top: 1px solid var(--card-border);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .title { font-size: 3.5rem; }
    .hero { gap: 2rem; }
}

@media (max-width: 968px) {
    .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .cta-buttons { justify-content: center; }
    .about-content { flex-direction: column; }
    .image-wrapper { width: 300px; height: 350px; margin-top: 3rem; }
    .glass-card .emoji { font-size: 5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0 at top right);
        transition: all 0.5s cubic-bezier(0.86, 0, 0.07, 1);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        clip-path: circle(150% at top right);
    }
    
    .hamburger { display: flex; }
    .title { font-size: 2.8rem; }
    .subtitle { font-size: 1rem; }
    .image-wrapper { width: 100%; max-width: 300px; height: 300px; }
    .stats { grid-template-columns: 1fr; }
    .contact-card { padding: 4rem 2rem; }
    .contact-card h2 { font-size: 2.5rem; }
    .section { padding-top: 5rem; padding-bottom: 2rem; }
}

/* Animations JS classes */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-left { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-right { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.appear { opacity: 1; transform: translate(0); }
