/* Page Qui suis-je - Styles spécifiques avec mode sombre */

/* Variables pour le mode sombre (héritées du fichier principal) */
:root {
    /* Variables déjà définies dans styles.css */
    --navbar-height: 70px;
    --mobile-breakpoint: 768px;
    --container-padding: 2rem;
    --mobile-padding: 1rem;
}

/* Correction pour l'arrière-plan en mode sombre - éliminer l'élément blanc */
[data-theme="dark"] html {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

[data-theme="dark"] html,
[data-theme="dark"] body {
    background-color: #0a0a0a !important;
    background-image: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forcer l'arrière-plan sur toutes les sections de la page "qui suis-je" */
[data-theme="dark"] .about-hero,
[data-theme="dark"] .terminal-section,
[data-theme="dark"] .why-choose,
[data-theme="dark"] .process-section,
[data-theme="dark"] .about-cta {
    background-attachment: local !important;
    position: relative;
}

[data-theme="dark"] .about-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
}

[data-theme="dark"] .terminal-section {
    background: var(--dark-bg-secondary) !important;
}

[data-theme="dark"] .why-choose {
    background: var(--dark-bg-primary) !important;
}

[data-theme="dark"] .process-section {
    background: var(--dark-bg-secondary) !important;
}

[data-theme="dark"] .about-cta {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
}

/* Correction pour tous les conteneurs - éliminer tout espace blanc possible */
[data-theme="dark"] * {
    border-color: transparent;
}

/* Scrollbar personnalisée */
[data-theme="dark"] * {
    scrollbar-color: rgba(139, 92, 246, 0.8) rgba(20, 20, 20, 0.8);
    scrollbar-width: thin;
}

[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    background: rgba(20, 20, 20, 0.8);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.8);
}

/* Navigation active state */
.nav-link.active {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.15);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.nav-link.active::after {
    width: 80%;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* About Hero Section */
.about-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .about-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
    background-attachment: local !important;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.02'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M20 20h40v40H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 15s ease-in-out infinite;
}

[data-theme="dark"] .about-hero::before {
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.05'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M20 20h40v40H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .about-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    animation: slideInLeft 1s ease;
}

.breadcrumb {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

.about-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .highlight {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* Profile Card */
.about-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease;
}

.profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    text-align: center;
    max-width: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .profile-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.profile-image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

[data-theme="dark"] .profile-image-placeholder {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.profile-icon {
    font-size: 3rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

[data-theme="dark"] .status-dot {
    box-shadow: 0 0 10px #10b981;
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Terminal Section */
.terminal-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

[data-theme="dark"] .terminal-section {
    background: var(--dark-bg-secondary) !important;
    background-attachment: local !important;
    position: relative;
}

[data-theme="dark"] .terminal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

[data-theme="dark"] .terminal-container {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(15px);
}

.terminal-header {
    background: #2d2d2d;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #404040;
}

[data-theme="dark"] .terminal-header {
    background: rgba(45, 45, 45, 0.8);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #28ca42;
}

[data-theme="dark"] .terminal-buttons div {
    box-shadow: 0 0 5px currentColor;
}

.terminal-title {
    color: #c4c4c4;
    font-size: 0.9rem;
    font-weight: 500;
}

[data-theme="dark"] .terminal-title {
    color: var(--dark-text-secondary);
}

.terminal-body {
    padding: 2rem;
    background: #1e1e1e;
    color: #e4e4e4;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 500px;
}

[data-theme="dark"] .terminal-body {
    background: rgba(30, 30, 30, 0.5);
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.terminal-prompt {
    color: #4ade80;
    font-weight: bold;
    flex-shrink: 0;
}

[data-theme="dark"] .terminal-prompt {
    color: #4ade80;
    text-shadow: 0 0 10px #4ade80;
}

.terminal-command {
    color: #60a5fa;
    font-weight: 500;
}

[data-theme="dark"] .terminal-command {
    color: #60a5fa;
    text-shadow: 0 0 10px #60a5fa;
}

.terminal-output {
    margin: 0.5rem 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid #374151;
}

[data-theme="dark"] .terminal-output {
    border-left: 2px solid rgba(139, 92, 246, 0.3);
}

.output-line {
    margin-bottom: 0.3rem;
    color: #d1d5db;
}

.output-line strong {
    color: #fbbf24;
}

[data-theme="dark"] .output-line strong {
    color: #fbbf24;
    text-shadow: 0 0 5px #fbbf24;
}

.skills-section {
    margin-top: 1rem;
}

.skill-category {
    margin-bottom: 1rem;
}

.category-title {
    color: #fbbf24;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .category-title {
    text-shadow: 0 0 10px #fbbf24;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 1rem;
}

.skill-tag {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .skill-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #c7d2fe;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.4);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

[data-theme="dark"] .skill-tag:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.terminal-line.active {
    animation: blink-line 1s ease-in-out infinite;
}

.terminal-cursor {
    color: #4ade80;
    animation: blink-cursor 1s ease-in-out infinite;
    font-weight: bold;
}

[data-theme="dark"] .terminal-cursor {
    text-shadow: 0 0 10px #4ade80;
}

.typing {
    border-right: 2px solid transparent;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes blink-line {
    0%, 50% { background-color: transparent; }
    51%, 100% { background-color: rgba(99, 102, 241, 0.1); }
}

@keyframes blink-line-dark {
    0%, 50% { background-color: transparent; }
    51%, 100% { background-color: rgba(139, 92, 246, 0.1); }
}

/* Why Choose Section */
.why-choose {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

[data-theme="dark"] .why-choose {
    background: var(--dark-bg-primary) !important;
    background-attachment: local !important;
    position: relative;
}

[data-theme="dark"] .why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.why-choose-content .section-title {
    margin-bottom: 4rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.reason-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .reason-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.reason-card:hover::before {
    transform: scaleY(1);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .reason-card:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.3);
}

.reason-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
}

[data-theme="dark"] .reason-number {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.reason-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.reason-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

[data-theme="dark"] .process-section {
    background: var(--dark-bg-secondary) !important;
    background-attachment: local !important;
    position: relative;
}

[data-theme="dark"] .process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
    z-index: 1;
}

[data-theme="dark"] .process-timeline::before {
    background: linear-gradient(to bottom, 
        rgba(139, 92, 246, 0.3) 0%, 
        rgba(236, 72, 153, 0.3) 50%, 
        rgba(139, 92, 246, 0.3) 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
    text-align: right;
}

.step-indicator {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .step-indicator {
    background: rgba(20, 20, 20, 0.9);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(10px);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

[data-theme="dark"] .step-number {
    text-shadow: 0 0 10px var(--primary-color);
}

.step-content {
    flex: 1;
    max-width: 280px;
    margin: 0 3rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

[data-theme="dark"] .step-content {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .step-content:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.step-duration {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

[data-theme="dark"] .step-duration {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-color);
}

/* About CTA Section */
.about-cta {
    background: var(--bg-dark);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .about-cta {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
    background-attachment: local !important;
}

[data-theme="dark"] .about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.about-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

[data-theme="dark"] .about-cta-content h2 {
    background: var(--dark-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-cta-content p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .about-cta-content p {
    color: var(--dark-text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta .btn-secondary {
    color: white;
    border-color: white;
}

[data-theme="dark"] .about-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.about-cta .btn-secondary:hover {
    background: white;
    color: var(--bg-dark);
}

[data-theme="dark"] .about-cta .btn-secondary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Navigation - Toujours sombre */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--navbar-height);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    z-index: 1001;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Mobile menu toggle (hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.1);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-link.active {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.15);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.nav-link.active::after {
    width: 80%;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Auth containers */
.auth-container {
    display: flex;
    gap: 0.5rem;
}

.desktop-auth {
    display: flex;
    margin-left: 1rem;
}

.mobile-auth {
    display: none;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 2px 15px rgba(139, 92, 246, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* RESPONSIVE BREAKPOINTS */

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    /* Hide desktop auth, show mobile nav */
    .desktop-auth {
        display: none;
    }
    
    .mobile-auth {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile navigation menu */
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        z-index: 999;
        height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 0;
        width: 100%;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(139, 92, 246, 0.1);
    }
    
    /* Container padding mobile */
    .container {
        padding: 0 var(--mobile-padding);
    }
    
    .nav-container {
        padding: 0 var(--mobile-padding);
    }
    
    /* Hero section mobile */
    .about-hero-container {
        padding: 0 var(--mobile-padding);
    }
    
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-visual {
        order: -1;
    }
    
    /* Terminal mobile */
    .terminal-container {
        margin: 0 1rem;
    }
    
    .terminal-body {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
    
    .terminal-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .skill-tags {
        margin-left: 0;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* Reasons grid mobile */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Process timeline mobile */
    .process-timeline::before {
        left: 40px;
        z-index: 1;
    }
    
    .process-step {
        flex-direction: row !important;
        padding-left: 120px;
    }
    
    .process-step:nth-child(even) .step-content {
        text-align: left;
    }
    
    .step-indicator {
        position: absolute;
        left: 0;
        z-index: 2;
    }
    
    .step-content {
        margin: 0;
        max-width: none;
        margin-left: 2rem;
        z-index: 3;
    }
    
    /* CTA buttons mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .about-hero-container {
        padding: 0 1rem;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .profile-card {
        padding: 2rem;
    }
    
    .reason-card {
        padding: 2rem;
    }
    
    .floating-card {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Very Small Mobile (up to 380px) */
@media (max-width: 380px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .about-hero-container {
        padding: 0 0.75rem;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .reason-card {
        padding: 1.5rem;
    }
    
    .floating-card {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
        border-radius: 15px;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .about-hero {
        min-height: 80vh;
    }

    .nav-menu {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* Hover states for touch devices */
@media (hover: none) and (pointer: coarse) {
    .floating-card:hover,
    .service-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    /* Make floating cards more visible on mobile */
    .floating-card {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    [data-theme="dark"] .floating-card {
        background: rgba(20, 20, 20, 0.95);
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    }
}