/* 
 * Main Stylesheet for Meet Solanki Portfolio
 * Version: 1.2.0 - Fixed Mobile Navigation & Complete Styles
 */

/* ===== Base Styles - Theme Variables ===== */
:root {
    /* Color Palette */
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #00f5d4;
    
    /* Dark Theme (Default) */
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --card-bg: #112240;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-accent: #64ffda;
    --text-tertiary: #a8b2d1;
    --text-muted: #8892b0;
    --heading-color: #ccd6f6;
    --light-text: #e6f1ff;
    --light-text-secondary: #8892b0;
    --border-color: #233554;
    --shadow-color: rgba(2, 12, 27, 0.7);
    --theme-toggle-bg: #1e2a47;
    --theme-toggle-icon: #ffd700;
    
    /* Utility Colors */
    --white: #ffffff;
    --black: #000000;
    --success-color: #10b981;
    --accent-light: rgba(100, 255, 218, 0.1);
    --primary-light: rgba(58, 134, 255, 0.1);
    --primary-dark: #2563eb;
    
    /* Set initial theme to dark */
    color-scheme: dark;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-text: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    --gradient-bg: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --accent-gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semi-bold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --container-padding: 20px;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Box Shadow */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* Transition */
    --transition: all 0.3s ease;
}

/* Light Theme Override */
html.light-theme,
html.light-theme *,
body.light-theme,
.light-theme {
    --bg-primary: #f8f9fa !important;
    --bg-secondary: #e9ecef !important;
    --card-bg: #ffffff !important;
    --text-primary: #2d3748 !important;
    --text-secondary: #4a5568 !important;
    --text-accent: #1e40af !important;
    --text-tertiary: #6b7280 !important;
    --text-muted: #6b7280 !important;
    --heading-color: #1a202c !important;
    --light-text: #1a202c !important;
    --light-text-secondary: #4a5568 !important;
    --border-color: #dee2e6 !important;
    --shadow-color: rgba(0, 0, 0, 0.1) !important;
    --theme-toggle-bg: #e9ecef !important;
    --theme-toggle-icon: #495057 !important;
    --accent-light: rgba(30, 64, 175, 0.1) !important;
    --primary-light: rgba(30, 64, 175, 0.1) !important;
    --accent-color: #1e40af !important;
    --primary-color: #1e40af !important;
    --primary-dark: #1e3a8a !important;
    --secondary-color: #6366f1 !important;
    --gradient-primary: linear-gradient(135deg, #1e40af, #6366f1) !important;
    --gradient-text: linear-gradient(120deg, #1e40af, #1e3a8a) !important;
    --accent-gradient: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
    color-scheme: light !important;
}

/* ===== Additional Feature Imports ===== */
@import url('interactive-demos.css');
@import url('webgl-3d.css');

/* Demo Disclaimer Styling */
.demo-disclaimer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.demo-disclaimer p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.demo-disclaimer a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.demo-disclaimer a:hover {
    color: var(--accent-color);
}

/* Section subtitle styling */
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html:not(.light-theme) {
    color-scheme: dark;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: var(--gradient-bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

html.light-theme body,
body.light-theme {
    background-color: #f8f9fa !important;
    background-image: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #2d3748 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Focus styles */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Skip to main content link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

/* Text Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    display: inline-block;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--heading-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 44px;
    backdrop-filter: blur(10px);
    will-change: transform, box-shadow;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.3);
    color: var(--white);
}

.btn-outline {
    background: rgba(58, 134, 255, 0.05);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(58, 134, 255, 0.1);
    transform: translateY(-2px);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.2);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 20px rgba(58, 134, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 134, 255, 0.4);
    color: var(--white);
}

.btn-gradient:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
    transition: all 0.1s ease;
}

.btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(58, 134, 255, 0.2);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gradient:hover::before {
    opacity: 0.8;
}

.btn-gradient span,
.btn-gradient i {
    position: relative;
    z-index: 1;
}

/* Button Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.2rem 0;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    will-change: background-color, box-shadow;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.header.scrolled {
    background-color: rgba(17, 34, 64, 0.98);
    box-shadow: 0 2px 20px rgba(2, 12, 27, 0.8);
    padding: 1rem 0;
    transform: translate3d(0, 0, 0);
}

html.light-theme .header {
    background-color: rgba(248, 249, 250, 0.95);
}

html.light-theme .header.scrolled,
body.light-theme .header.scrolled {
    background-color: rgba(248, 249, 250, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(0);
}

/* Desktop Navigation - COMPACT & ORGANIZED */
.nav-menu {
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    gap: 0.5rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

/* Primary Navigation Items */
.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(58, 134, 255, 0.1);
    transform: translateY(-1px);
}

/* Dropdown for Secondary Items */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-dropdown-toggle:hover {
    color: var(--primary-color);
    background: rgba(58, 134, 255, 0.1);
}

.nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.nav-dropdown-item:hover {
    background: rgba(58, 134, 255, 0.1);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-dropdown-item i {
    width: 16px;
    margin-right: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle Button - Modern ON/OFF Switch */
.theme-toggle {
    position: relative;
    width: 58px;
    height: 30px;
    border-radius: 30px;
    background: #374151;
    border: 2px solid #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #d1d5db;
}

.theme-toggle i {
    position: absolute;
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle .fa-moon {
    left: 8px;
    color: #9ca3af;
    opacity: 1;
}

.theme-toggle .fa-sun {
    right: 8px;
    color: #fbbf24;
    opacity: 0.4;
}

/* Light theme toggle state */
html.light-theme .theme-toggle,
body.light-theme .theme-toggle {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    border-color: #2563eb;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

html.light-theme .theme-toggle::before,
body.light-theme .theme-toggle::before {
    transform: translateY(-50%) translateX(28px);
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    border-color: #f59e0b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

html.light-theme .theme-toggle .fa-moon,
body.light-theme .theme-toggle .fa-moon {
    opacity: 0.4;
    color: #e0e7ff;
}

html.light-theme .theme-toggle .fa-sun,
body.light-theme .theme-toggle .fa-sun {
    opacity: 1;
    color: #ffffff;
}

/* ===== Mobile Navigation ===== */

/* Hide mobile menu elements on desktop */
.mobile-hamburger-menu,
.mobile-menu {
    display: none;
}

/* Desktop Navigation - Hidden on Mobile */
@media (min-width: 901px) {
    .hamburger,
    .mobile-hamburger-menu {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* ===== Mobile Navigation - UPDATED ===== */
@media (max-width: 900px) {
    .header {
        padding: 1rem 0;
    }
    
    .nav {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        z-index: 10000;
        position: relative;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .hamburger {
        display: none !important;
    }
    
    /* Mobile Hamburger Menu - ENHANCED AND VISIBLE */
    .mobile-hamburger-menu {
        display: flex !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 10000 !important;
        background: rgba(0, 99, 247, 0.95) !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: 12px !important;
        padding: 12px !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: all 0.3s ease !important;
        min-width: 60px !important;
        min-height: 60px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    html.light-theme .mobile-hamburger-menu,
    body.light-theme .mobile-hamburger-menu {
        background: rgba(100, 168, 236, 0.9) !important;
        border-color: var(--border-color) !important;
    }
    
    .hamburger-icon {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 32px !important;
        height: 32px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 4px !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: rgb(255, 37, 37) !important;
    }
    
    .hamburger-bar {
        width: 20px !important;
        height: 2px !important;
        background-color: white !important;
        margin: 2px 0 !important;
        border-radius: 1px !important;
        transition: all 0.3s ease !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Light theme hamburger bars */
    html.light-theme .hamburger-bar,
    body.light-theme .hamburger-bar {
        background-color: #1a202c !important; /* dark gray/black */
    }
    
    /* Active hamburger animation */
    .hamburger-icon.active .hamburger-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 4px) !important;
    }
    
    .hamburger-icon.active .hamburger-bar:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger-icon.active .hamburger-bar:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -4px) !important;
    }
    
    /* Mobile Menu Overlay - Professional Design */
    .mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(10, 25, 47, 0.98) !important;
        background-image: linear-gradient(135deg, rgba(10, 25, 47, 0.98) 0%, rgba(17, 34, 64, 0.98) 50%, rgba(10, 25, 47, 0.98) 100%) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        z-index: 9998 !important;
        transform: translateX(100%) !important;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 100px 20px 60px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5) !important;
        scrollbar-width: none !important;
        opacity: 0 !important;
    }
    
    /* Custom scrollbar for mobile menu */
    .mobile-menu::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .mobile-menu::-webkit-scrollbar-track {
        background: var(--bg-primary) !important;
    }
    
    .mobile-menu::-webkit-scrollbar-thumb {
        background: var(--accent-color) !important;
        border-radius: 3px !important;
    }
    
    .mobile-menu::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color) !important;
    }
    
    /* Light theme mobile menu */
    html.light-theme .mobile-menu,
    body.light-theme .mobile-menu {
        background: rgba(248, 249, 250, 0.98) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Light theme mobile menu links */
    html.light-theme .mobile-menu a,
    body.light-theme .mobile-menu a {
        color: #1a202c !important;              /* dark readable text */
        background: #7cb3e9 !important;         /* light card background */
        border: 1px solid #dee2e6 !important;   /* subtle border */
        text-shadow: none !important;           /* remove dark-style shadow */
    }
    
    html.light-theme .mobile-menu a:hover,
    html.light-theme .mobile-menu a:focus,
    body.light-theme .mobile-menu a:hover {
        background: #3eff78 !important;         /* soft hover highlight */
        color: #c0ff04 !important;              /* match your primary */
        border-color: #76ff67 !important;
    }
    body.light-theme .mobile-menu a:focus {
        background: rgba(58, 134, 255, 0.15) !important;
        color: #1a202c !important;
        border-color: rgba(58, 134, 255, 0.3) !important;
    }
    
    html.light-theme .mobile-menu a.active,
    body.light-theme .mobile-menu a.active {
        background: #1e40af !important;         /* active = solid primary */
        color: #fa8d8d !important;
        border-color: #1e40af !important;
    }
    
    .mobile-menu.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        animation: slideInFromRight 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
    }
    
    .mobile-menu ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 300px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        min-height: auto !important;
        padding-bottom: 2rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu li {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu a {
        display: flex !important;
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        color: #ffffff !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: visible !important;
        min-height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        margin-bottom: 0.5rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
        letter-spacing: 0.5px !important;
        z-index: 10 !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu a::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(58, 134, 255, 0.1), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    .mobile-menu a:hover,
    .mobile-menu a:focus {
        background: rgba(58, 134, 255, 0.25) !important;
        color: #ffffff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3) !important;
        border-color: rgba(58, 134, 255, 0.4) !important;
    }
    
    .mobile-menu a:hover::before,
    .mobile-menu a:focus::before {
        left: 100% !important;
    }
    
    .mobile-menu a.active {
        background: var(--primary-color) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        border-color: var(--primary-color) !important;
    }
    
    /* Mobile Theme Toggle Styles */
    .mobile-theme-toggle {
        margin-top: 2rem !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .theme-toggle-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        padding: 1rem 1.5rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        min-height: 48px !important;
        width: 100% !important;
        max-width: 250px !important;
    }
    
    .theme-toggle-mobile:hover {
        background: rgba(58, 134, 255, 0.25) !important;
        border-color: rgba(58, 134, 255, 0.4) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3) !important;
    }
    
    .theme-toggle-mobile i {
        font-size: 1.1rem !important;
        transition: all 0.3s ease !important;
    }
    
    .theme-toggle-mobile .fa-moon {
        display: block !important;
        opacity: 1 !important;
    }
    
    .theme-toggle-mobile .fa-sun {
        display: none !important;
        opacity: 0 !important;
    }
    
    /* Light theme mobile toggle */
    html.light-theme .mobile-theme-toggle,
    body.light-theme .mobile-theme-toggle {
        border-top-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    html.light-theme .theme-toggle-mobile,
    body.light-theme .theme-toggle-mobile {
        background: rgba(0, 0, 0, 0.05) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #1a202c !important;
    }
    
    html.light-theme .theme-toggle-mobile:hover,
    body.light-theme .theme-toggle-mobile:hover {
        background: rgba(58, 134, 255, 0.15) !important;
        border-color: rgba(58, 134, 255, 0.3) !important;
        color: #1a202c !important;
    }
    
    html.light-theme .theme-toggle-mobile .fa-moon,
    body.light-theme .theme-toggle-mobile .fa-moon {
        display: none !important;
        opacity: 0 !important;
    }
    
    html.light-theme .theme-toggle-mobile .fa-sun,
    body.light-theme .theme-toggle-mobile .fa-sun {
        display: block !important;
        opacity: 1 !important;
    }
    
    html.light-theme .theme-toggle-mobile .theme-text,
    body.light-theme .theme-toggle-mobile .theme-text {
        color: #1a202c !important;
    }
    
    .theme-toggle-mobile .theme-text {
        color: #ffffff !important;
        font-weight: 600 !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Keep other existing styles in this block */
    
    /* UPDATED About Section Styles */
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 0 1rem;
    }
    
    .about-image {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 2rem auto !important;
    }
    
    .image-wrapper {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .profile-img {
        width: 280px !important;
        height: 350px !important;
        max-width: 90vw !important;
        aspect-ratio: 4/5 !important;
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: 16px !important;
        display: block !important;
        margin: 0 auto !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
        transition: var(--transition) !important;
        border: 2px solid var(--border-color) !important;
    }
    
    /* Light theme image border */
    html.light-theme .profile-img,
    body.light-theme .profile-img {
        border-color: var(--border-color) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
    }
    
    .about-text {
        width: 100% !important;
        text-align: left !important;
        max-width: 100% !important;
    }
}

/* ===== Additional Mobile Fixes ===== */

/* Small phones */
@media (max-width: 576px) {
    .mobile-hamburger-menu {
        top: 15px !important;
        right: 15px !important;
        padding: 6px !important;
        color: black !important;
    }
    
    .hamburger-icon {
        width: 28px !important;
        height: 28px !important;
        padding: 2px !important;
    }
    
    .hamburger-bar {
        width: 18px !important;
        height: 2px !important;
        margin: 1.5px 0 !important;
    }
    
    .mobile-menu {
        padding: 70px 15px 30px 15px !important;
    }
    
    .mobile-menu a {
        font-size: 1rem !important;
        padding: 0.9rem 1.2rem !important;
    }
    
    .profile-img {
        width: 260px !important;
        height: 320px !important;
        max-width: 85vw !important;
        border-radius: 12px !important;
    }
    
    .hero {
        padding-top: 100px !important;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .mobile-hamburger-menu {
        top: 12px !important;
        right: 12px !important;
        color: black !important;

    }
    
    .hamburger-icon {
        width: 26px !important;
        height: 26px !important;
    }
    
    .hamburger-bar {
        width: 16px !important;
    }
    
    .profile-img {
        width: 240px !important;
        height: 300px !important;
        max-width: 80vw !important;
        border-radius: 10px !important;
    }
}

/* Extra small phones */
@media (max-width: 320px) {
    .profile-img {
        width: 220px !important;
        height: 280px !important;
        max-width: 75vw !important;
    }
}

/* Force hamburger visibility on all mobile devices */
@media (max-width: 900px) {
    .mobile-hamburger-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        color: black !important;

    }
    
    .hamburger-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hamburger-bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav .theme-toggle {
        display: none !important;
    }
    
    .nav-item {
        display: none !important;
    }
    
    .nav-list,
    .nav-menu {
        display: none !important;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--gradient-bg);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--light-text-secondary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: var(--bg-primary);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}

.scroll-link i {
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== About Section ===== */
.about {
    background-color: var(--bg-secondary);
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-image {
    position: relative;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: none;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper::before {
    display: none;
}

/* .profile-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: 3px solid var(--border-color);
} */

.about-text {
    max-width: 800px;
    text-align: justify;
}

.about-text .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.about-text .skill-tag {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.about-text .skill-tag:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.info-item p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.info-item span {
    color: var(--accent-color);
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

/* ===== Skills Section ===== */
.skills {
    background-color: var(--bg-primary);
    padding: 100px 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 600px;
    padding: 0 1rem;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent-color);
    font-size: 1.2em;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    margin-bottom: 0.8rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-level {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.3rem;
}

.skill-progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    position: relative;
    transition: width 1s ease-in-out;
    width: 0;
}

/* Animation for skill bars */
@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

.skills.animate .skill-progress {
    animation: slideIn 1.5s ease-in-out forwards;
}

/* ===== Experience Section ===== */
.experience {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.experience-container {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-color);
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-company {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-description {
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.experience-description p {
    margin-bottom: 1rem;
}

.experience-description ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.experience-description li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: none;
    padding-left: 1.5rem;
}

.experience-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.experience-skill {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== Projects Section ===== */
.projects {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    /* Removed scaling animation for YouTube videos */
    transform: none;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tag {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--text-primary);
}

.project-link i {
    font-size: 1rem;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--bg-secondary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.contact .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    margin: 2.5rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: translateY(-5px);
}

.contact-details h4 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
    color: var(--text-primary);
}

.contact-details a, 
.contact-details span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.contact-form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.error .error-message {
    opacity: 1;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff6b6b;
}

.form-success,
.form-error {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.3s ease forwards;
}

.form-success {
    background: rgba(40, 199, 111, 0.1);
    border: 1px solid rgba(40, 199, 111, 0.2);
    color: #28c76f;
}

.form-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.form-success i,
.form-error i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.form-success p,
.form-error p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    height: 400px;
}

.map {
    width: 100%;
    height: 100%;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-about {
    padding-right: 2rem;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about-text {
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer .social-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.footer .social-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.footer-heading {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 280px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.newsletter-form .btn {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color) !important;
    color: white !important;
    border: 2px solid var(--primary-color) !important;
}

.newsletter-form .btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.newsletter-form .btn i {
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ===== Education Section ===== */
.education {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.education-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    opacity: 0.2;
}

.education-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
    z-index: 1;
}

.education-details h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-degree {
    display: block;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-date {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-institution {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Certifications Carousel ===== */
.certifications {
    background-color: var(--bg-secondary);
    padding: 100px 0;
}

.certifications-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.certifications-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(380px, 420px);
    gap: 2rem;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2.5rem 1.5rem;
    margin: 0 -1.5rem;
}

.certifications-carousel::-webkit-scrollbar {
    display: none;
}

.certification-card {
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-height: 480px;
    height: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-card .card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certification-card .card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.certification-card .icon-wrapper {
    min-width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--gradient-primary);
}

.certification-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.certification-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.certification-card:hover h3 {
    color: var(--primary-color);
}

.certification-card .issuer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.certification-card .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.certification-card .date i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.certification-card .badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.certification-card:hover .badge {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.certification-card .credential-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
    word-break: break-all;
    background: var(--bg-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.certification-card:hover .credential-id {
    background: rgba(124, 58, 237, 0.05);
    border-left-color: var(--secondary-color);
}

.certification-card .btn-view {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    background: none;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.certification-card .btn-view::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.certification-card .btn-view:hover {
    color: var(--primary-dark);
    padding-left: 0.5rem;
}

.certification-card .btn-view:hover::before {
    width: 100%;
}

.certification-card .btn-view i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.certification-card .btn-view:hover i {
    transform: translateX(5px);
}

/* Navigation Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.carousel-control:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-control i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.carousel-control:hover i {
    transform: scale(1.2);
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== PyPI Contributions Section ===== */
.pypi-contributions {
    background-color: var(--bg-primary);
    padding: 100px 0;
}

.pypi-contributions .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.pypi-contributions .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.pypi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pypi-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pypi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pypi-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.pypi-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.pypi-title {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-primary);
    flex-grow: 1;
}

.pypi-version {
    background: rgba(58, 134, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.pypi-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.pypi-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pypi-downloads,
.pypi-stars {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pypi-downloads i,
.pypi-stars i {
    color: var(--accent-color);
}

.pypi-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.pypi-links .btn {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.pypi-links .btn i {
    font-size: 0.9rem;
}

.pypi-links .btn-outline {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.pypi-links .btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.view-more {
    text-align: center;
    margin-top: 3rem;
}

.view-more .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
}

/* ===== Developer Profiles Section ===== */
.developer-profiles {
    background-color: var(--bg-secondary);
    padding: 100px 0;
}

.developer-profiles .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.developer-profiles .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.profiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.profile-card:hover .profile-icon {
    transform: scale(1.1);
}

.profile-icon.github {
    background: linear-gradient(135deg, #24292e, #3f4448);
}

.profile-icon.stackoverflow {
    background: linear-gradient(135deg, #f48024, #f8b88a);
}

.profile-icon.pypi {
    background: linear-gradient(135deg, #3776ab, #5a9bd4);
}

.profile-icon.medium {
    background: linear-gradient(135deg, #000000, #5a5a5a);
}

.profile-title {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.profile-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-btn {
    width: 100%;
    max-width: 200px;
    margin-top: auto;
}

/* ===== Publications & Blogs Section ===== */
.publications {
    background-color: var(--bg-primary);
    padding: 100px 0;
}

.publications .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.publications .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.publications-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.publication-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.publication-type {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-type i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.publication-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.publication-authors {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    font-style: italic;
}

.publication-venue {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1rem;
    font-weight: 500;
}

.publication-abstract {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.publication-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.publication-link:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

/* ===== Services Section ===== */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--gradient-primary);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
}

.service-card .price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.service-card .btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.service-card .btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.service-card .btn-service i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-card .btn-service:hover i {
    transform: translateX(3px);
}

.service-features {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Show More Button */
.show-more-container {
    margin-top: 4rem;
    text-align: center;
    position: relative;
}

.show-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.show-more-btn:hover::before {
    opacity: 1;
}

.show-more-btn i {
    margin-left: 0.6rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.show-more-btn:hover i {
    transform: translateX(5px);
}

/* ===== Professional Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth entrance animations for sections */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section animations */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-tagline { animation-delay: 0.3s; }
.hero-text { animation-delay: 0.4s; }
.hero-cta { animation-delay: 0.5s; }
.hero-social { animation-delay: 0.6s; }

/* Card hover animations */
.project-card,
.skill-category,
.experience-item,
.certification-card,
.service-card,
.blog-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.project-card:hover,
.skill-category:hover,
.experience-item:hover,
.certification-card:hover,
.service-card:hover,
.blog-card:hover {
    animation: pulse 2s infinite;
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Social links animation */
.social-link {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.social-link:hover {
    animation: rotateIn 0.5s ease;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
}

/* Navigation link underline animation */
.nav-link::after {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Loading animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(58, 134, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* Text gradient animation */
.gradient-text {
    background: linear-gradient(270deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Typing animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Professional Animation for menu items */
.mobile-menu li {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: none;
}

.mobile-menu.active li {
    animation: menuItemFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

.mobile-menu.active li:nth-child(1) { animation-delay: 0.05s !important; }
.mobile-menu.active li:nth-child(2) { animation-delay: 0.1s !important; }
.mobile-menu.active li:nth-child(3) { animation-delay: 0.15s !important; }
.mobile-menu.active li:nth-child(4) { animation-delay: 0.2s !important; }
.mobile-menu.active li:nth-child(5) { animation-delay: 0.25s !important; }
.mobile-menu.active li:nth-child(6) { animation-delay: 0.3s !important; }

@keyframes menuItemFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Professional slide-in animation for mobile menu */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Professional fade animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Pulse animation for buttons and CTAs */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(58, 134, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 134, 255, 0);
    }
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Glow animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(58, 134, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(58, 134, 255, 0.8), 0 0 30px rgba(58, 134, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(58, 134, 255, 0.5);
    }
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Loading States ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility improvements */
.hamburger-icon:focus {
    outline: 2px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

.mobile-menu a:focus {
    outline: 2px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow-color: rgba(0, 0, 0, 0.8);
    }
    
    .hamburger-bar {
        background-color: var(--text-primary) !important;
        height: 4px !important;
    }
    
    .mobile-menu a {
        border: 1px solid var(--border-color) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .footer,
    .hero-social,
    .btn,
    .mobile-hamburger-menu,
    .mobile-menu {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* ===== Performance Optimizations ===== */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .certifications-carousel-container {
        padding: 1rem 3.5rem;
    }
}

@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .education-item {
        padding-left: 60px;
    }
    
    .education-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding: 0;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .profiles-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .profile-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat {
        flex: 1;
        min-width: 100px;
    }
    
    .publications-container {
        grid-template-columns: 1fr;
    }
    
    .publication-card {
        padding: 1.5rem;
    }
    
    .publication-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .publication-links {
        width: 100%;
        justify-content: flex-start;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .certifications-carousel-container {
        padding: 1rem 2rem;
    }
    
    .certification-card {
        min-height: 260px;
    }
    
    .carousel-control {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0;
        padding: 0 1rem;
    }
    
    .about-image, .image-wrapper {
        width: auto;
        max-width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 1.5rem auto;
        background: none;
        box-shadow: none;
        border-radius: 0;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .profile-img {
        width: 220px !important;
        height: 220px !important;
        max-width: 95vw;
        max-height: 220px;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: top center;
        border-radius: 50%;
        display: block;
        margin: 0 auto;
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        transition: var(--transition);
    }
    
    .about-text {
        width: 100%;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .education-item {
        padding-left: 50px;
    }
    
    .education-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .education-details h3 {
        font-size: 1.25rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .profile-img {
        width: 350px !important;
        height: 350px !important;
        max-width: 90vw !important;
        max-height: 90vw !important;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: center center;
        border-radius: 0 !important;
        display: block;
        margin: 0 auto 2rem auto !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        transition: var(--transition);
    }
    
    .show-more-btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .certifications-carousel-container {
        padding: 1rem 1.5rem;
    }
    
    .certification-card {
        min-height: 260px;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .carousel-control.prev {
        left: 0.25rem;
    }
    
    .carousel-control.next {
        right: 0.25rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
    
    .certification-card .card-header {
        flex-direction: column;
    }
    
    .certification-card .icon-wrapper {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .profile-img {
        width: 95vw !important;
        max-width: 350px !important;
        height: auto !important;
        border-radius: 0 !important;
        margin: 0 auto 2rem auto !important;
        display: block;
        object-fit: cover;
        object-position: center center;
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        transition: var(--transition);
    }
}

/* Fix for Firefox scrollbar appearing briefly */
@-moz-document url-prefix() {
    .certifications-carousel {
        scrollbar-width: none;
    }
}

/* Smooth scrolling for WebKit browsers */
.certifications-carousel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Fix for iOS momentum scrolling */
@supports (-webkit-touch-callout: none) {
    .certifications-carousel {
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .header.scrolled {
        background-color: rgba(17, 34, 64, 0.98);
        backdrop-filter: none;
    }
    
    html.light-theme .header.scrolled,
    body.light-theme .header.scrolled {
        background-color: rgba(248, 249, 250, 0.98) !important;
    }
}

/* Additional fixes for backdrop-filter issues */
@supports (backdrop-filter: blur(10px)) {
    .header.scrolled {
        background-color: rgba(17, 34, 64, 0.85);
    }
    
    html.light-theme .header.scrolled,
    body.light-theme .header.scrolled {
        background-color: rgba(248, 249, 250, 0.85) !important;
    }
}

/* Fix for Safari-specific issues */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .header.scrolled {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
}

/* Mobile menu improvements for better touch experience */
@media (max-width: 900px) {
    .mobile-menu a {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Additional mobile optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .social-link:hover,
    .nav-link:hover,
    .project-card:hover,
    .skill-category:hover,
    .experience-item:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Ensure proper z-index stacking */
.header {
    z-index: 1000;
}

.mobile-hamburger-menu {
    z-index: 9999;
    color: black !important;

}

.mobile-menu {
    z-index: 9998;
}

/* Final mobile menu touch improvements */
.mobile-menu {
    touch-action: pan-y !important;
}

.hamburger-icon {
    touch-action: manipulation !important;
}

/* Prevent text selection on interactive elements */
.hamburger-icon,
.mobile-menu a,
.btn,
.nav-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Ensure hamburger bars are always visible */
.hamburger-bar {
    background-color: white !important;
    display: block !important;
    opacity: 1 !important;
}


/* Final mobile navigation fixes */
@media (max-width: 900px) {
    .nav-item {
        display: none !important;
    }
    
    .theme-toggle {
        display: none !important;
    }
}

/* Ensure mobile menu is properly hidden on desktop */
@media (min-width: 901px) {
    .mobile-menu,
    .mobile-hamburger-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        color: black !important;

    }
}

/* Final accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .hamburger-icon,
    .hamburger-bar {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== Blog Styles ===== */
.blog-hero {
    min-height: 60vh;
    padding-top: 120px;
}

.blog-posts {
    background-color: var(--bg-secondary);
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.blog-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-date,
.blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-date i,
.blog-read-time i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-read-more:hover {
    color: var(--accent-color);
    gap: 0.8rem;
}

.blog-read-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-dots {
    color: var(--text-secondary);
    padding: 0 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0a192f;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-form input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    color: #0a192f;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    background: var(--primary-color) !important;
    color: white !important;
    border: 2px solid var(--primary-color) !important;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.newsletter-form .btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
        padding-top: 100px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-pagination {
        gap: 0.3rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-text h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-tags {
        gap: 0.3rem;
    }
    
    .blog-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .newsletter-text h3 {
        font-size: 1.3rem;
    }
    
    .newsletter-text p {
        font-size: 1rem;
    }
}

/* ===== Notification System ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 320px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border-left: 4px solid currentColor;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: white;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.95) 0%, 
        rgba(21, 128, 61, 0.95) 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
    color: white;
}

.notification-warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.95) 0%, 
        rgba(180, 83, 9, 0.95) 100%);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.95) 0%, 
        rgba(29, 78, 216, 0.95) 100%);
    color: white;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.notification-content span {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: -0.25rem;
    margin-right: -0.5rem;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
}

.notification.entering {
    animation: slideInRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.notification.leaving {
    animation: slideOutRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Multiple notifications stacking */
.notification:nth-child(2) {
    top: 90px;
}

.notification:nth-child(3) {
    top: 160px;
}

.notification:nth-child(4) {
    top: 230px;
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
    .notification {
        position: fixed;
        top: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
        opacity: 0;
    }
    
    .notification.show {
        transform: translateY(0);
        opacity: 1;
    }
    
    .notification:nth-child(2) {
        top: 90px;
    }
    
    .notification:nth-child(3) {
        top: 160px;
    }
    
    .notification:nth-child(4) {
        top: 230px;
    }
}

@media (max-width: 480px) {
    .notification {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .notification-content i {
        font-size: 1.1rem;
    }
    
    .notification-content span {
        font-size: 0.85rem;
    }
}

/* ===== Enhanced Error Modals ===== */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.error-modal.show {
    display: flex;
    opacity: 1;
}

.error-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(239, 68, 68, 0.2);
    position: relative;
}

.error-modal.show .error-modal-content {
    transform: scale(1) translateY(0);
}

.error-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(185, 28, 28, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 2.5rem;
    border: 3px solid rgba(239, 68, 68, 0.2);
}

.error-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-modal-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.error-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-modal-actions .btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Loading overlay for better error handling */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(58, 134, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* API Error Specific Styles */
.api-error-details {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.api-error-code {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Success modal for positive feedback */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-modal.show {
    display: flex;
    opacity: 1;
}

.success-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(34, 197, 94, 0.2);
}

.success-modal.show .success-modal-content {
    transform: scale(1) translateY(0);
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(21, 128, 61, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 2.5rem;
    border: 3px solid rgba(34, 197, 94, 0.2);
}

/* Mobile adjustments for modals */
@media (max-width: 768px) {
    .error-modal-content,
    .success-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .error-modal-icon,
    .success-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .error-modal-title {
        font-size: 1.25rem;
    }
    
    .error-modal-actions {
        flex-direction: column;
    }
    
    .error-modal-actions .btn {
        width: 100%;
    }
}

/* ===== Interactive Demos Section - Enhanced for Light Mode ===== */
.interactive-demos {
    background-color: var(--bg-secondary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.interactive-demos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(58, 134, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.interactive-demos .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.demo-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.demo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.demo-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.demo-container:hover::before {
    opacity: 1;
}

/* Light theme improvements */
html.light-theme .demo-container,
body.light-theme .demo-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(30, 64, 175, 0.2) !important;
}

html.light-theme .demo-container:hover,
body.light-theme .demo-container:hover {
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15) !important;
    border-color: var(--primary-color) !important;
}

.demo-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.demo-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-right: 1.5rem;
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.3);
    transition: transform 0.3s ease;
}

.demo-container:hover .demo-icon {
    transform: rotate(5deg) scale(1.1);
}

.demo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced text glow for better light mode visibility */
.demo-title {
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.3),
                 0 0 20px rgba(58, 134, 255, 0.2),
                 0 0 30px rgba(58, 134, 255, 0.1);
}

/* Light mode text glow adjustment - softer shadow */
html.light-theme .demo-title,
body.light-theme .demo-title {
    text-shadow: 0 2px 8px rgba(30, 64, 175, 0.15),
                 0 4px 16px rgba(30, 64, 175, 0.1) !important;
}

.demo-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.demo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.demo-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Enhanced input containers - ENLARGED for light mode */
.demo-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    min-height: 50px;
    resize: vertical;
}

/* Light mode input improvements - LARGER and more prominent */
html.light-theme .demo-input,
body.light-theme .demo-input {
    padding: 1.4rem 1.8rem !important;
    font-size: 1.15rem !important;
    min-height: 56px !important;
    border: 2px solid rgba(30, 64, 175, 0.2) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.demo-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.15),
                inset 0 2px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Enhanced focus state for light mode */
html.light-theme .demo-input:focus,
body.light-theme .demo-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.2) !important;
    inset: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

.demo-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Light mode textarea enhancement */
html.light-theme .demo-textarea,
body.light-theme .demo-textarea {
    min-height: 140px !important;
}

.demo-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1.5 4.5h9z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    cursor: pointer;
}

/* Light mode select enhancement */
html.light-theme .demo-select,
body.light-theme .demo-select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 12 12"><path fill="%231e40af" d="M6 9L1.5 4.5h9z"/></svg>') !important;
    background-size: 14px !important;
}

.demo-button {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 50px;
}

/* Enhanced button for light mode */
html.light-theme .demo-button,
body.light-theme .demo-button {
    padding: 1.2rem 2.4rem !important;
    font-size: 1.15rem !important;
    min-height: 56px !important;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25) !important;
}

.demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.demo-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.demo-button:hover::before {
    left: 100%;
}

.demo-button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.demo-output {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    min-height: 100px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

/* Enhanced output for light mode */
html.light-theme .demo-output,
body.light-theme .demo-output {
    background: rgba(248, 249, 250, 0.8) !important;
    border: 2px solid rgba(30, 64, 175, 0.2) !important;
    padding: 1.8rem !important;
    min-height: 120px !important;
}

.demo-output::before {
    content: 'Output:';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.demo-output-content {
    margin-top: 1rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Glowing text effects - Enhanced for light mode */
.glow-text {
    text-shadow: 0 0 10px var(--accent-color),
                 0 0 20px var(--accent-color),
                 0 0 30px var(--accent-color),
                 0 0 40px var(--accent-color);
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* Light mode glow adjustment - subtle and readable */
html.light-theme .glow-text,
body.light-theme .glow-text {
    text-shadow: 0 0 8px rgba(30, 64, 175, 0.6) !important;
                 /* 0 0 16px rgba(30, 64, 175, 0.4) !important,
                 0 2px 4px rgba(30, 64, 175, 0.2) !important; */
    animation: textGlowLight 2s ease-in-out infinite alternate !important;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px var(--accent-color),
                     0 0 20px var(--accent-color),
                     0 0 30px var(--accent-color),
                     0 0 40px var(--accent-color);
    }
    to {
        text-shadow: 0 0 5px var(--accent-color),
                     0 0 10px var(--accent-color),
                     0 0 15px var(--accent-color),
                     0 0 20px var(--accent-color);
    }
}

/* Light mode glow animation - softer pulsing */
@keyframes textGlowLight {
    from {
        text-shadow: 0 0 8px rgba(30, 64, 175, 0.6),
                     0 0 16px rgba(30, 64, 175, 0.4),
                     0 2px 4px rgba(30, 64, 175, 0.2);
    }
    to {
        text-shadow: 0 0 12px rgba(30, 64, 175, 0.8),
                     0 0 24px rgba(30, 64, 175, 0.5),
                     0 2px 6px rgba(30, 64, 175, 0.3);
    }
}

.demo-features {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.demo-features h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Demo loading states */
.demo-loading {
    position: relative;
    pointer-events: none;
}

.demo-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(58, 134, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Interactive demo responsive adjustments */
@media (max-width: 768px) {
    .demos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-container {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .demo-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .demo-title {
        font-size: 1.3rem;
    }
    
    .demo-input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    /* Maintain larger inputs on mobile for light mode */
    html.light-theme .demo-input,
    body.light-theme .demo-input {
        padding: 1.2rem 1.5rem !important;
        font-size: 1.1rem !important;
        min-height: 52px !important;
    }
    
    .demo-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
    
    html.light-theme .demo-button,
    body.light-theme .demo-button {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 52px !important;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .demo-container {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .demo-title {
        font-size: 1.2rem;
    }
    
    .demo-input {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Ensure good mobile experience in light mode */
    html.light-theme .demo-input,
    body.light-theme .demo-input {
        padding: 1rem 1.2rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    
    .demo-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    html.light-theme .demo-button,
    body.light-theme .demo-button {
        padding: 0.9rem 1.8rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    
    .demo-output {
        padding: 1.2rem;
    }
    
    html.light-theme .demo-output,
    body.light-theme .demo-output {
        padding: 1.5rem !important;
        min-height: 100px !important;
    }
}

/* Special effects for interactive elements */
.demo-container.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.3);
}

.demo-input.success {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.demo-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Light mode success/error states */
html.light-theme .demo-input.success,
body.light-theme .demo-input.success {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
}

html.light-theme .demo-input.error,
body.light-theme .demo-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

/* Demo result animations */
.demo-result {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.demo-result.show {
    opacity: 1;
    transform: translateY(0);
}

/* Particle effects for interactive demos */
.demo-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 4s linear infinite;
}

/* Light mode particles - more subtle */
html.light-theme .particle,
body.light-theme .particle {
    background: var(--primary-color) !important;
    opacity: 0.3 !important;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Light mode float animation - gentler movement */
html.light-theme .particle,
body.light-theme .particle {
    animation: floatLight 4s linear infinite !important;
}

@keyframes floatLight {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* End of CSS */