/* ============================================
   PORTFOLIO ROMAN NEGRILA - STYLE MODERNE
   ============================================ */    --fg-color: #e0e0e0;
    --fg-muted: #8892b0;
    --accent: #00ffd5;
    --accent-glow: rgba(0, 255, 213, 0.3);
    --accent-dark: #00b396;
    --header-bg: rgba(10, 15, 47, 0.85);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --code-bg: rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s ease;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Source Code Pro', monospace;
    --overlay-opacity: 0.65;
    --code-header-bg: rgba(0, 0, 0, 0.3);
    --footer-bg: rgba(0, 0, 0, 0.3);
    --hover-bg: rgba(255, 255, 255, 0.08);
    --timeline-line: rgba(255, 255, 255, 0.08);
    --token-keyword: #ff79c6;
    --token-class: #8be9fd;
    --token-function: #50fa7b;
    --token-string: #f1fa8c;
    --token-comment: #6272a4;
    --token-number: #bd93f9;
    --token-boolean: #bd93f9;
    --dot-red: #ff5f56;
    --dot-yellow: #ffbd2e;
    --dot-green: #27c93f;
    --progress-bar-bg: rgba(255, 255, 255, 0.1);
    --max-content-width: 1200px;
    --sidebar-width: 280px;
}

[data-theme="light"] {
    --bg-color: #f0f4f8;
    --bg-secondary: #ffffff;
    --fg-color: #1a1a2e;
    --fg-muted: #4a5568;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.3);
    --accent-dark: #1d4ed8;
    --header-bg: rgba(255, 255, 255, 0.92);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.08);
    --code-bg: rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --overlay-opacity: 0.1;
    --code-header-bg: rgba(0, 0, 0, 0.05);
    --footer-bg: rgba(0, 0, 0, 0.05);
    --hover-bg: rgba(0, 0, 0, 0.04);
    --timeline-line: rgba(0, 0, 0, 0.1);
    --token-keyword: #d63384;
    --token-class: #0dcaf0;
    --token-function: #198754;
    --token-string: #d63384;
    --token-comment: #6c757d;
    --token-number: #6f42c1;
    --token-boolean: #6f42c1;
    --dot-red: #dc3545;
    --dot-yellow: #ffc107;
    --dot-green: #198754;
    --progress-bar-bg: rgba(255, 255, 255, 0.1);
    --blink-pause: 0s infinite; /* For typing cursor pause */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}00vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
};
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    width: 0;
    z-index: 1000;
    box-shadow: var(--shadow-glow);
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    transition: transform var(--transition-medium);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid var(--card-border);
}

.sidebar .logo-link {
    color: var(--fg-color);
}    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.logo-bracket {
    color: var(--accent-dark);
}

.logo-slash {
    color: var(--fg-muted);
}-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--fg-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--hover-bg);
    color: var(--fg-color);
    border-left-color: var(--accent);
}

.sidebar-link.active {
    background: var(--hover-bg);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}    width: 20px;
    text-align: center;
}

.sidebar-section-title {
    padding: 20px 20px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: center;
}

/* Theme Toggle */
#theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Slightly adjusted size */
    height: 48px;
    color: var(--fg-color);
    font-size: 1.2rem;
}

#theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}main-content {
    margin-left: var(--sidebar-width);
    padding: 40px; /* Adjusted padding */
    min-height: 100vh;
    max-width: calc(var(--max-content-width) - var(--sidebar-width));    margin-right: auto;
    margin-left: var(--sidebar-width); /* Ensure it respects sidebar width */
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    transition: margin-left var(--transition-medium);
}

section {
    padding: 6rem 0;
    /* Removed opacity/transform for default state - let JS handle entry animations if desired */
}font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fg-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px); /* Adjust based on new fixed header if any, or sidebar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem 0;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

.hero-content {
    flex: 1;
    min-width: 300px;
}gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.1);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    border: none;
}

.hero-content h2::after {
    display: none;
}

.hero-content h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem); /* Responsive font size */
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.highlight {
    color: var(--fg-color);
}    color: var(--fg-muted);
    margin-bottom: 2rem;
    min-height: 1.5em;
    display: inline-block; /* Ensure cursor stays with text */
}

.cursor {
    animation: blink 1s infinite;
}

.cursor.blink-pause {
    animation: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
});
    color: var(--bg-color);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    max-width: 500px;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-block {
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.code-header {
    background: var(--code-header-bg);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.yellow {
    background: var(--dot-yellow);
}font-size: 0.85rem;
    color: var(--fg-muted);
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    background: none;
    padding: 0;
    display: block; /* Ensure code block takes full width */
}

/* Syntax Highlighting Tokens (Prism.js style inspired) */
.token.comment { color: var(--token-comment); }
.token.keyword { color: var(--token-keyword); }
.token.class-name { color: var(--token-class); } /* Changed to class-name for more generic styling */
.token.function { color: var(--token-function); }
.token.string { color: var(--token-string); }
.token.number { color: var(--token-number); }
.token.boolean { color: var(--token-boolean); }
.token.property { color: var(--token-string); } /* Re-using string color for properties */

/* About Section */
#a-propos {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 4rem;
    margin: 2rem 0;
    border: 1px solid var(--card-border);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}1.2rem;
    color: var(--fg-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content p {
    color: var(--fg-muted);
    margin-bottom: 1rem;
}

.about-info-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    justify-content: center;
}: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-secondary);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    flex: 1;
    min-width: 200px; /* Allow cards to shrink more gracefully */
    max-width: 300px; /* Max width to prevent excessive stretching */
    transition: var(--transition-fast);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.info-card i {
    font-size: 1.3rem;
    color: var(--accent);
}

.info-card div {
    display: flex;
    flex-direction: column;
}(--fg-color);
}

.info-card span {
    font-size: 0.85rem;
    color: var(--fg-muted);
}}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-line);
}position: relative;
    padding-bottom: 3rem;
    padding-left: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}px; /* Adjust to align with the line */
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    border: 2px solid var(--bg-color); /* To make it stand out */
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--fg-color);
}content h4 {
    color: var(--fg-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: var(--fg-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
}(--fg-muted);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.9em;
    line-height: 1.5;
}

/* AC (Apprentissages Critiques) Styles */
.section-intro {
    color: var(--fg-muted);
    font-size: 1.1rem;
    margin-top: -10px;
    margin-bottom: 20px;
    max-width: 800px;
}

.ac-container {
    display: flex;    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.ac-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.ac-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ac-card summary {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    transition: background-color var(--transition-fast);
}

.ac-card summary::-webkit-details-marker {
    display: none;
}transition-fast);
    color: var(--accent);
}

.ac-card[open] .ac-toggle-icon {
    transform: rotate(180deg);
}-dark));
    color: var(--bg-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    white-space: nowrap; /* Prevent code from breaking */
}

.ac-title {
    font-weight: 500;
    color: var(--fg-color);
    flex-grow: 1; /* Allow title to take available space */
}ac-content {
    padding: 0 20px 20px;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}

.ac-content p {
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.ac-content h4 {
    font-size: 1.1rem;
    color: var(--fg-color);
    margin: 1.5rem 0 0.8rem 0;
    position: relative;
    padding-left: 10px;
}

.ac-content h4::before {
    content: '‣';
    position: absolute;
    left: 0;
    color: var(--accent);
} {
    list-style: none;
    padding: 0;
}

.ac-content ul li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
}

.ac-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2em;
    line-height: 1;
}-content strong {
    color: var(--fg-color);
}

.ac-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--fg-muted);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--hover-bg);
}-reflex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.reflex-item {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--fg-muted);
    display: flex;
    flex-direction: column;
}

.reflex-item strong {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Code Pre and Code in ACs */
.ac-content pre {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--card-border);
}

.ac-content pre code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fg-color);
    background: none;
    padding: 0;
    display: block;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-medium);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.project-card-button {
    background: none;
    border: none;
    padding: 2rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    color: inherit;
    transition: var(--transition-fast);
}

.project-card-button:hover {
    color: var(--accent);
}

.project-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-color);
    transition: var(--transition-medium);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.project-info {
    text-align: center;
    flex-grow: 1;
}.5rem;
    margin-bottom: 0.5rem;
    color: var(--fg-color);
    transition: var(--transition-fast);
}

.project-card-button:hover .project-info h3 {
    color: var(--accent);
}info p {
    font-size: 0.95rem;
    color: var(--fg-muted);
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 47, 0.95);
    backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.project-modal.active {
    display: flex;
    opacity: 1;
}2);
    backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    color: var(--fg-color); /* Ensure text is visible */
}

.project-modal.active .project-modal-content {
    transform: scale(1) translateY(0);
}size: 36px;
    color: var(--fg-color);
    cursor: pointer;
    font-weight: 300;
    transition: var(--transition-fast);
    z-index: 10001;
    background: none;
    border: none;    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg) scale(1.1);
}color: var(--fg-color);
}

#modal-body h4 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--fg-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--fg-muted);
}

#modal-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;    color: var(--fg-muted);
}

#modal-body ul li {
    margin-bottom: 0.5rem;
} var(--code-bg);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--card-border);
}

#modal-body code {    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fg-color);
    background: none;
    padding: 0;
    display: block;
}

.project-tech-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}, 213, 0.2);
    color: var(--accent);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 213, 0.4);
    white-space: nowrap;
}

/* Certifications */
.certs-categories {
    display: grid;    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certs-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.category-title {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.category-title i {
    font-size: 1.1rem;}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
} flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition-fast);
    overflow: hidden;
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}.cert-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    margin-bottom: 1rem;    transition: var(--transition-fast);
    flex-shrink: 0;
}

.cert-badge i {
    font-size: 1.4rem;
} 255, 213, 0.15), rgba(0, 179, 150, 0.15));
    border: 2px solid var(--accent);
    color: var(--accent);
}

.cert-badge.in-progress {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.15), rgba(231, 111, 81, 0.15));
    border: 2px solid #f4a261;
    color: #f4a261;
}

.cert-card:hover .cert-badge {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}-content {
    flex: 1;
}

.cert-content h4 {
    font-size: 1.1rem;
    color: var(--fg-color);
    margin-bottom: 0.25rem;
}-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-desc {
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin-bottom: 0.75rem;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.cert-skills span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 255, 213, 0.08);
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 20px;
    color: var(--accent);
    white-space: nowrap;
}

.cert-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-status.obtained {
    background: rgba(0, 255, 213, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.cert-status.in-progress {
    background: rgba(244, 162, 97, 0.15);
    color: #f4a261;
    border: 1px solid #f4a261;
}

/* Hover overlay for certs */
.cert-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 15, 47, 0) 0%, rgba(10, 15, 47, 0.95) 100%);
    padding: 1.5rem 1.25rem 1.25rem;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
    border-radius: 0 0 12px 12px;
}

.cert-card:hover .cert-hover {
    transform: translateY(0);
}    font-size: 0.85rem;
    color: var(--fg-color);
    line-height: 1.5;
    margin-bottom: 0;
}

.cert-progress {
    margin-top: 0.75rem;
}.cert-progress span {
    font-size: 0.75rem;
    color: var(--fg-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f4a261);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.contact-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    display: flex;    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--fg-color);
}    color: var(--fg-muted);
    margin-bottom: 1rem;
}

.contact-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
}

.availability-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745; /* Green for available */
    box-shadow: 0 0 8px #28a745;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--fg-color);
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--accent);
    width: 25px;
    text-align: center;
}

.contact-cta {
    margin-top: 2rem;
    text-align: center;
}    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--fg-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
} & Lightbox */
figure {
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.skill-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    cursor: zoom-in;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.skill-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

figcaption {
    margin-top: 12px;
    font-style: italic;
    color: var(--fg-muted);
    font-size: 0.9em;
    text-align: center;
    padding: 5px 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block; /* To make border fit content */
}

/* Lightbox */
#lightbox {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    backdrop-filter: blur(5px);
}

#lightbox.active {    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
    object-fit: contain;
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

#lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: var(--fg-color);
    font-size: 1em;
    text-align: center;
    width: 100%;    text-shadow: 1px 1px 5px black;
    padding: 0 20px;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10001;
    background: none;
    border: none;
    line-height: 1;
}

#lightbox-close:hover {
    color: var(--accent);
}border-top: 1px solid var(--card-border);
    margin-left: var(--sidebar-width); /* Adjust for sidebar */
    transition: margin-left var(--transition-medium);
}

footer p {
    color: var(--fg-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */is-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .sidebar-header {
        justify-content: space-between;
        padding-right: 15px; /* Adjust padding for toggle button */
    }    #sidebar-toggle {
        display: block; /* Show hamburger menu */
    }

    .main-content {
        margin-left: 0;
        padding: 20px; /* Reduced padding for smaller screens */
        padding-top: 80px; /* Add space for potential fixed header or to push content down */
        max-width: 100%;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }-content {
        order: 2;
        width: 100%;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
        width: 100%;
    }content: center;
    }

    #a-propos {
        padding: 2.5rem;
    }-width: 350px; /* Constrain width on mobile */
        width: 100%;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -8px;
    }
    
    .certs-grid {
        grid-template-columns: 1fr; /* Stack certs on small screens */
    }rem;
        max-height: 95vh;
    }
    #modal-body {
        padding: 2.5rem 1.5rem 2rem;
    }
    #modal-body h4 {
        font-size: 1.8rem;
    }    #modal-body p {
        font-size: 1rem;
    }
    .project-tech-modal span {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2rem;
    }}
    
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.2rem;
    };
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    } {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .ac-title {
        font-size: 0.95rem;
    }
    
    .reflex-item strong {
        font-size: 0.9rem;
    }
    .reflex-item {
        font-size: 0.85rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-button {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }-grid {
        grid-template-columns: 1fr;
    }

    footer {
        margin-left: 0;
    }
}    }

    .hero-content h2 {
        font-size: 1.8rem;
    }00%;
        justify-content: center;
    }
    
    .ac-card summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ac-card summary .ac-toggle-icon {
        position: absolute;
        right: 15px;
        top: 15px;
    }
    .ac-code {
        width: fit-content;
    }
    .ac-title {
        width: 100%;
        margin-top: 5px;
    }
    
    .project-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .project-info h3 {
        font-size: 1.2rem;    }
    .project-info p {
        font-size: 0.85rem;
    }
    
    .cert-badge {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .cert-content h4 {
        font-size: 1rem;
    }
    .cert-issuer {
        font-size: 0.75rem;
    }
    .cert-desc, .cert-hover p {
        font-size: 0.8rem;
    }
    .cert-skills span {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    #lightbox-close {
        font-size: 30px;        right: 20px;
        top: 15px;
    }
    #lightbox-caption {
        font-size: 0.9em;
        bottom: 15px;
    }

    .modal-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    #modal-body {
        padding: 2rem 1rem 1.5rem;
    }
    #modal-body h4 {
        font-size: 1.5rem;
    }
    #modal-body p {
        font-size: 0.95rem;
    }
}
