/* Tajawal font loaded from Google Fonts */

/* Modern CSS Custom Properties */
:root {
    /* Color System */
    --primary-color: #10c5cb;
    --primary-hover: #0ea5ab;
    --primary-light: #e0f7f8;
    --secondary-color: #0de4b6;
    --secondary-hover: #0bc49a;
    --secondary-light: #d4fef0;
    
    /* Background Colors */
    --background-color: #ffffff;
    --background-secondary: #f8f9fa;
    --background-tertiary: #f1f3f5;
    
    /* Text Colors */
    --text-color: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #ffffff;
    
    /* Card & Surface */
    --card-bg: #ffffff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --card-border: #e9ecef;
    --card-radius: 16px;
    
    /* Borders */
    --border-color: #dee2e6;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    
    /* Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography */
    --font-family: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Footer */
    --footer-bg-start: #1a1a1a;
    --footer-bg-end: #2d2d2d;
    --footer-text-color: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

.dark-mode {
    /* Color System */
    --primary-color: #0de4b6;
    --primary-hover: #0bc49a;
    --primary-light: #1a3d35;
    --secondary-color: #3fc7da;
    --secondary-hover: #2db3c5;
    --secondary-light: #1a3a3f;
    
    /* Background Colors */
    --background-color: #0f1419;
    --background-secondary: #1a1f24;
    --background-tertiary: #252a2f;
    
    /* Text Colors */
    --text-color: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    
    /* Card & Surface */
    --card-bg: #1a1f24;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    --card-border: #2d3439;
    --card-radius: 16px;
    
    /* Borders */
    --border-color: #2d3439;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    
    /* Glassmorphism */
    --glass-bg: rgba(26, 31, 36, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Footer */
    --footer-bg-start: #0d1117;
    --footer-bg-end: #161b22;
    --footer-text-color: #f8f9fa;
}

/* Modern Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color var(--transition-base), color var(--transition-base);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-normal);
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--text-light);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Modern Navbar Styles */
.navbar {
    transition: all var(--transition-base);
    background-color: var(--card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

.navbar-brand {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color) !important;
    transition: all var(--transition-base);
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-base);
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: var(--font-weight-semibold);
    background-color: var(--primary-light);
}

.nav-link.active::before {
    width: 80%;
}

/* Hero Section */
.hero-section {
    padding-top: 76px;
    background: var(--background-color);
}

/* Modern Card Styles */
.card {
    position: relative;
    transition: all var(--transition-base);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    color: var(--text-color);
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.card-img-top {
    transition: transform var(--transition-slow);
    width: 100%;
    height: auto;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Team Member Cards */
.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Project Cards */
.project-card img {
    height: 200px;
    object-fit: cover;
}

/* Project Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header, .modal-footer {
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    color: var(--primary-color);
    font-weight: bold;
}

#projectFeatures li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

#projectFeatures li i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

#projectTechnologies .badge {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background-color: var(--primary-color);
    font-weight: 500;
}

.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Dark Mode Toggle & Language Switcher */
.theme-toggle, .lang-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Icons Styles */
.fas, .far, .fab, .icon {
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .fas, 
.card:hover .far, 
.card:hover .fab,
.card:hover .icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Feature Icons */
.feature-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Social Icons */
.social-links .fas,
.social-links .fab {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links a:hover .fas,
.social-links a:hover .fab {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Social Links */
.social-links a {
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Modern Button Styles */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    line-height: 1.5;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    overflow: hidden;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(16, 197, 203, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 197, 203, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 197, 203, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(16, 197, 203, 0);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 197, 203, 0.3);
}

.btn-outline-primary:active {
    transform: translateY(0);
}

/* Modern Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    border-radius: var(--border-radius-xl);
}

/* Glassmorphism Button */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

/* Modern Form Controls */
.form-control {
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 197, 203, 0.1);
    background-color: var(--background-color);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control:disabled {
    background-color: var(--background-secondary);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modern Input Group */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-left: -2px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

/* Modern Section Spacing */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* Modern Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .enhanced-hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }
    
    .enhanced-hero .lead {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .enhanced-hero .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        min-width: 180px;
    }
    
    
    .shape {
        display: none;
    }
    
    .shape-1, .shape-3 {
        display: block;
        width: 80px;
        height: 80px;
    }
    
    .floating-icon {
        display: none;
    }
    
    .floating-icon:first-of-type {
        display: block;
        font-size: 1.5rem !important;
    }
    
    /* Mobile background optimization */
    .enhanced-hero {
        background: 
            linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 25%, rgba(88, 210, 200, 0.95) 50%, rgba(32, 201, 151, 0.95) 75%, rgba(23, 162, 184, 0.95) 100%),
            url('images/hero-background.svg');
        background-size: 400% 400%, cover;
        background-position: center, center;
    }
}

/* Modern Animation Classes */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-in {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger Animation Delays */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Footer Styles */
footer {
    background: linear-gradient(135deg, var(--footer-bg-start, #1a1a1a) 0%, var(--footer-bg-end, #2d2d2d) 100%);
    color: var(--footer-text-color, #ffffff);
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Footer text colors that respond to theme */
footer .text-white,
footer a.text-white {
    color: var(--footer-text-color, #ffffff) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.dark-mode footer .text-muted {
    color: rgba(248, 249, 250, 0.6) !important;
}

/* Bootstrap RTL Support for Blog Pages */
.blog-page .navbar {
    direction: rtl;
}

.blog-page .navbar-nav {
    direction: rtl;
}

.blog-page .navbar-brand {
    direction: rtl;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* Language Toggle Button */
.lang-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Fixed Navbar Spacing for Blog Pages */
.blog-page body {
    padding-top: 80px;
}

/* Dark Mode Styles for Blog Pages */
.blog-page[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --light-text: #cccccc;
    --light-bg: #2d2d2d;
    --border-color: #404040;
}

.blog-page[data-theme="dark"] .navbar {
    background-color: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color);
}

.blog-page[data-theme="dark"] .navbar-brand,
.blog-page[data-theme="dark"] .nav-link {
    color: var(--text-color) !important;
}

.blog-page[data-theme="dark"] .navbar-toggler {
    border-color: var(--border-color);
}

.blog-page[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h5 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section ul li a {
    transition: all 0.3s ease;
    position: relative;
    padding-right: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(-5px);
}

.footer-section ul li a i {
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover i {
    opacity: 1;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text-color, #ffffff);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
}

.social-links .social-link:hover {
    background: var(--primary-color);
    color: var(--footer-text-color, #ffffff);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 197, 203, 0.3);
    border-color: var(--primary-color);
}

.newsletter .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter .form-control {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text-color, #ffffff);
    padding: 0.75rem 1rem;
}

.newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    box-shadow: none;
    color: var(--footer-text-color, #ffffff);
}

.newsletter .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.newsletter .btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.stat-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.contact-info a {
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

/* WhatsApp link hover effect */
.contact-info a[href*="wa.me"]:hover {
    color: #25D366 !important;
    transform: translateX(-2px);
    transition: all 0.3s ease;
}

/* Enhanced Hero Section */
.enhanced-hero {
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 25%, rgba(88, 210, 200, 0.9) 50%, rgba(32, 201, 151, 0.9) 75%, rgba(23, 162, 184, 0.9) 100%),
        url('images/hero-background.svg');
    background-size: 400% 400%, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    animation: gradientShift 15s ease infinite;
}

.enhanced-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    z-index: 1;
    animation: float 20s ease-in-out infinite;
}

.enhanced-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
    z-index: 1;
    animation: float 25s ease-in-out infinite reverse;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
}


/* Enhanced Hero Buttons */
.enhanced-hero .btn-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: none;
    color: #667eea;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.enhanced-hero .btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.enhanced-hero .btn-light:hover::before {
    left: 100%;
}

.enhanced-hero .btn-light:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
    color: #667eea;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.enhanced-hero .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.enhanced-hero .btn-outline-light::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;
}

.enhanced-hero .btn-outline-light:hover::before {
    left: 100%;
}

.enhanced-hero .btn-outline-light:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 1);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(255, 255, 255, 0.2),
        0 5px 15px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced Hero Typography */
.enhanced-hero h1 {
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.enhanced-hero .lead {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ffffff !important;
}

/* Enhanced Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shape-1 {
    width: 140px;
    height: 140px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.shape-2 {
    width: 90px;
    height: 90px;
    top: 60%;
    right: 8%;
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.shape-3 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.shape-4 {
    width: 70px;
    height: 70px;
    top: 20%;
    right: 20%;
    animation-delay: 1s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
}

.shape-5 {
    width: 110px;
    height: 110px;
    top: 40%;
    left: 3%;
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.shape-6 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    right: 5%;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.05); 
    opacity: 0.9;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1); 
        opacity: 1;
    }
    75% { 
        transform: translateY(-15px) rotate(270deg) scale(1.05); 
        opacity: 0.9;
    }
}

/* Statistics Section */
.stats-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stats-icon {
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stats-label {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 30px;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-right: 80px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: 18px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 197, 203, 0.3);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 197, 203, 0.4);
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--card-bg);
}

.timeline-item:hover .timeline-content {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.timeline-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Enhanced Card Animations */
.card {
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
    position: relative;
    overflow: hidden;
}

.card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover .card-body::before {
    left: 100%;
}

/* Modern Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(16, 197, 203, 0.3);
}

.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Modern Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Modern Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for Stats */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


/* Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Icons Animation */
.floating-icon {
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Enhanced Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.enhanced-hero {
    animation: glow 4s ease-in-out infinite;
}

/* Particle Effect */
@keyframes particle {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle 8s linear infinite;
}

.particle:nth-child(odd) {
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.4);
}

.particle:nth-child(even) {
    animation-delay: 4s;
    background: rgba(255, 255, 255, 0.3);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Enhanced Card Backgrounds with Parallax */
.vision-card, .mission-card {
    position: relative;
    overflow: hidden;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(45deg, 
        rgba(16, 197, 203, 0.05) 0%, 
        rgba(13, 228, 182, 0.05) 50%, 
        rgba(16, 197, 203, 0.05) 100%);
    transition: all 0.3s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vision-card:hover .card-background,
.mission-card:hover .card-background {
    background: linear-gradient(45deg, 
        rgba(16, 197, 203, 0.1) 0%, 
        rgba(13, 228, 182, 0.1) 50%, 
        rgba(16, 197, 203, 0.1) 100%);
    transform: scale(1.05);
}

.vision-card:hover .card-overlay,
.mission-card:hover .card-overlay {
    opacity: 1;
}

.vision-card .card-body,
.mission-card .card-body {
    position: relative;
    z-index: 2;
}

.vision-icon, .mission-icon {
    transition: all 0.3s ease;
}

.vision-card:hover .vision-icon,
.mission-card:hover .mission-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Parallax scrolling effects */
.parallax-element {
    will-change: transform;
}

/* Modern Contact Section Styles */
.contact-section {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 197, 203, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 228, 182, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Contact Info Cards */
.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    transition: all var(--transition-base);
    position: relative;
}

.contact-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-base);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.contact-info-card:hover .contact-icon::after {
    opacity: 1;
    transform: scale(1);
}

.contact-icon.whatsapp-icon {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    color: #25D366;
}

.contact-info-card:hover .whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--text-light);
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-base);
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link:hover::after {
    width: 100%;
}

/* Contact Form Card */
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: var(--spacing-2xl);
    box-shadow: var(--card-shadow-hover);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-alert {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.1) 100%);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.contact-form .form-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    font-size: var(--font-size-base);
}

.contact-form .form-control {
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    font-size: var(--font-size-base);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 197, 203, 0.1);
    transform: translateY(-2px);
}

.contact-form .form-control.is-valid {
    border-color: #25D366;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2325D366' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.form-feedback {
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    min-height: 1.25rem;
}

.form-feedback.valid-feedback {
    color: #25D366;
}

.form-feedback.invalid-feedback {
    color: #dc3545;
}

/* Contact Submit Button */
.contact-submit-btn {
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn .btn-loading {
    display: inline-flex;
    align-items: center;
}

.contact-submit-btn.loading .btn-text {
    display: none;
}

.contact-submit-btn.loading .btn-loading {
    display: inline-flex !important;
}

/* Contact Social Links */
.contact-social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-contact-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: var(--font-size-xl);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-base);
}

.social-contact-link i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.social-contact-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 197, 203, 0.3);
}

.social-contact-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-contact-link:hover i {
    color: var(--text-light);
    transform: scale(1.2) rotate(5deg);
}

/* WhatsApp specific styling */
.social-contact-link[href*="wa.me"]:hover,
.social-contact-link[href*="whatsapp"]:hover {
    border-color: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.social-contact-link[href*="wa.me"]:hover::before,
.social-contact-link[href*="whatsapp"]:hover::before {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

/* Contact Form WhatsApp Button */
#contactForm .btn-primary,
.contact-submit-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

#contactForm .btn-primary:hover,
.contact-submit-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

#contactForm .btn-primary:active,
.contact-submit-btn:active {
    transform: translateY(-1px);
}

#contactForm .btn-primary:disabled,
.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success alert animation */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #25D366;
    color: #155724;
    animation: slideInUp 0.5s ease-out;
    border-radius: var(--border-radius);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Error States */
.contact-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.contact-form .form-control.is-valid:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
}

/* Contact Alert Animations */
.contact-alert {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section Responsive */
@media (max-width: 991px) {
    .contact-info-card {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .contact-info-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }
    
    .contact-form-card {
        padding: var(--spacing-lg);
    }
    
    .contact-form .form-label {
        font-size: var(--font-size-sm);
    }
    
    .contact-submit-btn {
        min-width: 100%;
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .social-contact-link {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    .contact-social-links {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: var(--spacing-xl) 0;
    }
    
    .contact-info-card {
        padding: var(--spacing-md);
    }
    
    .contact-form-card {
        padding: var(--spacing-md);
    }
    
    .contact-form .form-control {
        padding: 0.75rem 1rem;
        font-size: var(--font-size-sm);
    }
    
    .contact-submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: var(--font-size-base);
    }
}

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 76px;
}

.blog-hero h1 {
    color: white;
    font-size: 2.5rem;
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Featured Article */
.featured-article {
    margin-bottom: 2rem;
}

.featured-article .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.featured-article .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.featured-article .card .row {
    margin: 0;
}

.featured-article .card img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.featured-article .card-body {
    padding: 1.5rem;
}

.featured-article .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-article .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Article Cards */
.article-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Blog Sidebar */
.blog-sidebar .card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog-sidebar .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Search Input */
.blog-sidebar .input-group .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.blog-sidebar .input-group .btn {
    border-radius: 0 25px 25px 0;
}

/* Category Links */
.blog-sidebar .list-unstyled li a {
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: block;
}

.blog-sidebar .list-unstyled li a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Recent Posts */
.recent-post-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 10px;
}

.recent-post-item:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
}

/* Pagination */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
    border: none;
    color: var(--text-color);
    background: var(--card-bg);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Newsletter Form */
.newsletter .input-group .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.newsletter .input-group .btn {
    border-radius: 0 25px 25px 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .newsletter {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    
    .timeline::before {
        right: 20px;
    }
    
    .timeline-item {
        padding-right: 60px;
    }
    
    .timeline-marker {
        right: 8px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .timeline-content::before {
        right: -8px;
        border-width: 8px;
    }
}

/* Article Page Styles */
.article-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.article-meta {
    flex-wrap: wrap;
    gap: 1rem;
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.article-image img {
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #58d2c8;
    position: relative;
}

.article-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #58d2c8, #20c997);
}

.article-content h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-right: 4px solid #58d2c8;
    padding-right: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.article-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #495057;
    margin-bottom: 2rem;
}

.tags-list .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.tags-list .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-share .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.author-bio {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
}

.toc-list {
    max-height: 400px;
    overflow-y: auto;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
    display: block;
}

.toc-list a:hover {
    color: #58d2c8;
    padding-right: 0.5rem;
}

.recent-post-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item h6 {
    font-size: 0.95rem;
    line-height: 1.4;
}

.recent-post-item img {
    transition: transform 0.3s ease;
}

.recent-post-item:hover img {
    transform: scale(1.1);
}

/* Blog Page Responsive Styles */
@media (max-width: 991px) {
    /* Sidebar moves below main content on tablets */
    .col-lg-4 {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    /* Blog Hero Section */
    .blog-hero {
        padding: 80px 0 50px;
        margin-top: 76px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .blog-hero .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Featured Article - Stack on Mobile */
    .featured-article .card .row {
        flex-direction: column;
    }
    
    .featured-article .card .col-md-6 {
        width: 100%;
    }
    
    .featured-article .card img {
        min-height: 200px;
        height: auto;
    }
    
    .featured-article .card-body {
        padding: 1.25rem;
    }
    
    .featured-article .card-title {
        font-size: 1.25rem;
    }
    
    .featured-article .card-text {
        font-size: 0.9rem;
    }
    
    /* Blog Posts Grid - Single Column on Mobile */
    .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Article Cards */
    .article-card .card-img-top {
        height: 180px !important;
    }
    
    .article-card .card-body {
        padding: 1rem;
    }
    
    .article-card .card-title {
        font-size: 1.1rem;
    }
    
    .article-card .card-text {
        font-size: 0.9rem;
    }
    
    /* Sidebar - Full Width on Mobile */
    .col-lg-4 {
        margin-top: 2rem;
    }
    
    /* Sidebar Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Search Input - Blog Sidebar Only */
    .col-lg-4 .input-group {
        flex-direction: column;
    }
    
    .col-lg-4 .input-group .form-control {
        border-radius: 25px 25px 0 0 !important;
        border-right: 1px solid #dee2e6 !important;
        margin-bottom: 0.5rem;
    }
    
    .col-lg-4 .input-group .btn {
        border-radius: 0 0 25px 25px !important;
        width: 100%;
    }
    
    /* Recent Posts in Sidebar */
    .col-lg-4 .d-flex.mb-3 {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .col-lg-4 .d-flex.mb-3 img {
        margin-bottom: 0.75rem;
        margin-right: 0 !important;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-item {
        margin: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Search Results */
    .search-results h3 {
        font-size: 1.5rem;
    }
    
    /* Empty State */
    .text-center.py-5 {
        padding: 2rem 1rem !important;
    }
    
    .text-center.py-5 i {
        font-size: 2rem !important;
    }
    
    .text-center.py-5 h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .blog-hero .lead {
        font-size: 0.95rem;
    }
    
    .featured-article .card-body {
        padding: 1rem;
    }
    
    .featured-article .card-title {
        font-size: 1.1rem;
    }
    
    .article-card .card-img-top {
        height: 150px !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Article responsive styles */
@media (max-width: 768px) {
    .article-header {
        padding: 100px 0 40px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .social-share .btn {
        margin-bottom: 0.5rem;
    }
    
    .toc-list {
        max-height: 200px;
    }
}

/* Dark mode for article page */
[data-theme="dark"] .article-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

[data-theme="dark"] .article-content h2 {
    color: #ecf0f1;
}

[data-theme="dark"] .article-content h3 {
    color: #bdc3c7;
}

[data-theme="dark"] .article-content h4 {
    color: #95a5a6;
}

[data-theme="dark"] .article-content blockquote {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-right-color: #58d2c8;
}

[data-theme="dark"] .author-bio {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

[data-theme="dark"] .toc-list a {
    color: #95a5a6;
}

[data-theme="dark"] .toc-list a:hover {
    color: #58d2c8;
}

[data-theme="dark"] .recent-post-item {
    border-bottom-color: #495057;
}