@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --bg-dark: #0a0f1a;
    --bg-card: #0f1524;
    --bg-card-hover: #141c2e;
    --blue-light: #60a5fa;
    --blue-medium: #3b82f6;
    --blue-dark: #2563eb;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-medium), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center {
    display: flex;
    align-items: center;
}

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

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

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

.nav-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--blue-medium);
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-medium);
}

.social-btn i {
    font-size: 1.1rem;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(90deg, var(--blue-light), var(--blue-medium), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.wave {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
    margin-left: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.tech-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
    color: var(--blue-medium);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-medium), var(--blue-dark));
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
}

.hero-image {
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 3s ease-in-out infinite;
    position: relative;
}

.avatar::before,
.avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.avatar::before {
    transform: scale(1.15);
}

.avatar::after {
    transform: scale(1.3);
    border-color: rgba(59, 130, 246, 0.05);
}

.avatar-inner {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-card));
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    animation: float 6s ease-in-out infinite;
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--blue-light), var(--blue-medium), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
#about::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

.about-content {
    background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    transition: all 0.4s ease;
}

.about-content:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Projects Section */
#projects::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    filter: blur(120px);
    pointer-events: none;
}

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

.project-card {
    background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.project-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--blue-medium);
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--blue-medium);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: rgba(59, 130, 246, 0.15);
}

/* Contact Section */
#contact::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 30%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(110px);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.contact-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.75rem;
    color: var(--blue-medium);
}

.contact-card:hover .contact-icon {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-card:hover a {
    color: var(--blue-medium);
}

/* Footer */
footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
    }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .tech-stack {
        justify-content: center;
    }

    .avatar {
        width: 250px;
        height: 250px;
    }

    .avatar-inner {
        width: 180px;
        height: 180px;
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .avatar {
        width: 200px;
        height: 200px;
    }

    .avatar-inner {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
}
