/* ==========================================================================
   VARIABLES CSS & RESET
   ========================================================================== */
:root {
    /* Couleurs principales */
    --primary-color: #00aaff;
    --primary-dark: #0088cc;
    --primary-light: #38bdf8;
    --secondary-color: #6c63ff;
    --accent-color: #ff6b6b;
    
    /* Couleurs de texte */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #aaaaaa;
    --text-dark: #333333;
    
    /* Couleurs d'arrière-plan */
    --bg-dark: #0a0f1f;
    --bg-darker: #050913;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    /* Bordures & Ombres */
    --border-color: rgba(0, 170, 255, 0.2);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --glow: 0 0 20px rgba(0, 170, 255, 0.5);
    
    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-md: 1.125rem;  /* 18px */
    --font-size-lg: 1.5rem;    /* 24px */
    --font-size-xl: 2rem;      /* 32px */
    --font-size-xxl: 3rem;     /* 48px */
    
    /* Espacements */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-xxl: 4rem;    /* 64px */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-popover: 400;
    --z-tooltip: 500;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }

p {
    margin-bottom: var(--space-md);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0.3;
    z-index: -1;
}

/* ==========================================================================
   COMPONENTS: BOUTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 170, 255, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-link:hover {
    gap: var(--space-sm);
    color: var(--primary-light);
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   COMPONENTS: CARTES
   ========================================================================== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

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

.project-card:hover::before {
    transform: translateX(0);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

.project-status {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.project-status.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.project-content {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.project-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.tech-tag {
    font-size: var(--font-size-xs);
    padding: 6px 12px;
    background: rgba(0, 170, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.tech-tag i {
    font-size: 1.1rem;
}

.tech-tag:hover {
    background: rgba(0, 170, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* ==========================================================================
   COMPONENTS: COMPÉTENCES
   ========================================================================== */
.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-md);
}

.category-title i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.skill-item {
    margin-bottom: var(--space-md);
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-name i {
    font-size: 1.3rem;
    min-width: 25px;
    text-align: center;
}

.skill-percent {
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.skill-item:hover .skill-percent {
    opacity: 1;
    transform: translateX(0);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    width: 0;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   LAYOUT: HEADER & NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-sticky);
    padding: var(--space-sm) 0;
}

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

.logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo .dot {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: var(--z-dropdown);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: transform var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 8px);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -8px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   LAYOUT: SECTIONS
   ========================================================================== */
section {
    padding: var(--space-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-md);
    max-width: 600px;
    margin: 0 auto;
}

.title-decoration {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: var(--space-md) auto;
    border-radius: 2px;
}

/* ==========================================================================
   SECTION: HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

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

.hero-title {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.typing-container {
    margin-bottom: var(--space-lg);
}

.typing-intro {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.typing-wrapper {
    display: inline-block;
    position: relative;
}

.typing {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    min-width: 200px;
}

.cursor {
    display: inline-block;
    width: 3px;
    margin-left: 2px;
    background: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.image-frame {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 15, 31, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 3;
}

.badge-text {
    font-weight: 600;
    color: var(--text-primary);
}

.pulse {
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: all var(--transition-normal);
}

.scroll-down:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================================================
   SECTION: PROJETS
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* ==========================================================================
   SECTION: COMPÉTENCES (LOGO ROW)
   ========================================================================== */
.skills-flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding: var(--space-md) 0;
}

.skill-logo-item {
    font-size: 3.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
    flex-shrink: 0;
    min-width: 80px;
}

.skill-logo-item i,
.skill-logo-item img {
    transition: all var(--transition-normal);
    max-width: 100%;
    height: auto;
    display: block;
}

.skill-logo-item img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.skill-logo-item:hover {
    transform: translateY(-10px);
}

.skill-logo-item::after {
    content: attr(title);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.skill-logo-item:hover::after {
    opacity: 1;
    bottom: -5px;
}

/* ==========================================================================
   SECTION: CONTACT
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
}

.contact-description {
    margin-bottom: var(--space-xl);
    color: var(--text-muted);
}

.contact-methods {
    margin-bottom: var(--space-xl);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-method:last-child {
    margin-bottom: 0;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    flex-shrink: 0;
}

.method-details h4 {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.method-details a,
.method-details span {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-normal);
}

.method-details a:hover {
    color: var(--primary-color);
}

.contact-social p {
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

.form-error {
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
    min-height: 20px;
}

.btn-submit {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--font-size-base);
}

/* ==========================================================================
   LAYOUT: FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.copyright {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-credits i {
    color: var(--accent-color);
}

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-tooltip);
}

.back-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   COMPONENTS: TOAST
   ========================================================================== */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: var(--z-popover);
    max-width: 350px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --font-size-xxl: 2.5rem;
        --font-size-xl: 1.75rem;
        --space-xxl: 3rem;
        --space-xl: 2rem;
    }
    
    .hero-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-frame {
        width: 300px;
        height: 300px;
    }
    
    .image-glow {
        width: 320px;
        height: 320px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-xxl: 2rem;
        --font-size-xl: 1.5rem;
        --font-size-lg: 1.25rem;
        --space-xxl: 2.5rem;
        --space-xl: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-overlay);
        backdrop-filter: blur(10px);
        transition: right var(--transition-normal);
        z-index: var(--z-modal);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .back-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .project-card,
    .skill-category,
    .contact-form {
        padding: var(--space-md);
    }
    
    .image-frame {
        width: 250px;
        height: 250px;
    }
    
    .image-glow {
        width: 270px;
        height: 270px;
    }
    
    .image-badge {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-sm);
    }
    
    .toast {
        right: var(--space-sm);
        left: var(--space-sm);
        max-width: none;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .navbar,
    .hero-cta,
    .scroll-indicator,
    .social-icons,
    .back-to-top,
    .toast {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto;
        padding-top: 0;
    }
    
    .hero-image {
        display: none;
    }
}