/* ==================== CSS Variables ==================== */
:root {
    /* Light Theme Colors */
    --color-primary: #0d9488;
    --color-secondary: #0f766e;
    --color-accent: #14b8a6;
    --color-navy: #1e3a8a;
    --color-dark-navy: #1e293b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    --gradient-orb-1: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, rgba(30, 58, 138, 0.12) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    --gradient-orb-1: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, rgba(30, 58, 138, 0.3) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
}

[data-theme="dark"] .gradient-orb {
    opacity: 0.8;
}

[data-theme="dark"] .particle {
    opacity: 0.6;
}

[data-theme="dark"] .wave {
    opacity: 0.2;
}

[data-theme="dark"] .shape {
    opacity: 0.15;
    border-color: var(--color-accent);
}

/* ==================== 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;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ==================== Animated Background ==================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    opacity: 0.6;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: var(--gradient-orb-1);
    top: -200px;
    right: -200px;
    animation: float-1 25s infinite, pulse 8s infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--gradient-orb-2);
    bottom: -150px;
    left: -150px;
    animation: float-2 30s infinite, pulse 10s infinite 2s;
}

.orb-3 {
    width: 550px;
    height: 550px;
    background: var(--gradient-orb-3);
    top: 40%;
    left: 50%;
    animation: float-3 35s infinite, pulse 12s infinite 4s;
}

.orb-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    top: 60%;
    right: 20%;
    animation: float-4 28s infinite, pulse 9s infinite 1s;
}

.orb-5 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
    bottom: 30%;
    right: 10%;
    animation: float-5 32s infinite, pulse 11s infinite 3s;
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: particle-float 15s infinite ease-in-out;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.particle-2 {
    top: 40%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.particle-3 {
    top: 60%;
    left: 50%;
    animation-duration: 20s;
    animation-delay: 4s;
}

.particle-4 {
    top: 80%;
    left: 70%;
    animation-duration: 25s;
    animation-delay: 1s;
}

.particle-5 {
    top: 30%;
    left: 80%;
    animation-duration: 19s;
    animation-delay: 3s;
}

.particle-6 {
    top: 50%;
    left: 20%;
    animation-duration: 23s;
    animation-delay: 5s;
}

.particle-7 {
    top: 70%;
    left: 40%;
    animation-duration: 21s;
    animation-delay: 2.5s;
}

.particle-8 {
    top: 90%;
    left: 60%;
    animation-duration: 24s;
    animation-delay: 4.5s;
}

/* Wave Effects */
.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 40%;
    opacity: 0.15;
}

.wave-1 {
    background: linear-gradient(45deg, transparent, var(--color-primary), transparent);
    top: -100%;
    left: -50%;
    animation: wave-rotate 40s linear infinite;
}

.wave-2 {
    background: linear-gradient(-45deg, transparent, var(--color-navy), transparent);
    bottom: -100%;
    right: -50%;
    animation: wave-rotate 50s linear infinite reverse;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border: 2px solid var(--color-primary);
    opacity: 0.1;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 25%;
    border-radius: 30%;
    animation: shape-rotate 30s linear infinite, shape-float 8s ease-in-out infinite;
}

.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 30%;
    border-radius: 20%;
    animation: shape-rotate 35s linear infinite reverse, shape-float 10s ease-in-out infinite 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 15%;
    transform: rotate(45deg);
    animation: shape-rotate 25s linear infinite, shape-float 12s ease-in-out infinite 4s;
}

/* Animations */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-120px, 60px) scale(1.1); }
    50% { transform: translate(80px, -100px) scale(0.9); }
    75% { transform: translate(60px, 80px) scale(1.05); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -80px) scale(1.15); }
    66% { transform: translate(-70px, 60px) scale(0.95); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    33% { transform: translate(-40%, -60%) scale(1.2) rotate(120deg); }
    66% { transform: translate(-60%, -40%) scale(0.9) rotate(240deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-90px, 70px) scale(1.1); }
    60% { transform: translate(110px, -50px) scale(0.95); }
}

@keyframes float-5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(80px, 90px) scale(1.15); }
    80% { transform: translate(-60px, -70px) scale(0.9); }
}

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

@keyframes particle-float {
    0%, 100% { 
        transform: translate(0, 0); 
        opacity: 0.4;
    }
    25% { 
        transform: translate(100px, -150px); 
        opacity: 0.6;
    }
    50% { 
        transform: translate(-80px, -300px); 
        opacity: 0.3;
    }
    75% { 
        transform: translate(150px, -200px); 
        opacity: 0.5;
    }
}

@keyframes wave-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shape-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shape-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
}

/* ==================== Container ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== Header & Navigation ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.dropdown-icon {
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--bg-tertiary);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background: var(--bg-secondary);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-link {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(15deg);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==================== Main Content ==================== */
.main-content {
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 1.5rem;
    }

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

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        border: none;
        background: var(--bg-secondary);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Optimize animations for mobile */
    .gradient-orb {
        filter: blur(60px);
    }
    
    .orb-1, .orb-2, .orb-3, .orb-4, .orb-5 {
        width: 400px !important;
        height: 400px !important;
    }
    
    .particle {
        display: none;
    }
    
    .wave {
        opacity: 0.08;
    }
    
    .shape {
        display: none;
    }
}
* Markdown Headers Fix */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}


h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e2e8f0; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }
article h1, article h2, article h3,
.content h1, .content h2, .content h3 {
    color: #1e293b;
}
ul, ol { margin: 1rem 0; padding-left: 2rem; }
li { margin: 0.5rem 0; line-height: 1.8; }
p { margin: 1rem 0; line-height: 1.8; }
strong { font-weight: 700; }
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}
/* === MARKDOWN CONTENT STYLES - WITH SMALLER HEADERS === */
/* These styles ensure markdown headers render properly with smaller sizes */

.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.list-content h1,
.list-content h2,
.list-content h3,
.list-content h4,
.list-content h5,
.list-content h6 {
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: var(--text-primary) !important;
}

.section-content h1,
.article-content h1,
.list-content h1 {
    font-size: 1.75rem !important;  /* Reduced from 2.5rem */
    margin-top: 0 !important;
}

.section-content h2,
.article-content h2,
.list-content h2 {
    font-size: 1.5rem !important;  /* Reduced from 2rem */
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--bg-tertiary) !important;
}

.section-content h3,
.article-content h3,
.list-content h3 {
    font-size: 1.25rem !important;  /* Reduced from 1.5rem */
}

.section-content h4,
.article-content h4,
.list-content h4 {
    font-size: 1.1rem !important;  /* Reduced from 1.25rem */
}

.section-content h5,
.article-content h5,
.list-content h5 {
    font-size: 1rem !important;  /* Reduced from 1.1rem */
}

.section-content h6,
.article-content h6,
.list-content h6 {
    font-size: 0.95rem !important;  /* Reduced from 1rem */
}

/* Also style paragraphs and lists properly */
.section-content p,
.article-content p,
.list-content p {
    margin: 1rem 0 !important;
    line-height: 1.8 !important;
}

.section-content ul,
.section-content ol,
.article-content ul,
.article-content ol,
.list-content ul,
.list-content ol {
    margin: 1rem 0 !important;
    padding-left: 2rem !important;
}

.section-content li,
.article-content li,
.list-content li {
    margin: 0.5rem 0 !important;
    line-height: 1.8 !important;
}

.section-content strong,
.article-content strong,
.list-content strong {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .section-content h1,
    .article-content h1,
    .list-content h1 {
        font-size: 1.5rem !important;  /* Reduced from 2rem */
    }
    
    .section-content h2,
    .article-content h2,
    .list-content h2 {
        font-size: 1.35rem !important;  /* Reduced from 1.75rem */
    }
    
    .section-content h3,
    .article-content h3,
    .list-content h3 {
        font-size: 1.15rem !important;  /* Reduced from 1.35rem */
    }
}
/* ==================== Floating Contact Buttons ==================== */

.floating-contact-buttons {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    transition: transform 0.3s ease;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    border: none;
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contact-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
}

/* LinkedIn Button */
.linkedin-btn {
    background: linear-gradient(135deg, #0077B5, #00669C);
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #00669C, #005582);
}

/* Toggle Button - ALWAYS VISIBLE */
.toggle-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    order: -1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    transform: scale(1) !important;
    position: relative !important;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-navy)) !important;
}

.toggle-btn svg {
    width: 24px;
    height: 24px;
}

/* Hidden state - ONLY hide WhatsApp and LinkedIn */
.floating-contact-buttons.hidden .whatsapp-btn {
    transform: scale(0) translateY(20px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.floating-contact-buttons.hidden .linkedin-btn {
    transform: scale(0) translateY(20px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Icon rotation for toggle button */
.floating-contact-buttons.hidden .toggle-btn svg {
    transform: rotate(0deg);
}

.floating-contact-buttons:not(.hidden) .toggle-btn svg {
    transform: rotate(45deg);
}

/* Tooltip on hover */
.contact-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--bg-tertiary);
}

.contact-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-contact-buttons {
        bottom: 1rem !important;
        right: 1rem !important;
    }
    
    .contact-btn {
        width: 50px;
        height: 50px;
    }
    
    .contact-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* Hide tooltips on mobile */
    .contact-btn::before {
        display: none;
    }
}

/* Pulse animation for attention */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    opacity: 0.6;
    z-index: -1;
}