/* ===== VARIABLES & RESET ===== */
:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-blue: #0066ff;
    --accent-light: #00d4ff;
    --text-light: #e0e0ff;
    --text-muted: #a0a0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 102, 255, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    gap: 4rem;
    animation: fadeInUp 1s ease;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tagline {
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-light);
    border: 2px solid var(--accent-light);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    animation: slideInRight 1s ease;
}

.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.profile-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    animation: glowPulse 3s ease-in-out infinite;
    border: 3px solid var(--accent-blue);
    filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.3));
}

.floating-badge {
    position: absolute;
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    animation: floatAnimation 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.badge-1 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    left: -20px;
    animation-delay: 0s;
}

.badge-2 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: -30px;
    animation-delay: 0.5s;
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-light);
}

/* ===== ABOUT SECTION ===== */
.about {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.about-card:nth-child(1) { animation-delay: 0.2s; }
.about-card:nth-child(2) { animation-delay: 0.4s; }
.about-card:nth-child(3) { animation-delay: 0.6s; }

.about-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.about-card h3 {
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== SKILLS SECTION ===== */
.skills {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }

.skill-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.skill-item h3 {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }

.project-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.1));
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 1px solid rgba(0, 102, 255, 0.2);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-light);
    transform: translateY(-5px);
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 3rem 1rem;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .about h2, .skills h2, .projects h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 2rem 1rem;
    }
}