* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0f0f23;
    --secondary-bg: #1a1a2e;
    --card-bg: #16213e;
    --purple-primary: #6366f1;
    --purple-secondary: #8b5cf6;
    --purple-light: #a78bfa;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-gold: #fbbf24;
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --glow-purple: 0 0 30px rgba(99, 102, 241, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--purple-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.greeting span {
    color: var(--purple-primary);
    font-weight: 600;
}

.hero-main h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 400px;
}

/* CV Download Button */
.cv-download {
    margin-top: 2rem;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-purple);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.cv-btn:active {
    transform: translateY(-1px);
}

.cv-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cv-btn:hover i {
    transform: translateY(-2px);
    animation: bounce 0.6s ease;
}

.cv-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cv-btn:hover .btn-glow {
    left: 100%;
}

/* CV Button Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-2px);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--gradient-purple);
    opacity: 0.3;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--purple-primary);
    z-index: 2;
    position: relative;
}

.laptop-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--purple-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: var(--glow-purple);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--secondary-bg);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--purple-primary);
}

.company {
    color: var(--purple-primary);
    font-weight: 600;
}

.about-description {
    margin-top: 2rem;
}

.about-description p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Experience Section */
.experience {
    padding: 80px 0;
}

.section-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experience-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-purple);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-purple);
    border-color: var(--purple-primary);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.position {
    color: var(--purple-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.responsibilities {
    list-style: none;
    margin-top: 1rem;
}

.responsibilities li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
}

.responsibilities li::before {
    content: '▸';
    color: var(--purple-primary);
    position: absolute;
    left: 0;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: var(--secondary-bg);
    text-align: center;
}

.skills-intro {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cross-functional {
    color: var(--purple-primary);
    font-weight: 600;
}

.skills-description {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.tech-category h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: var(--glow-purple);
}

.tech-item i {
    font-size: 2rem;
    color: var(--purple-primary);
}

.tech-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.project-item.reverse {
    direction: rtl;
}

.project-item.reverse .project-content {
    direction: ltr;
    text-align: right;
}

.project-label {
    color: var(--purple-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--purple-primary);
    margin: 1.5rem 0;
    line-height: 1.8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-link:hover {
    color: var(--purple-primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

.project-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--secondary-bg);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.contact-item i {
    color: var(--purple-primary);
    font-size: 1.2rem;
    width: 20px;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.social-links a:hover {
    color: var(--purple-primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--purple-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-primary);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 15, 35, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-main h1 {
        font-size: 2.5rem;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-item.reverse {
        direction: ltr;
    }

    .project-item.reverse .project-content {
        text-align: left;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-main h1 {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}