/* ==========================================================================
   Modern Portfolio CSS - Complete Redesign
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables - Theme Colors & Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors - Dark Theme */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a25;
    --color-bg-card: #16161f;
    --color-bg-card-hover: #1e1e2a;
    
    /* Accent Colors */
    --color-accent-primary: #6366f1;
    --color-accent-secondary: #8b5cf6;
    --color-accent-tertiary: #ec4899;
    --color-accent-iot: #10b981;
    --color-accent-web: #3b82f6;
    --color-accent-mobile: #f97316;
    
    /* Text Colors */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-text-inverse: #0f172a;
    
    /* Border & Surface */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-surface-glass: rgba(255, 255, 255, 0.03);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-card: linear-gradient(145deg, #16161f 0%, #1a1a25 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* --------------------------------------------------------------------------
   2. Base Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(236, 72, 153, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Section Base */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--spacing-sm) 0;
    background: #1a1a2e;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #333333;
    transition: all var(--transition-base);
}

header.scrolled {
    background: #1a1a2e;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-base);
}

.logo-img {
    width: 140px;
    height: 40px;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover {
    transform: scale(1.02);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.desktop-nav a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.desktop-nav a:hover {
    color: var(--color-text-primary);
}

.desktop-nav a:hover::after {
    width: 60%;
}

.desktop-nav a.active {
    color: var(--color-text-primary);
}

.desktop-nav a.active::after {
    width: 60%;
}

/* Burger Button */
.burger-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    border-radius: var(--radius-md);
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.burger-btn.active {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-lg);
    z-index: 400;
    display: none;
}

#mobile-menu.active {
    display: block !important;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-nav a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

/* --------------------------------------------------------------------------
   4. About Section
   -------------------------------------------------------------------------- */
#about {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero-layout {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2xl);
}

.about-hero-layout .about-img-circle {
    flex-shrink: 0;
}

.about-hero-layout .about-text {
    flex: 1;
}

.about-name-container-mobile {
    display: none;
}

.about-name-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.about-name {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.about-img-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.about-img-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.5;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.about-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-text {
    max-width: 700px;
}

.about-bio {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* About Buttons */
.about-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-width: 150px;
    text-align: center;
}

.contact-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cv-btn {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.cv-btn:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Project Sections (Web, Mobile, IoT)
   -------------------------------------------------------------------------- */
#web-apps,
#mobile-apps,
#iot-projects {
    background: var(--color-bg-secondary);
}

/* Web Apps */
#web-apps .section-header h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Mobile Apps */
#mobile-apps .section-header h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* IoT Apps */
#iot-projects .section-header h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Filter Buttons */
.web-filter,
.mobile-filter,
.iot-filter {
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: visible;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    width: 100%;
    overflow: visible;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #000000;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.filter-btn:hover {
    color: #000000;
    border-color: #e0e0e0;
    background: #f0f0f0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    padding: 0 var(--spacing-2xl);
}

/* Custom Navigation Buttons */
.custom-prev-btn,
.custom-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    z-index: 10;
    transition: all var(--transition-base);
}

.custom-prev-btn {
    left: 0;
}

.custom-next-btn {
    right: 0;
}

.custom-prev-btn:hover,
.custom-next-btn:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
}

/* Swiper Base Styles */
.web-projects-swiper,
.mobile-projects-swiper,
.iot-projects-swiper {
    padding: var(--spacing-md) 0 var(--spacing-2xl);
    overflow: hidden;
}

/* 3D Coverflow Carousel - Exactly 3 cards visible */
.web-projects-swiper .swiper-slide,
.mobile-projects-swiper .swiper-slide,
.iot-projects-swiper .swiper-slide {
    width: 320px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
}

.web-projects-swiper .swiper-slide-visible,
.mobile-projects-swiper .swiper-slide-visible,
.iot-projects-swiper .swiper-slide-visible {
    opacity: 0;
    visibility: hidden;
}

/* Center active card */
.web-projects-swiper .swiper-slide-active,
.mobile-projects-swiper .swiper-slide-active,
.iot-projects-swiper .swiper-slide-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateZ(30px);
    z-index: 10;
}

/* Side cards (prev and next) */
.web-projects-swiper .swiper-slide-prev,
.web-projects-swiper .swiper-slide-next,
.mobile-projects-swiper .swiper-slide-prev,
.mobile-projects-swiper .swiper-slide-next,
.iot-projects-swiper .swiper-slide-prev,
.iot-projects-swiper .swiper-slide-next {
    opacity: 1;
    visibility: visible;
    transform: scale(0.85) translateZ(-20px);
    z-index: 5;
}

/* Project Card */
.project-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-lg);
}

/* Card Image Wrapper */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 180px;
    flex-shrink: 0;
}

.card-category-label {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    text-transform: capitalize;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Card Content */
.card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    flex-shrink: 0;
}

.card-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
}

/* Card Technologies */
.card-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
    justify-content: center;
}

.tech-tag {
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    background: #ffffff;
    color: #000000;
    border-radius: var(--radius-full);
    border: 1px solid #ffffff;
}

/* Card Links */
.card-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.card-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.card-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.card-link-btn.live {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.card-link-btn.live:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
    box-shadow: var(--shadow-glow);
}

.card-link-btn.github {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.card-link-btn.github:hover {
    box-shadow: var(--shadow-glow);
}

.card-link-btn.play {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.card-link-btn.play:hover {
    box-shadow: var(--shadow-glow);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-text-muted);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-accent-primary);
    width: 24px;
    border-radius: var(--radius-full);
}

/* Swiper Navigation Arrows */
.swiper-button-prev,
.swiper-button-next {
    color: var(--color-accent-primary);
    background: var(--color-bg-card);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--color-accent-primary);
    color: white;
    border-color: var(--color-accent-primary);
}

/* --------------------------------------------------------------------------
   6. Skills Section
   -------------------------------------------------------------------------- */
#skills {
    background: var(--color-bg-primary);
}

.skills-card-slider {
    max-width: 1200px;
    margin: 0 auto;
}

#skillsSwiper {
    padding: var(--spacing-md) 0 var(--spacing-2xl);
}

#skillsSwiper .swiper-slide {
    width: 200px !important;
    height: 160px;
    flex-shrink: 0;
}

/* Skills Card */
.card-item {
    height: 100%;
    padding: var(--spacing-xs);
}

.card-wrapper {
    height: 100%;
}

.card-list {
    height: 100%;
    min-height: 140px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all var(--transition-base);
}

.card-list:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Skill Icon */
.skill-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    color: #000000;
}

.skill-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.card-list h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #000000;
}

/* --------------------------------------------------------------------------
   7. CV Section
   -------------------------------------------------------------------------- */
#cv {
    background: var(--color-bg-secondary);
}

.cv-section .container {
    max-width: 1200px;
}

.cv-header-box {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.cv-header-box h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cv-cards-container {
    max-width: 900px;
    margin: 0 auto;
}

.cv-cards {
    display: grid;
    gap: var(--spacing-lg);
}

.cv-cards.two-items {
    grid-template-columns: repeat(2, 1fr);
}

.cv-card {
    background: var(--color-bg-card);
    border: 1px solid #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.cv-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-lg);
}

.cv-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
}

.cv-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.cv-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.cv-buttons-container {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.cv-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    transition: all var(--transition-base);
}

.cv-popup-btn:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    color: #ffffff;
}

.cv-popup-btn.cv-french {
    background: #666666;
    color: #ffffff;
    border-color: #666666;
}

.cv-popup-btn.cv-french:hover {
    background: #555555;
    border-color: #555555;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. Contact Section
   -------------------------------------------------------------------------- */
#contact {
    background: var(--color-bg-primary);
}

#contact h2 {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

/* Form Group */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: var(--spacing-xs);
}

.form-group .error {
    color: #ef4444;
    font-size: var(--font-size-xs);
    margin-left: var(--spacing-xs);
}

/* Form Control */
.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    border: 1px solid #ffffff;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control.error {
    border-color: #ef4444;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Form Status */
.form-status {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Form Button */
.form-btn {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #000000;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
footer {
    background: #1a1a2e;
    border-top: 1px solid #333333;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-lg);
}

.footer-logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    padding: var(--spacing-lg);
    border: 1px solid #ffffff;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo-center .logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.footer-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 1px;
}

.footer-logo .logo {
    font-size: var(--font-size-lg);
}

.footer-social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.footer-social-icon.github {
    color: #ffffff;
    border-color: #ffffff;
}

.footer-social-icon.linkedin {
    color: #0A66C2;
    border-color: #0A66C2;
}

.footer-social-icon.whatsapp {
    color: #25D366;
    border-color: #25D366;
}

.footer-social-icon.email {
    color: #6366f1;
    border-color: #6366f1;
}

.footer-social-icon:hover {
    transform: translateY(-4px);
    border-color: transparent;
}

.footer-social-icon.github:hover {
    background: #24292e;
    color: white;
}

.footer-social-icon.linkedin:hover {
    background: #0077b5;
    color: white;
}

.footer-social-icon.whatsapp:hover {
    background: #25d366;
    color: white;
}

.footer-social-icon.email:hover {
    background: var(--color-accent-primary);
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    border: 1px solid #ffffff;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.footer-column h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--color-accent-primary);
}

.footer-column p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-info-footer li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-info-footer i {
    color: var(--color-accent-primary);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #ffffff;
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Floating Social Icons
   -------------------------------------------------------------------------- */
.floating-social-icons {
    position: fixed;
    right: var(--spacing-lg);
    bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: var(--z-sticky);
}

.floating-social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.floating-social-icon.linkedin {
    background: #0077b5;
    color: #ffffff;
    border: 1px solid #0077b5;
}

.floating-social-icon.whatsapp {
    background: #25d366;
    color: #ffffff;
    border: 1px solid #25d366;
}

.floating-social-icon.email {
    background: #ea4335;
    color: #ffffff;
    border: 1px solid #ea4335;
}

.floating-social-icon:hover {
    transform: translateX(-4px);
}

.floating-social-icon.linkedin:hover {
    background: #0077b5;
    color: white;
}

.floating-social-icon.whatsapp:hover {
    background: #25d366;
    color: white;
}

.floating-social-icon.email:hover {
    background: var(--color-accent-primary);
    color: white;
}

/* --------------------------------------------------------------------------
   11. Animation Hooks - GSAP, AOS, Intersection Observer
   -------------------------------------------------------------------------- */

/* GSAP Ready Classes */
.gsap-animate {
    will-change: transform, opacity;
}

.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.gsap-fade-down {
    opacity: 0;
    transform: translateY(-30px);
}

.gsap-fade-left {
    opacity: 0;
    transform: translateX(-30px);
}

.gsap-fade-right {
    opacity: 0;
    transform: translateX(30px);
}

.gsap-scale-up {
    opacity: 0;
    transform: scale(0.9);
}

.gsap-scale-down {
    opacity: 0;
    transform: scale(1.1);
}

/* AOS Data Attributes Support */
[data-aos="fade-up"],
[data-aos="fade-down"],
[data-aos="fade-left"],
[data-aos="fade-right"],
[data-aos="zoom-in"],
[data-aos="zoom-out"] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-out"] {
    transform: scale(1.1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Intersection Observer Hooks */
.js-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.js-scroll-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll-left.scrolled {
    opacity: 1;
    transform: translateX(0);
}

.js-scroll-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll-right.scrolled {
    opacity: 1;
    transform: translateX(0);
}

.js-scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll-scale.scrolled {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Reveal Classes (existing JS compatibility) */
.reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.from-left {
    transform: translateX(-40px);
}

.reveal.from-right {
    transform: translateX(40px);
}

.reveal.from-bottom {
    transform: translateY(40px);
}

.reveal.zoom {
    transform: scale(0.9);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Profile Image Slide-in Animation */
.about-img-circle {
    animation: slideInFromLeft 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------------------------------------
   12. Responsive Design - Mobile First
   -------------------------------------------------------------------------- */

/* Large Desktop */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .cv-cards.two-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (max-width: 1200px) {
    :root {
        --spacing-3xl: 5rem;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .custom-prev-btn,
    .custom-next-btn {
        display: none;
    }
    
    .carousel-container {
        padding: 0;
    }
    
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        text-align: center;
        width: 100%;
        align-items: center;
    }
    
    .about-name-container {
        order: 1;
        width: 100%;
    }
    
    .about-img-circle {
        order: 2;
        margin: 0 auto;
    }
    
    .about-text {
        order: 3;
        text-align: center;
        width: 100%;
    }
    
    .about-buttons {
        justify-content: center;
    }
    
    .floating-social-icons {
        display: none;
    }
}

/* Tablet Landscape & Small Laptop */
@media (max-width: 1140px) {
    .desktop-nav {
        display: none;
    }
    
    .burger-btn {
        display: flex;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .desktop-nav {
        display: none;
    }
    
    .burger-btn {
        display: flex;
    }
    
    /* Hero/About Section */
    #about {
        min-height: auto;
        padding: 100px 0 var(--spacing-2xl);
    }
    
    /* Hide original name on mobile */
    .about-name-container {
        display: none !important;
    }
    
    /* Show mobile name container above bio on mobile */
    .about-name-container-mobile {
        display: block !important;
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }
    
    .about-name-container-mobile .about-name {
        font-size: var(--font-size-xl);
    }
    
    .about-content {
        gap: var(--spacing-lg);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-hero-layout {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
        width: 100%;
    }
    
    .about-hero-layout .about-img-circle {
        display: block;
        visibility: visible;
        width: 180px;
        height: 180px;
        align-self: flex-start;
    }
    
    .about-hero-layout .about-text {
        display: block;
        visibility: visible;
        width: 100%;
        text-align: left;
    }
    
    .footer-column ul {
        align-items: center;
    }
    
    .about-name {
        font-size: var(--font-size-2xl);
    }
    
    /* Tech swiper full width on tablet */
    .tech-3d-swiper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: calc((100vw - 100%) / 2 + 15px) !important;
        padding-right: calc((100vw - 100%) / 2 + 15px) !important;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .about-img-circle {
        width: 220px;
        height: 220px;
    }
    
    .about-bio {
        font-size: var(--font-size-base);
    }
    
    .cv-cards.two-items {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.25rem;
        --spacing-xl: 2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    /* About Section Mobile - Full width single column */
    #about {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    #about .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 0;
        gap: 15px;
    }
    
    .about-name-container {
        width: 100% !important;
        order: 1;
    }
    
    .about-name {
        font-size: 1.5rem !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .about-name .letter {
        display: inline-block;
    }
    
    .about-name .letter.space {
        display: block;
        width: 100%;
        height: 5px;
    }
    
    /* Profile Image */
    .about-hero-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-hero-layout .about-img-circle {
        margin: 0 auto;
    }
    .about-img-circle {
        width: 180px !important;
        height: 180px !important;
        order: 2;
        margin: 10px auto !important;
    }
    
    .about-img-circle img {
        width: 180px !important;
        height: 180px !important;
    }
    
    /* Bio Text */
    .about-text {
        width: 100% !important;
        order: 3;
    }
    
    .about-bio-container {
        width: 100% !important;
    }
    
    .about-bio {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 5px !important;
    }
    
    .about-bio .word-title,
    .about-bio .bio-word {
        display: inline !important;
    }
    
    .about-bio .word-title.space {
        display: inline !important;
    }
    
    /* Tech Swiper */
    .tech-3d-swiper {
        width: 100% !important;
        order: 4;
        padding: 10px 0;
    }
    
    .tech-3d-track {
        gap: 8px;
    }
    
    .tech-3d-card {
        min-width: 60px;
        height: 60px;
    }
    
    .tech-3d-card i {
        font-size: 1.2rem;
    }
    
    .tech-3d-card span {
        font-size: 0.5rem;
    }
    
    /* Buttons */
    .about-buttons {
        width: 100% !important;
        order: 5;
        flex-direction: row !important;
        gap: var(--spacing-md);
        padding: 10px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .about-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        text-align: center;
    }
    
    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .card-title {
        font-size: var(--font-size-base);
    }
    
    .card-links {
        flex-direction: column;
    }
    
    .card-link-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cv-card {
        padding: var(--spacing-md);
    }
    
    .cv-buttons-container {
        flex-direction: column;
    }
    
    .cv-popup-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
    #about {
        overflow: visible !important;
    }
    
    /* Hide original name on tablet */
    .about-name-container {
        display: none !important;
    }
    
    /* Show mobile name container above bio on tablet */
    .about-name-container-mobile {
        display: block !important;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .about-name-container-mobile .about-name {
        font-size: var(--font-size-2xl);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .about-name-container-mobile .about-name .letter.space {
        flex-basis: 100%;
        height: 5px;
    }
    
    /* Force reveal animation to complete on tablet */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .reveal.from-left {
        transform: none !important;
    }
    
    .reveal.from-right {
        transform: none !important;
    }
    
    /* Force all animated elements visible */
    .about-img-circle,
    .about-bio-container,
    .about-name-container-mobile {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
    
    .about-content {
        padding: var(--spacing-lg) 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .about-name-container {
        display: none !important;
    }
    
    .about-hero-layout {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: var(--spacing-md) !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 var(--spacing-md) !important;
        overflow: visible !important;
    }
    
    .about-hero-layout .about-img-circle {
        width: 160px !important;
        height: 160px !important;
        flex-shrink: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .about-hero-layout .about-img-circle img {
        width: 160px !important;
        height: 160px !important;
        display: block !important;
    }
    
    .about-hero-layout .about-text {
        flex: 1 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: 60% !important;
    }
    
    .about-bio-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .about-name {
        font-size: var(--font-size-xl) !important;
    }
    
    /* Bio Text Tablet */
    .about-bio {
        font-size: var(--font-size-xs) !important;
        padding: 0 var(--spacing-xs) !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .about-bio .word-title,
    .about-bio .bio-word {
        display: inline !important;
    }
    
    /* Tech 3D Swiper Tablet */
    .tech-3d-card {
        min-width: 85px;
        height: 85px;
    }
    
    .tech-3d-card i {
        font-size: 2rem;
    }
    
    .tech-3d-card span {
        font-size: var(--font-size-xs);
    }
    
    /* Buttons Tablet */
    .about-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: var(--spacing-md) !important;
        width: 100% !important;
    }
    
    .about-buttons .btn {
        flex: 1;
        max-width: 200px;
        justify-content: center;
    }
}

/* Mobile Small */
@media (max-width: 320px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    .about-img-circle {
        width: 180px;
        height: 180px;
    }
    
    .about-name {
        font-size: var(--font-size-xl);
    }
}

/* --------------------------------------------------------------------------
   13. Accessibility & Performance
   -------------------------------------------------------------------------- */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: rgba(255, 255, 255, 0.3);
        --color-text-secondary: #cbd5e1;
    }
}

/* Print Styles */
@media print {
    header,
    .floating-social-icons,
    .swiper-button-prev,
    .swiper-button-next,
    .custom-prev-btn,
    .custom-next-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* --------------------------------------------------------------------------
   14. Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Gradient Text Utility */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Effect */
.glass {
    background: var(--color-surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
}

/* Button Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Selection */
::selection {
    background: var(--color-accent-primary);
    color: white;
}

/* Project Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container .web-filter .filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.popup-container .web-filter .filter-btn:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
}

.popup-container .web-filter .filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.popup-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    position: relative;
    background: var(--color-bg-secondary);
    border-radius: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        height: 90vh;
        border-radius: var(--radius-md);
    }
    
    .popup-container .web-filter {
        padding: var(--spacing-sm);
    }
    
    .popup-container .web-filter .filter-buttons {
        gap: var(--spacing-xs);
    }
    
    .popup-container .web-filter .filter-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .popup-image-container {
        height: 250px !important;
    }
    
    .popup-content {
        padding: var(--spacing-sm) !important;
    }
    
    .popup-content h3 {
        font-size: var(--font-size-lg) !important;
    }
    
    .popup-content p {
        font-size: var(--font-size-sm) !important;
    }
    
    .popup-technologies {
        gap: var(--spacing-xs) !important;
    }
    
    .tech-tag {
        font-size: var(--font-size-xs) !important;
        padding: 4px 8px !important;
    }
    
    .popup-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .card-link {
        font-size: var(--font-size-sm) !important;
        padding: var(--spacing-xs) var(--spacing-sm) !important;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .popup-image-container {
        height: 200px !important;
    }
    
    .popup-container .web-filter .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: var(--color-accent-primary);
}

.popup-swiper {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.popup-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-swiper .swiper-button-next,
.popup-swiper .swiper-button-prev {
    color: var(--color-accent-primary);
    background: transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.popup-swiper .swiper-button-next:hover,
.popup-swiper .swiper-button-prev:hover {
    background: var(--color-accent-primary);
    color: white;
}

.popup-swiper .swiper-button-next:after,
.popup-swiper .swiper-button-prev:after {
    font-size: 20px;
}

.popup-swiper .swiper-pagination-bullet {
    background: var(--color-text-muted);
}

.popup-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent-primary);
}

/* Popup Card */
.popup-card {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.popup-image-container {
    width: 100%;
    background: var(--color-bg-primary);
    padding: var(--spacing-md);
}

.popup-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.popup-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.popup-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--color-accent-primary);
}

.popup-thumbnail.active {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.popup-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: var(--color-bg-primary);
}

.popup-image-swiper {
    width: 100%;
    height: 100%;
}

.popup-image-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--color-bg-primary);
}

.popup-content {
    flex: 1;
    padding: var(--spacing-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    min-height: 300px;
}

.popup-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0;
    color: var(--color-text-primary);
    line-height: 1.2;
    flex-shrink: 0;
}

.popup-content p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.popup-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: 0;
    flex-shrink: 0;
}

.popup-technologies .tech-tag {
    background: #ffffff;
    color: #000000;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.popup-links {
    margin-top: auto;
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.popup-links .card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    min-width: 140px;
    text-align: center;
}

.popup-links .card-link i {
    font-size: 16px;
}

.popup-links .card-link:first-child {
    background: linear-gradient(135deg, #24292e, #2f363d);
    border: 1px solid #444c56;
}

.popup-links .card-link:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #2f363d, #444c56);
    border-color: #6e7681;
}

.popup-links .card-link:last-child {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #10b981;
}

.popup-links .card-link:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34d399, #10b981);
}

.popup-image-swiper {
    width: 100%;
    height: 100%;
}

.popup-image-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--color-bg-primary);
}

.popup-image-swiper .swiper-button-next,
.popup-image-swiper .swiper-button-prev {
    color: var(--color-accent-primary);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.popup-image-swiper .swiper-button-next:after,
.popup-image-swiper .swiper-button-prev:after {
    font-size: 16px;
}

.popup-image-swiper .swiper-pagination-bullet {
    background: var(--color-text-muted);
}

.popup-image-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent-primary);
}

@media (max-width: 768px) {
    .popup-card {
        max-height: 60vh;
    }
    
    .popup-image {
        height: 200px;
        padding: var(--spacing-md);
    }
}

/* =========================================
   3-CARD CAROUSEL
   ========================================= */

.three-card-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-3xl) 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.cards-container {
    flex: 1;
    overflow: visible;
    perspective: 1000px;
}

.cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transform-style: preserve-3d;
}

.three-card {
    width: 320px;
    min-height: 450px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: visible;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.three-card.center {
    transform: scale(1.1) translateZ(30px);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.2);
    border-color: var(--color-accent-primary);
    transition: transform 0.1s ease-out;
    border-radius: 20px 20px 0 0;
}

.three-card.left {
    transform: translateX(60px) rotateY(15deg) scale(0.85);
    opacity: 0.7;
    z-index: 5;
}

.three-card.right {
    transform: translateX(-60px) rotateY(-15deg) scale(0.85);
    opacity: 0.7;
    z-index: 5;
}

.three-card .card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
}

.three-card .card-category-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    z-index: 2;
}

.three-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.three-card .card-content {
    padding: var(--spacing-md);
}

.three-card .card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.three-card .card-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.three-card .card-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--spacing-sm);
}

.three-card .tech-tag {
    background: #ffffff;
    color: #000000;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
}

.three-card .card-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.three-card .card-links-row {
    display: flex;
    gap: var(--spacing-sm);
}

.three-card .card-link-btn.full-width {
    width: 100%;
}

.three-card .card-link-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.three-card .card-link-btn.github {
    background: #333;
    color: white;
}

.three-card .card-link-btn.github:hover {
    background: #555;
}

.three-card .card-link-btn.live {
    background: var(--color-accent-primary);
    color: white;
}

.three-card .card-link-btn.live:hover {
    background: #0ea5e9;
}

.three-card .card-link-btn.learn-more {
    background: #666666;
    color: #ffffff;
    border: 1px solid #666666;
    margin-top: 8px;
}

.three-card .card-link-btn.learn-more:hover {
    background: #555555;
    border-color: #555555;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    z-index: 20;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
    color: #000000;
    transform: scale(1.1);
}

.three-card-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 80px;
}

.three-card-carousel .nav-btn.prev {
    left: 10px;
}

.three-card-carousel .nav-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: var(--color-accent-primary);
    width: 24px;
    border-radius: var(--radius-full);
}

.carousel-dots .dot:hover:not(.active) {
    background: var(--color-text-secondary);
}

/* Numbered Pagination */
.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: 60px;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-sm);
    color: white;
    position: relative;
    z-index: 10;
}

.carousel-pagination .page-number {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: white;
}

.carousel-pagination .page-number:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-text-primary);
}

.carousel-pagination .page-number.active {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: white;
}

.carousel-pagination .page-info {
    font-weight: 600;
    color: white;
}

.no-projects {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .three-card {
        width: 280px;
    }
    
    .three-card.left {
        transform: translateX(40px) rotateY(15deg) scale(0.8);
    }
    
    .three-card.right {
        transform: translateX(-40px) rotateY(-15deg) scale(0.8);
    }
}

@media (max-width: 768px) {
    .three-card-carousel {
        padding: var(--spacing-md);
        touch-action: pan-y;
    }
    
    .three-card {
        width: 260px;
    }
    
    .three-card.left,
    .three-card.right {
        display: none;
    }
    
    .three-card.center {
        transform: scale(1);
    }
    
    /* Keep nav buttons visible on tablet */
    .nav-btn {
        display: flex;
    }
}

/* Hide nav buttons only on very small mobile screens */
@media (max-width: 480px) {
    .nav-btn {
        display: none;
    }
}

/* Fullscreen Image Viewer */
.fullscreen-image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-image-overlay.active {
    display: flex;
}

.fullscreen-image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* Letter Animation */
.about-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterAppear 0.5s ease forwards;
}

.about-name .letter.space {
    margin-right: 0.3em;
}

@keyframes letterAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delays for name letters - all start at same time (0.5s) */
.about-name .letter:nth-child(1) { animation-delay: 0.5s; }
.about-name .letter:nth-child(2) { animation-delay: 0.55s; }
.about-name .letter:nth-child(3) { animation-delay: 0.6s; }
.about-name .letter:nth-child(4) { animation-delay: 0.65s; }
.about-name .letter:nth-child(5) { animation-delay: 0.7s; }
.about-name .letter:nth-child(6) { animation-delay: 0.75s; }
.about-name .letter:nth-child(7) { animation-delay: 0.8s; }
.about-name .letter:nth-child(8) { animation-delay: 0.85s; }
.about-name .letter:nth-child(9) { animation-delay: 0.9s; }
.about-name .letter:nth-child(10) { animation-delay: 0.95s; }
.about-name .letter:nth-child(11) { animation-delay: 1.0s; }
.about-name .letter:nth-child(12) { animation-delay: 1.05s; }
.about-name .letter:nth-child(13) { animation-delay: 1.1s; }
.about-name .letter:nth-child(14) { animation-delay: 1.15s; }
.about-name .letter:nth-child(15) { animation-delay: 1.2s; }
.about-name .letter:nth-child(16) { animation-delay: 1.25s; }
.about-name .letter:nth-child(17) { animation-delay: 1.3s; }

/* Title Letter Animation */
.about-bio .letter-title,
.about-bio .word-title {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterAppearTitle 0.4s ease forwards;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--color-text-primary);
}

.about-bio .letter-title.space,
.about-bio .word-title.space {
    margin-right: 0.2em;
}

@keyframes letterAppearTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delays for title letters - starting after name animation */
.about-bio .letter-title:nth-child(1) { animation-delay: 2.0s; }
.about-bio .letter-title:nth-child(2) { animation-delay: 2.05s; }
.about-bio .letter-title:nth-child(3) { animation-delay: 2.1s; }
.about-bio .letter-title:nth-child(4) { animation-delay: 2.15s; }
.about-bio .letter-title:nth-child(5) { animation-delay: 2.2s; }
.about-bio .letter-title:nth-child(6) { animation-delay: 2.25s; }
.about-bio .letter-title:nth-child(7) { animation-delay: 2.3s; }
.about-bio .letter-title:nth-child(8) { animation-delay: 2.35s; }
.about-bio .letter-title:nth-child(9) { animation-delay: 2.4s; }
.about-bio .letter-title:nth-child(10) { animation-delay: 2.45s; }
.about-bio .letter-title:nth-child(11) { animation-delay: 2.5s; }
.about-bio .letter-title:nth-child(12) { animation-delay: 2.55s; }
.about-bio .letter-title:nth-child(13) { animation-delay: 2.6s; }
.about-bio .letter-title:nth-child(14) { animation-delay: 2.65s; }
.about-bio .letter-title:nth-child(15) { animation-delay: 2.7s; }
.about-bio .letter-title:nth-child(16) { animation-delay: 2.75s; }
.about-bio .letter-title:nth-child(17) { animation-delay: 2.8s; }
.about-bio .letter-title:nth-child(18) { animation-delay: 2.85s; }
.about-bio .letter-title:nth-child(19) { animation-delay: 2.9s; }
.about-bio .letter-title:nth-child(20) { animation-delay: 2.95s; }
.about-bio .letter-title:nth-child(21) { animation-delay: 3.0s; }
.about-bio .letter-title:nth-child(22) { animation-delay: 3.05s; }
.about-bio .letter-title:nth-child(23) { animation-delay: 3.1s; }
.about-bio .letter-title:nth-child(24) { animation-delay: 3.15s; }
.about-bio .letter-title:nth-child(25) { animation-delay: 3.2s; }
.about-bio .letter-title:nth-child(26) { animation-delay: 3.25s; }
.about-bio .letter-title:nth-child(27) { animation-delay: 3.3s; }
.about-bio .letter-title:nth-child(28) { animation-delay: 3.35s; }
.about-bio .letter-title:nth-child(29) { animation-delay: 3.4s; }
.about-bio .letter-title:nth-child(30) { animation-delay: 3.45s; }
.about-bio .letter-title:nth-child(31) { animation-delay: 3.5s; }
.about-bio .letter-title:nth-child(32) { animation-delay: 3.55s; }
.about-bio .letter-title:nth-child(33) { animation-delay: 3.6s; }
.about-bio .letter-title:nth-child(34) { animation-delay: 3.65s; }
.about-bio .letter-title:nth-child(35) { animation-delay: 3.7s; }
.about-bio .letter-title:nth-child(36) { animation-delay: 3.75s; }
.about-bio .letter-title:nth-child(37) { animation-delay: 3.8s; }
.about-bio .letter-title:nth-child(38) { animation-delay: 3.85s; }

/* Animation delays for word title - all start at same time (0.5s) */
.about-bio .word-title:nth-child(1) { animation-delay: 0.5s; }
.about-bio .word-title:nth-child(3) { animation-delay: 0.6s; }
.about-bio .word-title:nth-child(5) { animation-delay: 0.7s; }
.about-bio .word-title:nth-child(7) { animation-delay: 0.8s; }
.about-bio .word-title:nth-child(9) { animation-delay: 0.9s; }
.about-bio .word-title:nth-child(11) { animation-delay: 1.0s; }
.about-bio .word-title:nth-child(13) { animation-delay: 1.1s; }

/* Bio Word Animation - word by word appearance */
.bio-word {
    display: inline-block;
    margin-right: 0.2em;
    opacity: 0;
    animation: bioWordFadeIn 0.3s ease forwards;
    animation-fill-mode: forwards;
}

/* Bio word animation delays - all start at same time (0.5s) */
.bio-word:nth-child(16) { animation-delay: 0.5s; }
.bio-word:nth-child(17) { animation-delay: 0.55s; }
.bio-word:nth-child(18) { animation-delay: 0.6s; }
.bio-word:nth-child(19) { animation-delay: 0.65s; }
.bio-word:nth-child(20) { animation-delay: 0.7s; }
.bio-word:nth-child(21) { animation-delay: 0.75s; }
.bio-word:nth-child(22) { animation-delay: 0.8s; }
.bio-word:nth-child(23) { animation-delay: 0.85s; }
.bio-word:nth-child(24) { animation-delay: 0.9s; }
.bio-word:nth-child(25) { animation-delay: 0.95s; }
.bio-word:nth-child(26) { animation-delay: 1.0s; }
.bio-word:nth-child(27) { animation-delay: 1.05s; }
.bio-word:nth-child(28) { animation-delay: 1.1s; }
.bio-word:nth-child(29) { animation-delay: 1.15s; }
.bio-word:nth-child(30) { animation-delay: 1.2s; }
.bio-word:nth-child(31) { animation-delay: 1.25s; }
.bio-word:nth-child(32) { animation-delay: 1.3s; }
.bio-word:nth-child(33) { animation-delay: 1.35s; }
.bio-word:nth-child(34) { animation-delay: 1.4s; }
.bio-word:nth-child(35) { animation-delay: 1.45s; }
.bio-word:nth-child(36) { animation-delay: 1.5s; }
.bio-word:nth-child(37) { animation-delay: 1.55s; }
.bio-word:nth-child(38) { animation-delay: 1.6s; }
.bio-word:nth-child(39) { animation-delay: 1.65s; }
.bio-word:nth-child(40) { animation-delay: 1.7s; }
.bio-word:nth-child(41) { animation-delay: 1.75s; }
.bio-word:nth-child(42) { animation-delay: 1.8s; }
.bio-word:nth-child(43) { animation-delay: 1.85s; }
.bio-word:nth-child(44) { animation-delay: 1.9s; }
.bio-word:nth-child(45) { animation-delay: 1.95s; }
.bio-word:nth-child(46) { animation-delay: 2.0s; }
.bio-word:nth-child(47) { animation-delay: 2.05s; }
.bio-word:nth-child(48) { animation-delay: 2.1s; }
.bio-word:nth-child(49) { animation-delay: 2.15s; }
.bio-word:nth-child(50) { animation-delay: 2.2s; }
.bio-word:nth-child(51) { animation-delay: 2.25s; }
.bio-word:nth-child(52) { animation-delay: 2.3s; }
.bio-word:nth-child(53) { animation-delay: 2.35s; }
.bio-word:nth-child(54) { animation-delay: 2.4s; }
.bio-word:nth-child(55) { animation-delay: 2.45s; }
.bio-word:nth-child(56) { animation-delay: 2.5s; }
.bio-word:nth-child(57) { animation-delay: 2.55s; }
.bio-word:nth-child(58) { animation-delay: 2.6s; }
.bio-word:nth-child(59) { animation-delay: 2.65s; }
.bio-word:nth-child(60) { animation-delay: 2.7s; }
.bio-word:nth-child(61) { animation-delay: 2.75s; }
.bio-word:nth-child(62) { animation-delay: 2.8s; }
.bio-word:nth-child(63) { animation-delay: 2.85s; }
.bio-word:nth-child(64) { animation-delay: 2.9s; }
.bio-word:nth-child(65) { animation-delay: 2.95s; }
.bio-word:nth-child(66) { animation-delay: 3.0s; }
.bio-word:nth-child(67) { animation-delay: 3.05s; }
.bio-word:nth-child(68) { animation-delay: 3.1s; }
.bio-word:nth-child(69) { animation-delay: 3.15s; }
.bio-word:nth-child(70) { animation-delay: 3.2s; }
.bio-word:nth-child(71) { animation-delay: 3.25s; }
.bio-word:nth-child(72) { animation-delay: 3.3s; }
.bio-word:nth-child(73) { animation-delay: 3.35s; }
.bio-word:nth-child(74) { animation-delay: 3.4s; }
.bio-word:nth-child(75) { animation-delay: 3.45s; }
.bio-word:nth-child(76) { animation-delay: 3.5s; }
.bio-word:nth-child(77) { animation-delay: 3.55s; }
.bio-word:nth-child(78) { animation-delay: 3.6s; }
.bio-word:nth-child(79) { animation-delay: 3.65s; }
.bio-word:nth-child(80) { animation-delay: 3.7s; }
.bio-word:nth-child(81) { animation-delay: 3.75s; }
.bio-word:nth-child(82) { animation-delay: 3.8s; }
.bio-word:nth-child(83) { animation-delay: 3.85s; }
.bio-word:nth-child(84) { animation-delay: 3.9s; }
.bio-word:nth-child(85) { animation-delay: 3.95s; }
.bio-word:nth-child(86) { animation-delay: 4.0s; }
.bio-word:nth-child(87) { animation-delay: 4.05s; }
.bio-word:nth-child(88) { animation-delay: 4.1s; }
.bio-word:nth-child(89) { animation-delay: 4.15s; }
.bio-word:nth-child(90) { animation-delay: 4.2s; }
.bio-word:nth-child(91) { animation-delay: 4.25s; }
.bio-word:nth-child(92) { animation-delay: 4.3s; }
.bio-word:nth-child(93) { animation-delay: 4.35s; }
.bio-word:nth-child(94) { animation-delay: 4.4s; }
.bio-word:nth-child(95) { animation-delay: 4.45s; }
.bio-word:nth-child(96) { animation-delay: 4.5s; }
.bio-word:nth-child(97) { animation-delay: 4.55s; }
.bio-word:nth-child(98) { animation-delay: 4.6s; }
.bio-word:nth-child(99) { animation-delay: 4.65s; }
.bio-word:nth-child(100) { animation-delay: 4.7s; }

@keyframes bioWordFadeIn {
    to {
        opacity: 1;
    }
}

/* About Buttons Animation - appear after bio text finishes */
.about-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.about-btn {
    opacity: 0;
    animation: buttonSlideIn 0.5s ease forwards;
}

.contact-btn {
    animation-delay: 4.8s;
    animation-name: buttonSlideFromLeft;
}

.cv-btn {
    animation-delay: 4.8s;
    animation-name: buttonSlideFromRight;
}

@keyframes buttonSlideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes buttonSlideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern 3D Tech Swiper */
.tech-3d-swiper {
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-md) 0;
    perspective: 1000px;
}

.tech-3d-track {
    display: flex;
    gap: var(--spacing-md);
    animation: tech3dScroll 100s linear infinite;
    width: max-content;
    transform-style: preserve-3d;
}

.tech-3d-card {
    min-width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background: linear-gradient(145deg, var(--color-card), var(--color-secondary));
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tech-3d-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(-10deg);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.3);
}

.tech-3d-card i,
.tech-3d-card svg {
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-3d-card svg {
    width: 2.5rem;
    height: 2.5rem;
}

.tech-3d-card span {
    font-size: var(--font-size-xs);
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Technology-specific colors - all visible on dark background */
.tech-3d-card:nth-child(1) svg { fill: #61DAFB; } /* React - cyan */
.tech-3d-card:nth-child(1) i { color: #61DAFB; }
.tech-3d-card:nth-child(2) i { color: #FF2D20; } /* Laravel - red */
.tech-3d-card:nth-child(3) i { color: #02569B; } /* Flutter - blue */
.tech-3d-card:nth-child(4) i { color: #F7DF1E; } /* JavaScript - yellow */
.tech-3d-card:nth-child(5) i { color: #E34F26; } /* HTML5 - orange */
.tech-3d-card:nth-child(6) i { color: #1572B6; } /* CSS3 - blue */
.tech-3d-card:nth-child(7) i { color: #339933; } /* Node.js - green */
.tech-3d-card:nth-child(8) i { color: #7952B3; } /* Bootstrap - purple */
.tech-3d-card:nth-child(9) i { color: #06B6D4; } /* Tailwind - cyan */
.tech-3d-card:nth-child(10) i { color: #00758F; } /* MySQL - blue */
.tech-3d-card:nth-child(11) i { color: #47A248; } /* MongoDB - green */
.tech-3d-card:nth-child(12) i { color: #F05032; } /* Git - orange */
.tech-3d-card:nth-child(13) svg { fill: #ffffff; } /* GitHub - white */
.tech-3d-card:nth-child(13) i { color: #ffffff; }
.tech-3d-card:nth-child(14) svg { fill: #0079BF; } /* Trello - blue */
.tech-3d-card:nth-child(14) i { color: #0079BF; }
.tech-3d-card:nth-child(15) svg { fill: #0052CC; } /* Jira - blue */
.tech-3d-card:nth-child(15) i { color: #0052CC; }
.tech-3d-card:nth-child(16) i { color: #2496ED; } /* Docker - blue */
.tech-3d-card:nth-child(15) i { color: #FF9900; } /* AWS - orange */
.tech-3d-card:nth-child(16) i { color: #3776AB; } /* Python - blue */
.tech-3d-card:nth-child(17) i { color: #00979D; } /* Arduino - teal */
.tech-3d-card:nth-child(18) i { color: #00D4FF; } /* ESP32 - bright cyan */
.tech-3d-card:nth-child(19) i { color: #00D4FF; } /* ESP8266 - bright cyan */
.tech-3d-card:nth-child(20) i { color: #FF6666; } /* n8n - red */
.tech-3d-card:nth-child(21) i { color: #777BB4; } /* PHP - purple */
.tech-3d-card:nth-child(22) i { color: #007396; } /* Java - blue */
.tech-3d-card:nth-child(23) i { color: #FA7343; } /* Swift - orange */
.tech-3d-card:nth-child(24) i { color: #7F52FF; } /* Kotlin - purple */
.tech-3d-card:nth-child(25) i { color: #F24E1E; } /* Figma - orange */
.tech-3d-card:nth-child(26) i { color: #FF61F6; } /* Adobe XD - pink */
.tech-3d-card:nth-child(27) i { color: #4FC08D; } /* Vue.js - green */
.tech-3d-card:nth-child(28) i { color: #DD0031; } /* Angular - red */
.tech-3d-card:nth-child(29) i { color: #21759B; } /* WordPress - blue */
.tech-3d-card:nth-child(30) i { color: #FFCA28; } /* Firebase - yellow */
.tech-3d-card:nth-child(31) i { color: #CC2927; } /* SQL - red */
.tech-3d-card:nth-child(32) i { color: #FCC624; } /* Linux - yellow */
.tech-3d-card:nth-child(33) i { color: #E95420; } /* Ubuntu - orange */
.tech-3d-card:nth-child(20) i { color: #777BB4; } /* PHP - purple */
.tech-3d-card:nth-child(21) i { color: #007396; } /* Java - blue */
.tech-3d-card:nth-child(22) i { color: #FA7343; } /* Swift - orange */
.tech-3d-card:nth-child(23) i { color: #7F52FF; } /* Kotlin - purple */
.tech-3d-card:nth-child(24) i { color: #F24E1E; } /* Figma - orange */
.tech-3d-card:nth-child(25) i { color: #FF61F6; } /* Adobe XD - pink */
.tech-3d-card:nth-child(26) i { color: #4FC08D; } /* Vue.js - green */
.tech-3d-card:nth-child(27) i { color: #DD0031; } /* Angular - red */
.tech-3d-card:nth-child(28) i { color: #21759B; } /* WordPress - blue */
.tech-3d-card:nth-child(29) i { color: #FFCA28; } /* Firebase - yellow */
.tech-3d-card:nth-child(30) i { color: #CC2927; } /* SQL - red */
.tech-3d-card:nth-child(31) i { color: #FCC624; } /* Linux - yellow */
.tech-3d-card:nth-child(32) i { color: #E95420; } /* Ubuntu - orange */

/* Duplicate set colors for infinite loop (cards 33-64) */
.tech-3d-card:nth-child(33) svg { fill: #61DAFB; }
.tech-3d-card:nth-child(33) i { color: #61DAFB; }
.tech-3d-card:nth-child(34) i { color: #FF2D20; }
.tech-3d-card:nth-child(35) i { color: #02569B; }
.tech-3d-card:nth-child(36) i { color: #F7DF1E; }
.tech-3d-card:nth-child(37) i { color: #E34F26; }
.tech-3d-card:nth-child(38) i { color: #1572B6; }
.tech-3d-card:nth-child(39) i { color: #339933; }
.tech-3d-card:nth-child(40) i { color: #7952B3; }
.tech-3d-card:nth-child(41) i { color: #06B6D4; }
.tech-3d-card:nth-child(42) i { color: #00758F; }
.tech-3d-card:nth-child(43) i { color: #47A248; }
.tech-3d-card:nth-child(44) i { color: #F05032; } /* Git - orange */
.tech-3d-card:nth-child(45) svg { fill: #ffffff; } /* GitHub - white */
.tech-3d-card:nth-child(45) i { color: #ffffff; }
.tech-3d-card:nth-child(46) svg { fill: #0079BF; } /* Trello - blue */
.tech-3d-card:nth-child(46) i { color: #0079BF; }
.tech-3d-card:nth-child(47) svg { fill: #0052CC; } /* Jira - blue */
.tech-3d-card:nth-child(47) i { color: #0052CC; }
.tech-3d-card:nth-child(48) i { color: #2496ED; } /* Docker - blue */
.tech-3d-card:nth-child(46) i { color: #FF9900; }
.tech-3d-card:nth-child(47) i { color: #3776AB; }
.tech-3d-card:nth-child(48) i { color: #00979D; }
.tech-3d-card:nth-child(49) i { color: #00D4FF; }
.tech-3d-card:nth-child(50) i { color: #00D4FF; }
.tech-3d-card:nth-child(51) i { color: #FF6666; }
.tech-3d-card:nth-child(52) i { color: #777BB4; }
.tech-3d-card:nth-child(53) i { color: #007396; }
.tech-3d-card:nth-child(54) i { color: #FA7343; }
.tech-3d-card:nth-child(55) i { color: #7F52FF; }
.tech-3d-card:nth-child(56) i { color: #F24E1E; }
.tech-3d-card:nth-child(57) i { color: #FF61F6; }
.tech-3d-card:nth-child(58) i { color: #4FC08D; }
.tech-3d-card:nth-child(59) i { color: #DD0031; }
.tech-3d-card:nth-child(60) i { color: #21759B; }
.tech-3d-card:nth-child(61) i { color: #FFCA28; }
.tech-3d-card:nth-child(62) i { color: #CC2927; }
.tech-3d-card:nth-child(63) i { color: #FCC624; }
.tech-3d-card:nth-child(64) i { color: #E95420; }

@keyframes tech3dScroll {
    0% {
        transform: rotateX(10deg) translateX(0);
    }
    100% {
        transform: rotateX(10deg) translateX(-50%);
    }
}

.fullscreen-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.fullscreen-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
