/* ===============================================
   MODERN PORTFOLIO CSS - GLASSMORPHISM THEME
   =============================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #1a1a24 50%, #13131a 100%);

    /* Accent Colors */
    --color-cyan: #00f2fe;
    --color-purple: #764ba2;
    --color-pink: #f5576c;
    --color-blue: #667eea;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #8484a0;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 5%;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


/* Light Theme Variables */
[data-theme="light"] {
    /* Colors */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;

    /* Gradients */
    --gradient-bg: linear-gradient(180deg, #f5f7fa 0%, #ffffff 50%, #e9ecef 100%);
    --gradient-primary: linear-gradient(135deg, #5a4fcf 0%, #6b3fa0 100%);
    --gradient-secondary: linear-gradient(135deg, #e87ac2 0%, #e03e52 100%);
    --gradient-accent: linear-gradient(135deg, #3d9dd9 0%, #00c4cc 100%);

    /* Accent Colors (Darker for light mode) */
    --color-cyan: #0099cc;
    --color-purple: #6b3fa0;
    --color-pink: #e03e52;
    --color-blue: #5a4fcf;

    /* Text Colors */
    --text-primary: #1a1a24;
    --text-secondary: #4a4a5e;
    --text-muted: #6a6a7e;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
}

/* Light Mode Specific Overrides */
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #5a4fcf 0%, #6b3fa0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-description {
    color: #4a4a5e;
}

[data-theme="light"] .section-subtitle {
    color: #6a6a7e;
}

[data-theme="light"] #particle-canvas {
    opacity: 0.3;
}

[data-theme="light"] .skill-percent,
[data-theme="light"] .stat-label {
    color: #4a4a5e;
}

[data-theme="light"] .nav-link {
    color: #1a1a24;
}

[data-theme="light"] .nav-link:hover {
    color: #5a4fcf;
}


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===============================================
   NAVIGATION BAR
   =============================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo-dot {
    color: var(--color-pink);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}


/* Hide hamburger on desktop */
.hamburger {
    display: none;
}


/* ===============================================
   HERO SECTION
   =============================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 60px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cursor {
    color: var(--color-cyan);
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--color-cyan);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* Download CV Button - Animated */
.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    animation: none;
}

.btn-download .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;
}

.btn-download:hover .btn-glow {
    left: 100%;
}

.btn-download i {
    animation: bounce-download 1s ease-in-out infinite;
}

.btn-download:hover i {
    animation: bounce-download 0.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
}

@keyframes bounce-download {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1.5s both;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}


.wheel {
    width: 6px;
    height: 12px;
    background: var(--color-cyan);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.scroll-indicator p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ===============================================
   SECTION COMMON STYLES
   =============================================== */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--color-cyan);
    font-size: 1.2rem;
    width: 30px;
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-icon {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===============================================
   SKILLS SECTION
   =============================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.skill-percent {
    color: var(--color-cyan);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   EXPERIENCE/TIMELINE SECTION
   =============================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-accent);
}

.timeline-item {
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.timeline-icon {
    position: absolute;
    top: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -65px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -65px;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--color-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===============================================
   PROJECTS SECTION
   =============================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    color: var(--color-cyan);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.project-link:hover {
    gap: 0.8rem;
}

/* ===============================================
   EDUCATION SECTION
   =============================================== */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.column-title i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.education-card,
.achievement-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.degree-icon,
.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.education-card h4,
.achievement-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.institution,
.achievement-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.status {
    color: var(--color-cyan);
    font-weight: 600;
}

/* ===============================================
   CONTACT SECTION
   =============================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem;
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-card a:hover {
    color: var(--color-pink);
}

.contact-card p {
    color: var(--text-secondary);
}

.contact-social {
    text-align: center;
    padding-top: 1rem;
}

.contact-social h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.social-icons-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon-large:hover {
    background: var(--gradient-accent);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
}

/* Contact Form */
.contact-form-container {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background: rgba(10, 10, 15, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-cyan);
    padding-left: 5px;
}

.reference {
    margin-bottom: 1.5rem;
}

.reference strong {
    color: var(--text-primary);
}

.reference p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.footer-bottom i {
    color: var(--color-pink);
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .image-container {
        max-width: 300px;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .timeline-item .timeline-icon {
        left: -65px !important;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        padding: 2rem 0;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Hero Image */
.hero-image {
    animation: fadeInRight 1s ease-out 0.5s both;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.3);
    transition: var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
    object-fit: cover;
    object-position: center;
    display: block;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1.5s both;
}
/* ===============================================
   THEME TOGGLE BUTTON
   =============================================== */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
    border-color: var(--color-cyan);
}

.toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sun-icon {
    color: #ffa500;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
}

.moon-icon {
    color: #00f2fe;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-accent);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.theme-toggle:active::before {
width: 100px;
    height: 100px;
}


/* Light Mode - Navbar and Footer Fixes */
[data-theme="light"] #navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .nav-logo {
    color: #1a1a24;
}

[data-theme="light"] .nav-link {
    color: #1a1a24;
}

[data-theme="light"] .nav-link:hover {
    color: #5a4fcf;
}

[data-theme="light"] .nav-link.active {
    color: #5a4fcf;
}

[data-theme="light"] .hamburger span {
    background: #1a1a24;
}


/* Hide hamburger on desktop */
.hamburger {
    display: none;
}


[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-content h3 {
    color: #1a1a24;
}

[data-theme="light"] .footer-content p,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-info p,
[data-theme="light"] .footer-bottom p {
    color: #4a4a5e;
}

[data-theme="light"] .footer-links a:hover {
    color: #5a4fcf;
}

[data-theme="light"] .social-icon {
    color: #1a1a24;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .social-icon:hover {
    color: #5a4fcf;
    border-color: #5a4fcf;
    background: rgba(90, 79, 207, 0.1);
}


/* ===============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   =============================================== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 3px;
        transition: var(--transition-smooth);
    }


/* Hide hamburger on desktop */
.hamburger {
    display: none;
}


    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 100px 5% 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .image-container {
        max-width: 250px;
    }
    
    .social-links {
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Skills Section */
    .skills-container {
        grid-template-columns: 1fr;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-item::before {
        left: 0;
    }

    /* Contact Form */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-info {
        text-align: center;
    }

    /* Theme Toggle */
    .theme-toggle {
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .image-container {
        max-width: 200px;
    }
}


/* Light Mode - Improved Text Contrast for Mobile */
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
    color: #1a1a24 !important;
}

[data-theme="light"] .hero-description,
[data-theme="light"] p {
    color: #2a2a3e !important;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #4a3fcf 0%, #5b2fa0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="light"] .section-subtitle {
    color: #3a3a4e !important;
}

[data-theme="light"] .cursor {
    color: #0099cc !important;
}

[data-theme="light"] .btn {
    color: #1a1a24 !important;
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #3d9dd9 0%, #00c4cc 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-download {
    background: linear-gradient(135deg, #5a4fcf 0%, #6b3fa0 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-secondary {
    color: #1a1a24 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}


/* ===============================================
   MOBILE HERO SECTION FIX - Prevent Overlap
   =============================================== */

@media (max-width: 768px) {
    /* Fix hero section height and spacing */
    .hero-section {
        min-height: 100vh !important;
        padding: 100px 5% 80px !important;
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 2;
        margin-bottom: 40px;
    }
    
    .hero-text {
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 30px;
        position: relative;
        z-index: 10;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        position: relative;
        z-index: 10;
        pointer-events: auto !important;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure Download CV button is visible and clickable */
    .btn-download {
        position: relative !important;
        z-index: 15 !important;
        margin-bottom: 20px;
        pointer-events: auto !important;
    }
    
    /* Prevent next section from overlapping */
    section {
        position: relative;
        z-index: 1;
        margin-top: 0;
    }
    
    /* About section shouldn't overlap hero */
    #about {
        margin-top: 0;
        padding-top: 60px;
        position: relative;
        z-index: 1;
    }
    
    /* Social links visibility */
    .social-links {
        position: relative;
        z-index: 10;
        margin-top: 20px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh !important;
        padding: 90px 5% 60px !important;
    }
    
    .hero-buttons {
        gap: 0.8rem;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}


/* ===============================================
   FIX SOCIAL ICONS OVERLAP ON MOBILE
   =============================================== */

@media (max-width: 768px) {
    /* Increase hero section height to prevent overlap */
    .hero-section {
        min-height: 110vh !important;
        padding: 100px 5% 100px !important;
    }
    
    /* Give social links more space and higher z-index */
    .social-links {
        position: relative;
        z-index: 20 !important;
        margin-top: 30px !important;
        padding-bottom: 60px !important;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }
    
    /* Make social icons larger and more tappable */
    .social-icon {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        position: relative;
        z-index: 25;
        pointer-events: auto !important;
        touch-action: manipulation;
    }
    
    /* Push About section down to avoid overlap */
    #about {
        margin-top: 40px !important;
        padding-top: 80px !important;
        position: relative;
        z-index: 1;
    }
    
    /* Make section titles have less aggressive positioning */
    .section-title {
        position: relative;
        z-index: 1;
        margin-top: 0;
    }
    
    /* Ensure Download CV button has space */
    .btn-download {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 115vh !important;
        padding: 90px 5% 90px !important;
    }
    
    .social-links {
        padding-bottom: 70px !important;
        margin-top: 25px !important;
    }
    
    #about {
        padding-top: 90px !important;
        margin-top: 50px !important;
    }
}

