/* ============================================
   KALID HASSEN YASIN - DIGITAL EARTH PORTFOLIO
   Polished & Perfectly Aligned CSS
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --primary: #00d4aa;
    --primary-dark: #00b894;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --cde-blue: #3b82f6;
    --cde-dark: #1e40af;
    
    --bg-dark: #0a0f1c;
    --bg-darker: #050810;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --text-muted: #64748b;
    
    --border: rgba(148, 163, 184, 0.15);
    --glow: rgba(0, 212, 170, 0.3);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: 0.3s ease;
    --container: 1200px;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* === CONTAINER === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* === LOADER === */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-globe {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 30px;
}

.globe-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

.globe-ring.r1 {
    inset: 0;
    animation: spin 3s linear infinite;
}

.globe-ring.r2 {
    inset: 15px;
    animation: spin 2s linear infinite reverse;
}

.globe-ring.r3 {
    inset: 30px;
    animation: spin 1.5s linear infinite;
}

.globe-core {
    position: absolute;
    inset: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loader-text {
    color: var(--text-gray);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0;
    animation: load 2s ease forwards;
}

@keyframes load {
    to { width: 100%; }
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(255,255,255,0.05);
}

.nav-link.cde-nav {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(30,64,175,0.2));
    color: var(--cde-blue);
    border: 1px solid rgba(59,130,246,0.3);
}

.nav-link.cde-nav:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(30,64,175,0.3));
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

#starsCanvas {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0,212,170,0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--primary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: 20px;
}

.title-greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 8px;
}

.title-name {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-white), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-text {
    color: var(--primary);
    font-family: var(--font-mono);
}

.typing-cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

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

.hero-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--glow);
}

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

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

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

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

.image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.image-border {
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(0,212,170,0.3);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.image-orbit {
    position: absolute;
    inset: -30px;
    border: 1px dashed rgba(0,212,170,0.2);
    border-radius: 50%;
    animation: spin 15s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.2rem;
}

.floating-card.card-1 {
    top: 0;
    right: -20px;
}

.floating-card.card-2 {
    bottom: 40%;
    left: -30px;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 0;
    right: 10px;
    animation-delay: 4s;
}

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

.hero-social {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: var(--transition);
}

.hero-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* === SECTIONS === */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, rgba(99,102,241,0.02) 0%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 25px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* === ABOUT === */
.about-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-dark) 100%);
}

.about-badge {
    position: absolute;
    padding: 14px 18px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.about-badge.badge-1 {
    top: 20px;
    right: -30px;
}

.about-badge.badge-2 {
    bottom: 80px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.badge-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-badge i {
    font-size: 1.5rem;
    color: var(--accent);
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.highlight-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,170,0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.highlight-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.highlight-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 3px;
}

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

.timeline-item:nth-child(odd) {
    margin-left: auto;
    padding-left: 60px;
}

.timeline-item:nth-child(even) {
    padding-right: 60px;
    text-align: right;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    left: -25px;
}

.timeline-item:nth-child(even) .timeline-marker {
    right: -25px;
}

.timeline-marker.current {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--glow);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.timeline-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.timeline-badge.current {
    background: rgba(245,158,11,0.1);
    color: var(--accent);
}

.timeline-badge.ongoing {
    background: rgba(99,102,241,0.1);
    color: var(--secondary);
}

.timeline-badge.completed {
    background: rgba(0,212,170,0.1);
    color: var(--primary);
}

.timeline-logos {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.timeline-item:nth-child(even) .timeline-logos {
    justify-content: flex-end;
}

.timeline-logos img {
    height: 40px;
    width: auto;
    background: white;
    padding: 6px 10px;
    border-radius: 8px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.timeline-content h4 {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.timeline-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.timeline-item:nth-child(even) .timeline-meta {
    justify-content: flex-end;
}

.timeline-meta i {
    color: var(--primary);
    margin-right: 6px;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.timeline-link:hover {
    color: var(--text-white);
}

/* === CDE SECTION === */
.cde-section {
    background: linear-gradient(180deg, rgba(30,64,175,0.05) 0%, rgba(59,130,246,0.03) 50%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.cde-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cde-orbit {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(59,130,246,0.2);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.orbit-satellite {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

.section-tag.cde-tag {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.3);
    color: var(--cde-blue);
}

/* CDE Intro */
.cde-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 24px;
    margin-bottom: 60px;
}

.cde-logos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.cde-logo-main {
    height: 80px;
    width: auto;
}

.eu-logo {
    height: 50px;
    width: auto;
}

.cde-intro-text h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--cde-blue);
    margin-bottom: 12px;
}

.cde-intro-text p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Pathway */
.pathway {
    margin-bottom: 60px;
}

.pathway-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.pathway-title i {
    color: var(--cde-blue);
    margin-right: 10px;
}

.pathway-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pathway-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    min-width: 250px;
}

.pathway-node:hover {
    border-color: var(--cde-blue);
    transform: translateY(-5px);
}

.pathway-node.active {
    border-color: var(--cde-blue);
    background: linear-gradient(145deg, rgba(30,64,175,0.15), rgba(59,130,246,0.1));
}

.node-pulse {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--cde-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.node-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.node-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.node-year {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--cde-dark), var(--cde-blue));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.node-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.node-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pathway-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cde-blue);
}

.pathway-line::before,
.pathway-line::after {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--cde-blue), var(--cde-dark));
}

.line-plane {
    font-size: 1.5rem;
    animation: flyRight 2s infinite;
}

@keyframes flyRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Courses */
.courses {
    margin-bottom: 60px;
}

.courses-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.courses-title i {
    color: var(--cde-blue);
    margin-right: 10px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    position: relative;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cde-blue);
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover {
    border-color: var(--cde-blue);
    transform: translateY(-5px);
}

.course-card:hover::before {
    opacity: 1;
}

.course-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.course-card.core .course-type {
    background: rgba(0,212,170,0.1);
    color: var(--primary);
}

.course-card.specialization .course-type {
    background: rgba(99,102,241,0.1);
    color: var(--secondary);
}

.course-card.technical .course-type {
    background: rgba(59,130,246,0.1);
    color: var(--cde-blue);
}

.course-card.professional .course-type {
    background: rgba(245,158,11,0.1);
    color: var(--accent);
}

.course-card.orientation .course-type {
    background: rgba(148,163,184,0.1);
    color: var(--text-gray);
}

.course-card.intensive .course-type {
    background: rgba(236,72,153,0.1);
    color: #ec4899;
}

.course-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(30,64,175,0.1));
    border-radius: 14px;
    margin-bottom: 16px;
}

.course-icon i {
    font-size: 1.3rem;
    color: var(--cde-blue);
}

.course-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* CDE Highlights */
.cde-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cde-highlight {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
}

.cde-highlight:hover {
    border-color: var(--cde-blue);
    transform: translateY(-5px);
}

.cde-highlight .highlight-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(30,64,175,0.1));
    border-radius: 16px;
}

.cde-highlight .highlight-icon i {
    font-size: 1.5rem;
    color: var(--cde-blue);
}

.cde-highlight h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cde-highlight p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === SKILLS === */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.category-header i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    color: var(--bg-dark);
    font-size: 1.2rem;
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar {}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.skill-info span:last-child {
    color: var(--primary);
    font-weight: 600;
}

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

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 8px;
    width: 0;
    transition: width 1.5s ease;
}

.tech-stack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    position: sticky;
    top: 100px;
}

.tech-stack h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 24px;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 1.8rem;
    color: var(--primary);
}

.tech-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === PUBLICATIONS === */
.pub-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

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

.pub-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.pub-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pub-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.pub-year {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.pub-journal {
    display: block;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.pub-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
    flex-grow: 1;
}

.pub-authors {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

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

.pub-tags span {
    padding: 4px 12px;
    background: rgba(99,102,241,0.1);
    color: var(--secondary);
    font-size: 0.75rem;
    border-radius: 12px;
}

.pub-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,170,0.1);
    border-radius: 10px;
    color: var(--primary);
    transition: var(--transition);
}

.pub-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

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

/* === INTERNATIONAL PROJECTS === */
.project-featured {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(30,64,175,0.05));
    border: 2px solid rgba(59,130,246,0.3);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.project-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.project-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.project-funder-logo {
    width: 120px;
    height: auto;
}

.funding-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cde-blue);
}

.project-content {
    flex: 1;
}

.project-header {
    margin-bottom: 20px;
}

.project-role {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--cde-dark), var(--cde-blue));
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    margin-bottom: 16px;
}

.project-funders {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-funders span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.project-funders i {
    color: var(--cde-blue);
    margin-right: 8px;
}

.project-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ph-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ph-item i {
    color: var(--cde-blue);
}

.ph-item span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* === CONFERENCES === */
.conf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.conf-category h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.conf-category h3 i {
    color: var(--primary);
}

.conf-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conf-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.conf-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.conf-date {
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    height: fit-content;
    white-space: nowrap;
}

.conf-badge {
    padding: 8px 14px;
    background: rgba(99,102,241,0.15);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    height: fit-content;
    white-space: nowrap;
}

.conf-details h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.conf-details p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.conf-details p i {
    color: var(--primary);
    margin-right: 6px;
}

/* === VOLUNTEERING === */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.volunteer-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.volunteer-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.volunteer-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 18px;
    flex-shrink: 0;
}

.volunteer-icon i {
    font-size: 1.5rem;
    color: var(--bg-dark);
}

.volunteer-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.volunteer-content h4 {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.volunteer-period {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.volunteer-period i {
    color: var(--primary);
    margin-right: 6px;
}

.volunteer-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === EXPERIENCE === */
.experience-grid {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.exp-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.exp-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.exp-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #d97706);
    border-radius: 18px;
    flex-shrink: 0;
}

.exp-icon i {
    font-size: 1.5rem;
    color: white;
}

.exp-content {
    flex: 1;
}

.exp-header {
    margin-bottom: 8px;
}

.exp-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.exp-company {
    color: var(--accent);
    font-weight: 500;
}

.exp-period {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.exp-period i {
    color: var(--primary);
    margin-right: 6px;
}

.exp-content > p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.exp-tags span {
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* === CERTIFICATES === */
.cert-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    border-color: transparent;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.cert-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cert-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    margin-bottom: 16px;
}

.cert-icon i {
    font-size: 1.3rem;
    color: var(--bg-dark);
}

.cert-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cert-issuer,
.cert-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.cert-issuer i,
.cert-date i {
    color: var(--primary);
    margin-right: 8px;
    width: 14px;
}

.cert-note {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* === CONTACT === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--bg-dark);
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === FOOTER === */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-darker);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-note {
    color: var(--primary);
    margin-top: 8px;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .courses-grid,
    .publications-grid,
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-image {
        order: -1;
        padding: 20px;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .floating-card { display: none; }
    
    .hero-social {
        position: static;
        flex-direction: row;
        justify-content: center;
        transform: none;
        margin-top: 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .about-badge.badge-1 {
        right: -10px;
    }
    
    .about-badge.badge-2 {
        left: -10px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 5px !important;
        right: auto !important;
    }
    
    .timeline-logos,
    .timeline-meta {
        justify-content: flex-start !important;
    }
    
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        position: static;
    }
    
    .cde-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .title-name {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cde-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .pathway-track {
        flex-direction: column;
    }
    
    .pathway-line {
        transform: rotate(90deg);
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .pub-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .publications-grid,
    .cert-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .conf-grid,
    .volunteer-grid {
        grid-template-columns: 1fr;
    }
    
    .project-featured {
        flex-direction: column;
        text-align: center;
    }
    
    .project-highlights {
        justify-content: center;
    }
    
    .cde-highlights {
        grid-template-columns: 1fr 1fr;
    }
    
    .exp-card {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .cde-highlights {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === WAVING FLAGS === */
.flags-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
}

.flag-item {
    width: 50px;
    height: 35px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flag-item:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.flag-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* GIS Kitchen blog nav link */
.blog-nav {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
}

.blog-nav:hover {
    background: linear-gradient(135deg, #ff8c5a, #ffb347) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Courses CTA button */
.courses-cta {
    text-align: center;
    margin-top: 30px;
}

/* Responsive flags */
@media (max-width: 768px) {
    .flags-container {
        bottom: 15px;
        left: 15px;
        flex-direction: row;
        gap: 6px;
    }
    
    .flag-item {
        width: 40px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .flags-container {
        bottom: 10px;
        left: 10px;
    }
    
    .flag-item {
        width: 35px;
        height: 24px;
    }
}
