/* CSS Design System for Fatima Adjissi's Portfolio */

:root {
    --bg-dark: #080711;
    --bg-darker: #04030a;
    --card-bg: rgba(18, 16, 32, 0.6);
    --card-bg-hover: rgba(26, 23, 48, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.3);
    
    /* Brand Colors */
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #a855f7; /* Purple */
    --secondary-glow: rgba(168, 85, 247, 0.3);
    --accent: #14b8a6; /* Teal */
    --accent-glow: rgba(20, 184, 166, 0.3);
    
    /* Text Colors */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #0b0a0f;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --transition-speed: 0.3s;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* Background Glow Blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary);
    top: 5%;
    left: -10%;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background-color: var(--secondary);
    top: 35%;
    right: -15%;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background-color: var(--accent);
    bottom: 10%;
    left: 10%;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

/* Text Gradients & Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(4, 3, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

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

.nav-menu ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-contact-nav {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-contact-nav:hover {
    background-color: var(--primary);
    color: #fff !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge-container {
    margin-bottom: 24px;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(20, 184, 166, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    }
}

.hero-title {
    font-size: 3.8rem;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 2.7rem;
}

.hero-subtitle .cursor {
    animation: blink 0.8s infinite;
    color: var(--primary);
    font-weight: bold;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.social-icon-btn:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

.avatar-glow-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    z-index: 1;
    animation: rotate 10s linear infinite;
    opacity: 0.8;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 6px solid var(--bg-dark);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 18px; opacity: 0; }
    100% { top: 8px; opacity: 1; }
}

/* About Section */
.about-section {
    padding: 100px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

.about-info-card {
    padding: 40px;
}

.about-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-info-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.quick-facts {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.fact-icon {
    font-size: 1.4rem;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.stat-num {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Work Experience Timeline */
.experience-section {
    padding: 100px 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 30px;
    z-index: 10;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(20, 184, 166, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.timeline-content {
    padding: 24px;
}

.timeline-content.featured {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.08);
}

.timeline-content.featured .timeline-header h3 {
    color: var(--secondary);
}

.timeline-header {
    margin-bottom: 12px;
}

.timeline-header h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.timeline-header .company {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    position: relative;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.project-image-container {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.project-image-placeholder.logo-card {
    padding: 20px;
}

.ai-bg {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
}

.cyber-bg {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
}

.web-bg {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(20, 184, 166, 0.2) 100%);
}

.p-icon {
    font-size: 3rem;
}

.p-category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tech span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(20, 184, 166, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skills-category-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.skills-category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name-percent {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-bar-outer {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
}

.skill-bar-inner {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 3px;
}

/* Education & Languages */
.education-section {
    padding: 100px 0;
    position: relative;
}

.edu-lang-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.education-block, .languages-block {
    padding: 40px;
}

.education-block h3, .languages-block h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.edu-timeline {
    position: relative;
    padding-left: 20px;
}

.edu-timeline::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--border-color);
}

.edu-item {
    position: relative;
    margin-bottom: 32px;
}

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

.edu-marker {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    z-index: 5;
    box-shadow: 0 0 8px var(--accent-glow);
}

.edu-details {
    padding-left: 12px;
}

.edu-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(20, 184, 166, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.edu-details h4 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.edu-school {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.edu-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.lang-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-flag {
    font-size: 1.8rem;
}

.lang-info {
    display: flex;
    flex-direction: column;
}

.lang-name {
    font-weight: 600;
    color: #fff;
}

.lang-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tools-header-gap {
    margin-top: 40px;
}

.tools-bubble-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tools-bubble-cloud span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.tools-bubble-cloud span:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contact-info, .contact-form-container {
    padding: 40px;
}

.contact-info h3, .contact-form-container h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
}

.contact-detail-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-color);
}

#copy-email-btn {
    cursor: pointer;
    position: relative;
}

#copy-email-btn:active {
    transform: scale(0.98);
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contact-detail-text .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-text .value {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.contact-detail-text .link-hover:hover {
    color: var(--primary);
}

.copy-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 3, 10, 0.8);
    z-index: 1000;
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}

.success-popup {
    padding: 40px;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: popupFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupFade {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 15px var(--accent-glow);
}

.success-popup h3 {
    font-size: 1.5rem;
}

.success-popup p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background-color: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: #fff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .about-grid, .edu-lang-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-darker);
        padding: 40px 24px;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    
    .nav-menu ul li {
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }
    
    .btn-contact-nav {
        margin-top: 10px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .avatar-wrapper {
        width: 240px;
        height: 240px;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-socials {
        justify-content: center;
    }

    /* Timeline centering to vertical bar alignment on small screens */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
        left: 11px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
}
