* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --royal-blue: #4169E1;
    --dark-blue: #1E3A8A;
    --gold: #FFD700;
    --dark-gold: #FFA500;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --space-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 25%, #2d1b69 50%, #4169E1 100%);
    --card-shadow: 0 5px 20px rgba(65, 105, 225, 0.15);
    --hover-shadow: 0 10px 30px rgba(65, 105, 225, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

    nav.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 20px rgba(65, 105, 225, 0.1);
        border-bottom: 2px solid var(--gold);
    }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--royal-blue);
}

.logo a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

    .logo a:hover {
        color: var(--royal-blue);
    }

    .logo a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: width 0.3s ease;
    }

    .logo a:hover::after {
        width: 100%;
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 500;
        transition: color 0.3s ease;
        position: relative;
    }

        .nav-links a:hover {
            color: var(--royal-blue);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gold);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

/* Hero Section */
.hero {
    background: var(--space-gradient);
    padding: 8rem 0 6rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, transparent), radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 90px 40px, #ffffff, transparent), radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent), radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
        background-repeat: repeat;
        background-size: 200px 100px;
        animation: twinkle 4s infinite;
    }

    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(1px 1px at 50px 50px, rgba(255, 215, 0, 0.8), transparent), radial-gradient(1px 1px at 150px 120px, rgba(255, 215, 0, 0.6), transparent), radial-gradient(1px 1px at 300px 80px, rgba(255, 215, 0, 0.9), transparent);
        background-repeat: repeat;
        background-size: 400px 200px;
        animation: twinkle 6s infinite reverse;
    }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 1s ease 0.7s forwards;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: slideUp 1s ease 0.9s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    opacity: 0;
    animation: slideUp 1s ease 1s forwards;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp 1s ease 1.2s forwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--royal-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        background: var(--gold);
        color: var(--dark-blue);
    }

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

    .btn-secondary:hover {
        background: white;
        color: var(--royal-blue);
        transform: translateY(-2px);
    }

/* Main Content Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--gold);
        border-radius: 2px;
    }

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--space-gradient);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: var(--card-shadow);
    position: relative;
}

    .profile-image::after {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 50%;
        padding: 5px;
        background: linear-gradient(45deg, var(--royal-blue), var(--gold), var(--royal-blue));
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
        animation: rotate 3s linear infinite;
    }

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--royal-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

    .experience-timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--royal-blue), var(--gold));
        border-radius: 2px;
    }

.experience-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--gold);
    margin-bottom: 3rem;
    position: relative;
    width: 45%;
}

    .experience-item:nth-child(odd) {
        left: 0;
        border-left: 4px solid var(--royal-blue);
    }

    .experience-item:nth-child(even) {
        left: 55%;
        border-left: 4px solid var(--gold);
    }

    .experience-item::before {
        content: '';
        position: absolute;
        top: 2rem;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--royal-blue);
    }

    .experience-item:nth-child(odd)::before {
        right: -42px;
        background: var(--royal-blue);
    }

    .experience-item:nth-child(even)::before {
        left: -42px;
        background: var(--gold);
    }

    .experience-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--hover-shadow);
    }

.experience-header {
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--royal-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
}

    .experience-description ul {
        margin-top: 1rem;
        padding-left: 1.5rem;
    }

    .experience-description li {
        margin-bottom: 0.5rem;
    }

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .skill-category::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--bg-gradient);
    }

    .skill-category:hover {
        transform: translateY(-5px);
        box-shadow: var(--hover-shadow);
    }

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-list {
    list-style: none;
    color: var(--text-secondary);
}

    .skill-list li {
        margin-bottom: 0.5rem;
        padding: 0.5rem 1rem;
        background: var(--bg-secondary);
        border-radius: 25px;
        margin: 0.3rem;
        display: inline-block;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .skill-list li:hover {
            background: var(--royal-blue);
            color: white;
            transform: translateY(-2px);
        }

/* Contact Section */
.contact {
    background: var(--space-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .contact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, 0.6), transparent), radial-gradient(2px 2px at 80px 20px, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1px 1px at 120px 60px, rgba(255, 255, 255, 0.8), transparent);
        background-repeat: repeat;
        background-size: 150px 80px;
        animation: twinkle 5s infinite;
    }

    .contact .section-title {
        color: white;
    }

        .contact .section-title::after {
            background: white;
        }

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

    .contact-item:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.2);
    }

    .contact-item .icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .contact-item a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: opacity 0.3s ease;
    }

        .contact-item a:hover {
            opacity: 0.8;
        }

.social-section {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

    .social-section h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        color: white;
    }

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

    .social-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .social-btn:hover::before {
        left: 100%;
    }

    .social-btn:hover {
        transform: translateY(-5px) scale(1.05);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .social-btn.github:hover {
        background: rgba(51, 51, 51, 0.9);
        border-color: #333;
    }

    .social-btn.twitter:hover {
        background: rgba(29, 161, 242, 0.9);
        border-color: #1DA1F2;
    }

    .social-btn.instagram:hover {
        background: linear-gradient(45deg, #E1306C, #F77737, #FCAF45);
        border-color: #E1306C;
    }

    .social-btn.facebook:hover {
        background: rgba(24, 119, 242, 0.9);
        border-color: #1877F2;
    }

    .social-btn.youtube:hover {
        background: rgba(255, 0, 0, 0.9);
        border-color: #FF0000;
    }

.social-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .experience-timeline::before {
        left: 30px;
    }

    .experience-item,
    .experience-item:nth-child(odd),
    .experience-item:nth-child(even) {
        width: calc(100% - 60px);
        left: 60px;
        border-left: 4px solid var(--royal-blue);
    }

        .experience-item::before,
        .experience-item:nth-child(odd)::before,
        .experience-item:nth-child(even)::before {
            left: -42px;
            background: var(--royal-blue);
        }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .tech-badges {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .social-buttons {
        gap: 1rem;
    }

    .social-btn {
        min-width: 80px;
        padding: 1rem 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .experience-timeline::before {
        display: none;
    }

    .experience-item,
    .experience-item:nth-child(odd),
    .experience-item:nth-child(even) {
        width: 100%;
        left: 0;
    }

        .experience-item::before,
        .experience-item:nth-child(odd)::before,
        .experience-item:nth-child(even)::before {
            display: none;
        }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
