/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(26, 82, 150, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

.loader-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
    letter-spacing: 0.05em;
}

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

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

/* ===== GLOBAL VARIABLES ===== */
:root {
    /* Light Mode (Default) */
    --primary: #1a5296;
    --primary-dark: #143d70;
    --accent: #00d4aa;
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-medium: #f1f5f9;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --accent: #10b981;
    --text-dark: #f1f5f9;
    --text-medium: #94a3b8;
    --text-light: #64748b;
    --bg-light: #0f172a;
    --bg-medium: #1e293b;
    --bg-white: #162032;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.1), 0 0 30px -5px rgba(59, 130, 246, 0.15);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 1.1rem;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .fa-moon {
    color: var(--primary);
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.theme-toggle .fa-sun {
    color: #f59e0b;
    opacity: 0;
    transform: translateY(20px) rotate(90deg);
}

/* Dark Mode Active - Show Sun, Hide Moon */
[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: translateY(-20px) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-medium);
    border-color: var(--primary-dark);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 120px;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 0.9rem;
}

.lang-dropdown button:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 82, 150, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 82, 150, 0.5);
}

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

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

.hero-socials {
    display: flex;
    gap: 1rem;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.hero-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Hero Visual - Integrated Design */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    bottom: 20%;
    right: 10%;
    animation-delay: -3s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 40%;
    right: 30%;
    animation-delay: -5s;
    opacity: 0.4;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

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

.photo-img {
    width: 340px;
    height: 420px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 
        0 20px 60px rgba(26, 82, 150, 0.3),
        0 0 0 10px rgba(255, 255, 255, 0.1);
    animation: morphShape 10s ease-in-out infinite;
}

@keyframes morphShape {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.floating-stats {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.float-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatStat 6s ease-in-out infinite;
}

.float-stat.stat-1 {
    top: 15%;
    left: 0;
    animation-delay: 0s;
}

.float-stat.stat-2 {
    top: 50%;
    right: 0;
    animation-delay: -2s;
}

.float-stat.stat-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: -4s;
}

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

.float-num {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.float-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-top: 0.25rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary);
    font-size: 1.5rem;
}

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

/* ===== SECTION COMMON STYLES ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* About Lead Section */
.about-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    animation: scaleIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lead-text {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.lead-highlight {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2rem;
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.about-passion {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    animation: fadeSlideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
    transition: all 0.3s ease;
    cursor: default;
    animation: fadeSlideUp 0.8s ease-out forwards;
    opacity: 0;
}

.domain-tag:nth-child(1) { animation-delay: 0.7s; }
.domain-tag:nth-child(2) { animation-delay: 0.8s; }
.domain-tag:nth-child(3) { animation-delay: 0.9s; }
.domain-tag:nth-child(4) { animation-delay: 1.0s; }

/* Brand-specific glow colors */
.domain-tag:nth-child(1):hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
}

.domain-tag:nth-child(2):hover {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4), 0 0 40px rgba(255, 71, 87, 0.2);
}

.domain-tag:nth-child(3):hover {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
    border-color: #ffa502;
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.4), 0 0 40px rgba(255, 165, 2, 0.2);
}

.domain-tag:nth-child(4):hover {
    background: rgba(165, 94, 234, 0.15);
    color: #a55eea;
    border-color: #a55eea;
    box-shadow: 0 0 20px rgba(165, 94, 234, 0.4), 0 0 40px rgba(165, 94, 234, 0.2);
}

.domain-tag:hover {
    transform: translateY(-3px) scale(1.02);
}

.domain-tag i {
    font-size: 0.9rem;
}

.about-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Typing subtitle effect */
.typing-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    min-height: 1.5em;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary);
    font-weight: bold;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.95rem;
}

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

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.about-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 18px;
    width: 18px;
    height: 18px;
    background: var(--bg-white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(26, 82, 150, 0.2);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.company-logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.timeline-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.timeline-info .role {
    display: inline;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-info .date {
    display: inline;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.timeline-info .date::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--text-light);
}

.timeline-details {
    list-style: none;
    margin-bottom: 0.75rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.4;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.timeline-tags span {
    padding: 3px 10px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-marker {
        left: 8px;
        top: 14px;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1rem 1.25rem;
    }

    .timeline-header {
        gap: 0.6rem;
    }

    .company-logo,
    .company-logo-placeholder {
        width: 36px;
        height: 36px;
    }

    .timeline-info h3 {
        font-size: 0.95rem;
    }

    .timeline-info .role,
    .timeline-info .date {
        font-size: 0.8rem;
    }

    .timeline-details li {
        font-size: 0.85rem;
    }
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.project-card.featured {
    grid-column: span 2;
    grid-row: span 1;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.project-card.featured .project-image {
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 82, 150, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.project-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-stats span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-stats i {
    color: var(--primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    padding: 4px 10px;
    background: var(--bg-light);
    color: var(--text-medium);
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ===== GITHUB CARD COMPACT ===== */
.github-card .github-preview {
    background: #0d1117;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gh-mini-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gh-mini-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #30363d;
}

.gh-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gh-mini-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gh-mini-name {
    color: #c9d1d9;
    font-size: 0.9rem;
    font-weight: 600;
}

.gh-mini-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #8b949e;
}

.gh-mini-stats strong {
    color: #c9d1d9;
    font-weight: 600;
}

.gh-mini-chart {
    overflow-x: auto;
    padding: 0.25rem 0;
    display: flex;
    justify-content: center;
}

.gh-mini-weeks {
    display: flex;
    gap: 2px;
    min-width: max-content;
}

.gh-mini-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-day {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: #161b22;
}

.m-day.l-1 { background: #9be9a8; }
.m-day.l-2 { background: #40c463; }
.m-day.l-3 { background: #30a14e; }
.m-day.l-4 { background: #216e39; }

.gh-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 6px 12px;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    transition: all 0.2s ease;
}

.gh-mini-link:hover {
    background: #30363d;
    border-color: #58a6ff;
    color: #f0f6fc;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--bg-light);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-dots {
    display: none;
}

.skill-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
}

.skill-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Tech Stack Wall */
.dev-stack {
    grid-column: span 1;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tech-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: var(--radius-sm);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(145deg, #334155, #1e293b);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(26, 82, 150, 0.2);
}

.tech-card i {
    font-size: 1.8rem;
    color: #60a5fa;
    transition: var(--transition);
}

.tech-card:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.tech-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

.tech-card:hover span {
    color: white;
}

@media (max-width: 768px) {
    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .tech-card {
        padding: 1rem 0.5rem;
    }

    .tech-card i {
        font-size: 1.5rem;
    }

    .tech-card span {
        font-size: 0.7rem;
    }
}

.certifications {
    background: linear-gradient(145deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 82, 150, 0.08);
}

.certifications h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.certifications h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cert-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 82, 150, 0.15);
    border-color: rgba(26, 82, 150, 0.2);
}

.cert-item:hover::before {
    transform: scaleX(1);
}

/* Provider-based color accents */
.cert-item.cisco::before {
    background: linear-gradient(90deg, #049fd9, #6cc04a);
}

.cert-item.cisco .cert-icon {
    background: linear-gradient(135deg, rgba(4, 159, 217, 0.15), rgba(108, 192, 74, 0.15));
    color: #049fd9;
}

.cert-item.udemy::before {
    background: linear-gradient(90deg, #a435f0, #5624d0);
}

.cert-item.udemy .cert-icon {
    background: linear-gradient(135deg, rgba(164, 53, 240, 0.15), rgba(86, 36, 208, 0.15));
    color: #a435f0;
}

.cert-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cert-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(26, 82, 150, 0.1), rgba(56, 161, 105, 0.1));
    color: var(--primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cert-item:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
}

.cert-content {
    flex: 1;
}

.cert-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-provider {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.languages {
    background: linear-gradient(145deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 82, 150, 0.08);
}

.languages h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.languages h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Mobile-first: Cards stack vertically */
.lang-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lang-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lang-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 82, 150, 0.15);
    box-shadow: 0 8px 25px rgba(26, 82, 150, 0.12);
}

.lang-card:hover::before {
    transform: scaleX(1);
}

/* Color coding by proficiency */
.lang-native { --lang-color: #10b981; }
.lang-fluent { --lang-color: #3b82f6; }
.lang-intermediate { --lang-color: #f59e0b; }

.lang-native .ring-fill { stroke: #10b981; }
.lang-fluent .ring-fill { stroke: #3b82f6; }
.lang-intermediate .ring-fill { stroke: #f59e0b; }

.lang-native .lang-badge { background: #10b981; }
.lang-fluent .lang-badge { background: #3b82f6; }
.lang-intermediate .lang-badge { background: #f59e0b; }

/* Circular Progress Ring */
.lang-ring {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.lang-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
    stroke-linecap: round;
}

.ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.lang-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-code {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* Language Info */
.lang-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lang-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.lang-level {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 500;
}

.lang-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .languages {
        padding: 2rem;
    }

    .lang-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .lang-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .lang-card:last-child {
        grid-column: span 2;
        max-width: 300px;
        margin: 0 auto;
    }

    .lang-ring {
        width: 80px;
        height: 80px;
    }

    .lang-icon {
        width: 50px;
        height: 50px;
    }

    .lang-code {
        font-size: 1rem;
    }

    .lang-info {
        align-items: center;
    }

    .lang-name {
        font-size: 1.2rem;
    }

    .lang-level {
        font-size: 0.85rem;
    }

    .lang-badge {
        position: static;
        margin-top: 0.5rem;
        display: inline-block;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .languages {
        padding: 2.25rem;
    }

    .lang-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .lang-card {
        padding: 1.75rem 1.5rem;
    }

    .lang-card:last-child {
        grid-column: span 1;
        max-width: none;
        margin: 0;
    }

    .lang-ring {
        width: 85px;
        height: 85px;
    }

    .lang-icon {
        width: 55px;
        height: 55px;
    }

    .lang-code {
        font-size: 1.1rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span:first-child {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-item a, .contact-item span:last-child {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-socials a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-white);
}

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

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

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-top {
    padding: 70px 0 50px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    color: white;
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

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

/* Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-list li a i {
    font-size: 0.8rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.footer-list li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-list li a:hover i {
    color: var(--primary);
}

/* Social & CTA */
.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 82, 150, 0.3);
}

.footer-cta {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 82, 150, 0.3);
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 82, 150, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-crafted {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-style: italic;
}

.footer-crafted i {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FLOATING CV BUTTON ===== */
.cv-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.cv-float-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 82, 150, 0.4);
    transition: var(--transition);
    position: relative;
}

.cv-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 82, 150, 0.5);
}

.cv-float-btn i {
    font-size: 1.2rem;
}

.cv-btn-text {
    font-size: 0.85rem;
}

.cv-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.cv-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cv-dropdown::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    transform: rotate(45deg);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cv-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
}

.cv-option:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.cv-option i {
    font-size: 0.9rem;
    color: var(--accent);
}

.cv-option.active-lang {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.cv-option.active-lang i {
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;
        order: -1;
    }

    .photo-img {
        width: 280px;
        height: 340px;
    }

    .orb-1 { width: 200px; height: 200px; }
    .orb-2 { width: 150px; height: 150px; }
    .orb-3 { width: 100px; height: 100px; }

    .float-stat {
        padding: 0.5rem 0.75rem;
    }

    .float-stat.stat-1 { top: 10%; left: -10px; }
    .float-stat.stat-2 { top: 45%; right: -10px; }
    .float-stat.stat-3 { bottom: 10%; left: 5%; }

    .float-num { font-size: 1.1rem; }
    .float-label { font-size: 0.7rem; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .lead-highlight {
        font-size: 1.1rem;
    }

    .domain-tags {
        gap: 0.5rem;
    }

    .domain-tag {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.featured {
        grid-column: span 2;
    }

    .skills-categories {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        padding-inline: 0.5rem;
        margin-inline: -0.5rem;
    }

    .skills-categories::-webkit-scrollbar {
        display: none;
    }

    .skills-categories .skill-category {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
        padding: 1.5rem;
    }

    .skills-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .skills-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(26, 82, 150, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .skills-dots .dot.active {
        background: var(--primary);
        width: 24px;
        border-radius: 4px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cert-item {
        padding: 1rem;
    }

    .cert-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cert-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-cards {
        display: block;
        position: relative;
        height: 400vh;
    }

    .about-card {
        position: sticky;
        top: 100px;
        height: calc(100vh - 120px);
        max-height: 500px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
        border: none;
        box-shadow: none;
        margin-bottom: 2rem;
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .about-card.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .about-card i {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .about-card h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .about-card p {
        font-size: 1rem;
        max-width: 280px;
        line-height: 1.7;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-marker {
        left: 8px;
        top: 14px;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1rem 1.25rem;
    }

    .timeline-header {
        gap: 0.6rem;
    }

    .company-logo,
    .company-logo-placeholder {
        width: 36px;
        height: 36px;
    }

    .timeline-info h3 {
        font-size: 0.95rem;
    }

    .timeline-info .role,
    .timeline-info .date {
        font-size: 0.8rem;
    }

    .timeline-details li {
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .github-card .github-preview {
        padding: 0.625rem;
    }

    .gh-mini-avatar {
        width: 36px;
        height: 36px;
    }

    .gh-mini-name {
        font-size: 0.85rem;
    }

    .gh-mini-stats {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .m-day {
        width: 5px;
        height: 5px;
    }

    .gh-mini-link {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }

    .footer-brand-header {
        justify-content: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-location {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .footer-list li a {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-cta {
        align-self: center;
        width: fit-content;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        display: none;
    }

    .cv-float {
        bottom: 1rem;
        right: 1rem;
    }

    .footer-top {
        padding: 50px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-heading {
        font-size: 0.85rem;
    }

    .footer-list li a {
        font-size: 0.85rem;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
    }

    .footer-cta {
        width: 100%;
    }

    .cv-float-btn {
        padding: 0.6rem 1rem;
    }

    .cv-float-btn i {
        font-size: 1.1rem;
    }

    .cv-btn-text {
        font-size: 0.8rem;
    }

    .cv-dropdown {
        min-width: 140px;
    }

    .cv-option {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ===== DARK MODE SPECIFIC STYLES ===== */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-medium);
}

[data-theme="dark"] .nav-menu a:hover {
    color: var(--primary);
}

[data-theme="dark"] .hamburger span {
    background: var(--text-dark);
}

[data-theme="dark"] .lang-btn {
    background: var(--bg-medium);
    border-color: var(--border);
    color: var(--text-dark);
}

[data-theme="dark"] .lang-btn:hover {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .lang-dropdown {
    background: var(--bg-medium);
    border: 1px solid var(--border);
}

[data-theme="dark"] .hero-stats {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border);
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .float-num {
    background: linear-gradient(135deg, #f1f5f9 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .float-label {
    color: var(--text-medium);
}

[data-theme="dark"] .float-stat {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px -2px rgba(59, 130, 246, 0.15), 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Dark mode elevation enhancement */
[data-theme="dark"] .about-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .cert-item,
[data-theme="dark"] .lang-card,
[data-theme="dark"] .tech-card {
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .about-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .skill-category:hover,
[data-theme="dark"] .timeline-content:hover,
[data-theme="dark"] .cert-item:hover,
[data-theme="dark"] .lang-card:hover,
[data-theme="dark"] .tech-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .page-loader {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .loader-text {
    color: var(--text-medium);
}

[data-theme="dark"] .loader-spinner {
    border-color: rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary);
}

[data-theme="dark"] body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #f1f5f9 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero-subtitle {
    color: var(--text-medium);
}

[data-theme="dark"] .hero-description {
    color: var(--text-light);
}

[data-theme="dark"] .section-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

[data-theme="dark"] .skill-bar {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .lang-ring-bg {
    stroke: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .cert-item::before {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .footer-heading {
    color: var(--text-dark);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(59, 130, 246, 0.1);
}

/* Dark mode mobile about cards (sticky scroll animation) */
@media (max-width: 768px) {
    [data-theme="dark"] .about-card {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    }

    [data-theme="dark"] .about-card h3 {
        color: var(--text-dark);
    }

    [data-theme="dark"] .about-card p {
        color: var(--text-medium);
    }
}

[data-theme="dark"] .lang-dropdown button:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .cv-dropdown button:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Dark mode form focus states */
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Dark mode scrollbar styling */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-medium);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
