/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --cyan: #06b6d4;
    --purple: #a855f7;

    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;

    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #ff00d0 0%, #0a74ff 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.brand-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.nav-cta):hover {
    color: var(--primary);
}

.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-menu a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 102, 241, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f5576c15 100%);
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0062ff, #ffc907);
    bottom: -10%;
    left: -5%;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 40%;
    left: 50%;
    animation-delay: 10s;
}

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

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-greeting {
    display: block;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-role {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Section Styles */
section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
}

/* About Section */
.about {
    background: var(--bg-white);
}

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

.about-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.highlight-card {
    background: var(--gradient-1);
    color: white;
}

.highlight-card h3,
.highlight-card p {
    color: white;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Skills Section */
.skills {
    background: var(--bg-light);
}

.skills-container {
    display: grid;
    gap: 2.5rem;
}

.skill-category {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 2.5rem;
}

.category-header h3 {
    font-size: 1.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}

.tag-blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.tag-blue:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.tag-purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple);
    border: 2px solid rgba(168, 85, 247, 0.2);
}

.tag-purple:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.tag-pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--secondary);
    border: 2px solid rgba(236, 72, 153, 0.2);
}

.tag-pink:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

/* Experience Section */
.experience {
    background: var(--bg-white);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1.5rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-badge {
    background: var(--gradient-4);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-highlights {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-highlights span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
}

/* Projects Section */
.projects {
    background: var(--bg-light);
}

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

.project-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-card.featured {
    grid-column: span 2;
}

.project-gradient {
    height: 12px;
    width: 100%;
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }
.gradient-4 { background: var(--gradient-4); }
.gradient-5 { background: var(--gradient-5); }

.project-content {
    padding: 2rem;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--gradient-5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

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

.project-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-meta span {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    gap: 1rem;
}

/* CV Section */
.cv {
    background: var(--bg-white);
}

.cv-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 3.5rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cv-card:hover {
    box-shadow: var(--shadow-lg);
}

.cv-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cv-card h3 {
    font-size: 1.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cv-card p {
    color: var(--text-light);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.cv-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gradient-1);
    padding: 4rem;
    border-radius: 2rem;
    text-align: center;
    color: white;
}

.contact-card .section-tag,
.contact-card .section-title {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.contact-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact .btn-primary {
    background: white;
    color: var(--primary);
}

.contact .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact .btn-outline {
    border-color: white;
    color: white;
}

.contact .btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-card.featured {
        grid-column: span 1;
    }
}

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

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-role {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .about-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2.5rem;
    }

    .contact-card,
    .cv-card {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

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