/* Main Redesign CSS - المختبر للتحاليل الزراعية */

:root {
    --primary-color: #1d4ed8; /* Blue 700 */
    --primary-dark: #1e40af;  /* Blue 800 */
    --primary-light: #3b82f6; /* Blue 500 */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Dark theme colors */
    --dark-bg: #0f172a;
    --dark-secondary: #1e293b;
    --dark-accent: #3b82f6;
    --dark-text: #f1f5f9;
    --dark-text-muted: #94a3b8;
    --dark-border: #334155;
    --dark-glass: rgba(30, 41, 59, 0.7);
    --dark-glass-border: rgba(71, 85, 105, 0.3);
    
    /* Theme-aware variables */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-100);
    --bg-tertiary: var(--gray-200);
    --bg-card: var(--white);
    --bg-overlay: rgba(0, 0, 0, 0.4);
    
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-white: var(--white);
    
    --border-color: var(--gray-300);
    --border-light: var(--gray-200);
    --border-dark: var(--gray-700);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

/* Dark theme variables */
body.dark-theme {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #94a3b8;
    --light-color: #1e293b;
    --dark-color: #f1f5f9;
    --white: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #ffffff;
    
    /* Dark theme overrides */
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--dark-secondary);
    --bg-tertiary: var(--dark-border);
    --bg-card: var(--dark-secondary);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    --text-primary: var(--dark-text);
    --text-secondary: var(--dark-text-muted);
    --text-muted: var(--dark-text-muted);
    --text-white: var(--white);
    
    --border-color: var(--dark-border);
    --border-light: var(--dark-border);
    --border-dark: var(--dark-text-muted);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--dark-color);
    line-height: 1.7;
    transition: all var(--transition-normal);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.01em;
}

body.dark-theme {
    background: var(--dark-bg);
    color: var(--dark-text);
}

/* Top Banner Styles */
.top-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.banner-text i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::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 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Sidebar Styles */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle i {
    font-size: 1.2rem;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.sidebar-open {
    right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-logo .logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.sidebar-logo .logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
}

.sidebar-search {
    margin-bottom: 2rem;
}

.sidebar-search .search-box {
    position: relative;
    width: 100%;
}

.sidebar-search .search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-search .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.sidebar-search .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav .nav-item {
    width: 100%;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.sidebar-nav .nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.sidebar-nav .nav-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav .nav-text {
    font-size: 1rem;
    flex: 1;
}

.nav-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Sidebar User Section */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Sidebar Stats */
.sidebar-stats {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stats-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

.stat-item:hover i {
    color: white;
}

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

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item:hover .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Admin Link */
.admin-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: right;
    text-decoration: none;
    margin-top: 1rem;
}

.admin-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
    text-decoration: none;
}

.admin-link i {
    font-size: 1.2rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .theme-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: right;
}

.sidebar-footer .theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.sidebar-footer .theme-toggle i {
    font-size: 1.2rem;
}

/* Main Content Adjustments */
.main-content {
    transition: margin-right 0.3s ease;
    min-height: 100vh;
}

.main-content.sidebar-open {
    margin-right: 300px;
}

/* Dark Theme for Sidebar */
body.dark-theme .sidebar {
    background: var(--dark-primary);
    border-color: var(--dark-border);
}

body.dark-theme .sidebar-header {
    border-color: var(--dark-border);
}

body.dark-theme .sidebar-logo .logo-title {
    color: var(--dark-text-primary);
}

body.dark-theme .sidebar-logo .logo-subtitle {
    color: var(--dark-text-secondary);
}

body.dark-theme .sidebar-close {
    color: var(--dark-text-secondary);
}

body.dark-theme .sidebar-close:hover {
    background: var(--dark-secondary);
    color: var(--dark-text-primary);
}

body.dark-theme .sidebar-search .search-input {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
}

body.dark-theme .sidebar-search .search-input:focus {
    border-color: var(--primary-light);
}

body.dark-theme .sidebar-nav .nav-link {
    color: var(--dark-text-primary);
}

body.dark-theme .sidebar-nav .nav-link:hover {
    background: var(--dark-secondary);
    color: var(--primary-light);
}

body.dark-theme .sidebar-footer {
    border-color: var(--dark-border);
}

body.dark-theme .sidebar-footer .theme-toggle {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
}

body.dark-theme .sidebar-footer .theme-toggle:hover {
    background: var(--primary-light);
    color: white;
}

/* Dark Theme for New Elements */
body.dark-theme .sidebar-user {
    background: var(--dark-secondary);
}

body.dark-theme .user-name {
    color: var(--dark-text-primary);
}

body.dark-theme .user-role {
    color: var(--dark-text-secondary);
}

body.dark-theme .sidebar-stats {
    background: var(--dark-secondary);
}

body.dark-theme .stats-title {
    color: var(--dark-text-primary);
}

body.dark-theme .stat-item {
    background: var(--dark-primary);
}

body.dark-theme .stat-number {
    color: var(--dark-text-primary);
}

body.dark-theme .stat-label {
    color: var(--dark-text-secondary);
}

body.dark-theme .admin-link {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
}

body.dark-theme .admin-link:hover {
    background: var(--primary-light);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-badges {
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    .main-content.sidebar-open {
        margin-right: 0;
    }
    
    .sidebar-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-text {
        font-size: 0.85rem;
    }
    
    .banner-text span {
        display: none;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

body.dark-theme .logo-title {
    color: var(--dark-text);
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

body.dark-theme .logo-subtitle {
    color: var(--dark-text-muted);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .nav-link {
    color: var(--dark-text);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(25, 135, 84, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(25, 135, 84, 0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: none;
}

.search-input {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--dark-color);
    font-size: 0.9rem;
    width: 300px;
    transition: all var(--transition-normal);
}

body.dark-theme .search-input {
    background: var(--gray-200);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.theme-toggle {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

body.dark-theme .theme-toggle {
    background: var(--gray-200);
    border-color: var(--dark-border);
}

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

.theme-toggle i {
    font-size: 1.1rem;
    color: var(--dark-color);
    transition: all var(--transition-normal);
}

body.dark-theme .theme-toggle i {
    color: var(--dark-text);
}

.theme-toggle:hover i {
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

body.dark-theme .mobile-menu-toggle {
    color: var(--dark-text);
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

body.dark-theme .mobile-menu-toggle:hover {
    background: var(--gray-200);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::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 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    background: rgba(15, 23, 42, 0.25);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #ffffff;
}

.btn-white {
    background: rgba(255, 255, 255, 0.96);
    color: #0b1324;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
    color: #0b1324;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

body.dark-theme .card {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(25, 135, 84, 0.3);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

body.dark-theme .card-header {
    border-bottom-color: var(--dark-border);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.dark-theme .card-title {
    color: var(--dark-text);
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.card-icon.primary { background: var(--primary-gradient); }
.card-icon.success { background: linear-gradient(135deg, #10b981, #059669); }
.card-icon.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card-icon.danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.card-icon.info { background: linear-gradient(135deg, #06b6d4, #0891b2); }

/* Service Cards */
.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}

body.dark-theme .service-card {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

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

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

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: var(--card-bg);
    transition: transform var(--transition-slow);
    border-radius: 10px 10px 0 0;
}

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

/* Article and Gallery Cards */
.article-card,
.gallery-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}

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

.article-card:hover::before,
.gallery-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover,
.gallery-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Article and Gallery Images */
.article-image,
.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    background: var(--bg-secondary);
    transition: transform 0.4s ease;
    border-radius: 0;
}

.article-card:hover .article-image,
.gallery-card:hover .gallery-image {
    transform: scale(1.08);
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

body.dark-theme .service-title {
    color: var(--dark-text);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

body.dark-theme .service-description {
    color: var(--dark-text-muted);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

body.dark-theme .service-meta {
    border-top-color: var(--dark-border);
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-duration {
    color: var(--gray-500);
    font-size: 0.875rem;
}

body.dark-theme .service-duration {
    color: var(--dark-text-muted);
}

/* Article Cards */
.article-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
}

body.dark-theme .article-card {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(25, 135, 84, 0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

body.dark-theme .article-meta {
    color: var(--dark-text-muted);
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

body.dark-theme .article-title {
    color: var(--dark-text);
}

.article-summary {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

body.dark-theme .article-summary {
    color: var(--dark-text-muted);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

body.dark-theme .article-footer {
    border-top-color: var(--dark-border);
}

.article-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

body.dark-theme .article-date {
    color: var(--dark-text-muted);
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

body.dark-theme .main-footer {
    background: var(--dark-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    line-height: 1.6;
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
    left: 0;
    right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        padding: 1rem;
        transform: translateY(-100%);
    opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    body.dark-theme .main-nav {
        background: var(--dark-bg);
        border-bottom: 1px solid var(--dark-glass-border);
    }

    .main-nav.mobile-open {
        transform: translateY(0);
    opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-radius: var(--radius);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-box {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    align-items: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .header-content {
        padding: 0 0.5rem;
    }

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

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

    .card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

body.dark-theme ::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

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

body.dark-theme ::-webkit-scrollbar-thumb {
    background: var(--dark-border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Tool Cards */
.tool-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

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

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.tool-icon .icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.microscope-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.microscope-icon .icon-glow {
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
}

.water-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.water-icon .icon-glow {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
}

.soil-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.soil-icon .icon-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
}

.system-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.system-icon .icon-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
}

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

.tool-card:hover .icon-glow {
    opacity: 1;
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.tool-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Stats */
.stats-container {
    background: var(--bg-card);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(25, 135, 84, 0.05);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-number::after {
    opacity: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 2rem;
    font-family: 'Cairo', sans-serif;
}

/* Hero Features */
.hero-features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.feature-item span {
    color: #1e293b;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #20c997, #198754);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #20c997;
    border: 2px solid #20c997;
}

.btn-outline:hover {
    background: #20c997;
    color: white;
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #20c997;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

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

.lab-showcase {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: 0 20px 60px rgba(25, 135, 84, 0.3);
    animation: lab-pulse 3s ease-in-out infinite;
}

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

.lab-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #20c997;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: element-float 4s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.element-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

.element-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

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

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    animation: float-card 3s ease-in-out infinite;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

.card-3 {
    top: 50%;
    right: 5%;
    animation-delay: 2s;
}

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

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.card-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    font-family: 'Cairo', sans-serif;
}

.card-content p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #64748b;
    animation: scroll-bounce 2s ease-in-out infinite;
    z-index: 3;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.scroll-arrow {
    font-size: 1.5rem;
}

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

/* Lab Section */
.lab-section {
    padding: 6rem 0;
    background: white;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #20c997, #198754);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #20c997, #198754);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    color: #1e293b;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Cairo', sans-serif;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.equipment-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
}

.card-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.spec-item {
    background: rgba(32, 201, 151, 0.1);
    color: #198754;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

/* Lab Stats */
.lab-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 3rem 2rem;
    border-radius: 20px;
}

.lab-stats .stat-item {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 2rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lab-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lab-stats .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.lab-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
}

.lab-stats .stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

/* Responsive Design for Redesigned Sections */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .redesigned-hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lab-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }
    
    .lab-image-container {
        width: 300px;
        height: 300px;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .redesigned-hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lab-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .equipment-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .card-specs {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .lab-image-container {
        width: 250px;
        height: 250px;
    }
    
    .lab-image::before {
        font-size: 6rem;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .equipment-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .lab-stats .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .lab-stats .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lab-stats .stat-number {
        font-size: 2rem;
    }
}

/* Hero Animated Background */
.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    animation: float-up 8s ease-in-out infinite;
}

.element-1 {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.element-2 {
    width: 15px;
    height: 15px;
    left: 25%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.element-3 {
    width: 25px;
    height: 25px;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.element-4 {
    width: 18px;
    height: 18px;
    left: 60%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.element-5 {
    width: 22px;
    height: 22px;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particles .particle {
    position: absolute;
    background: rgba(32, 201, 151, 0.2);
    border-radius: 50%;
    animation: particle-float 6s ease-in-out infinite;
}

.hero-particles .particle:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.hero-particles .particle:nth-child(2) {
    width: 5px;
    height: 5px;
    left: 30%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.hero-particles .particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 50%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.hero-particles .particle:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.hero-particles .particle:nth-child(5) {
    width: 3px;
    height: 3px;
    left: 85%;
    animation-delay: 4s;
    animation-duration: 6s;
}

.hero-particles .particle:nth-child(6) {
    width: 4px;
    height: 4px;
    left: 95%;
    animation-delay: 5s;
    animation-duration: 8s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-10vh) translateX(20px) rotate(180deg);
    }
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.10) 45%, rgba(255, 255, 255, 0.08) 100%),
        radial-gradient(circle at 20% 80%, rgba(25, 135, 84, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(32, 201, 151, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 55%);
}

/* Per-slide accent overlays */
.slide-soil .hero-gradient-overlay { background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.slide-water .hero-gradient-overlay { background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.slide-plant .hero-gradient-overlay { background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.slide-lab .hero-gradient-overlay { background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
}

/* Hero Main Content */
.hero-main-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    max-width: 600px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

.badge-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

/* Fantasy Hero Title */
.fantasy-hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

.title-line-1 {
    display: block;
    background: linear-gradient(135deg, #ffffff, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite;
}

.title-line-2 {
    display: block;
    background: linear-gradient(135deg, #20c997, #198754);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite 1.5s;
}

@keyframes title-glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* Fantasy Hero Subtitle */
.fantasy-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-family: 'Cairo', sans-serif;
}

/* Hero Features */
.hero-features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

/* Hero Actions Advanced */
.hero-actions-advanced {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    position: relative;
    background: linear-gradient(135deg, #20c997, #198754);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(25, 135, 84, 0.4);
    color: white;
}

.btn-glow {
    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;
}

.btn-hero-primary:hover .btn-glow {
    left: 100%;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;
}

.hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #20c997;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Cairo', sans-serif;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lab Showcase */
.lab-showcase {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.equipment-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: equipment-float 4s ease-in-out infinite;
}

.equipment-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.equipment-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.equipment-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.equipment-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.equipment-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

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

.equipment-icon {
    font-size: 2rem;
    color: #20c997;
}

.equipment-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(32, 201, 151, 0.3) 0%, transparent 70%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-item:hover .equipment-glow {
    opacity: 1;
}

/* Floating Lab Elements */
.floating-lab-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.lab-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #20c997;
    animation: lab-element-float 6s ease-in-out infinite;
}

.lab-element.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.lab-element.element-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.lab-element.element-3 {
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes lab-element-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    animation: scroll-bounce 2s ease-in-out infinite;
    z-index: 3;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.scroll-arrow {
    font-size: 1.5rem;
}

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

/* Fantasy Lab Section */
.fantasy-lab-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.lab-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.lab-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lab-particles .particle {
    position: absolute;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    animation: lab-particle-float 8s ease-in-out infinite;
}

.lab-particles .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.lab-particles .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.lab-particles .particle:nth-child(3) {
    width: 5px;
    height: 5px;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.lab-particles .particle:nth-child(4) {
    width: 7px;
    height: 7px;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.lab-particles .particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 7s;
}

@keyframes lab-particle-float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-20vh) rotate(180deg);
    }
}

.lab-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(25, 135, 84, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(32, 201, 151, 0.05) 0%, transparent 50%);
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #20c997, #198754);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

.section-badge i {
    font-size: 1.1rem;
}

/* Fantasy Section Title */
.fantasy-section-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #20c997, #198754);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-main {
    display: block;
    color: #1e293b;
}

/* Fantasy Section Subtitle */
.fantasy-section-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Cairo', sans-serif;
}

/* Fantasy Equipment Cards */
.fantasy-equipment-card {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.fantasy-equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.equipment-visual {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.fantasy-equipment-card:hover .equipment-icon-large {
    transform: scale(1.1) rotate(5deg);
}

.equipment-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(32, 201, 151, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fantasy-equipment-card:hover .equipment-glow-effect {
    opacity: 1;
}

.equipment-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.equipment-particles .particle {
    position: absolute;
    background: rgba(32, 201, 151, 0.3);
    border-radius: 50%;
    animation: equipment-particle-float 3s ease-in-out infinite;
}

.equipment-particles .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.equipment-particles .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.equipment-particles .particle:nth-child(3) {
    width: 5px;
    height: 5px;
    bottom: 20%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes equipment-particle-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.equipment-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
}

.equipment-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

.equipment-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(32, 201, 151, 0.1);
    color: #198754;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

.spec-item i {
    font-size: 1rem;
}

/* Fantasy Stats Container */
.fantasy-stats-container {
    background: white;
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: rgba(32, 201, 151, 0.05);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20c997, #198754);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

.stat-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(32, 201, 151, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

/* Hero Carousel Styles */
.hero-carousel-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
}

.hero-carousel-section .carousel {
    height: 100%;
}

.hero-carousel-section .carousel-inner {
    height: 100%;
}

.hero-carousel-section .carousel-item {
    height: 100%;
}

.carousel-bg {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.carousel-pattern {
    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 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.tool-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-carousel-section .hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0,0,0,0.4);
}

.hero-carousel-section .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 1;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-carousel-section .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Carousel Controls */
.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
    width: 64px;
    height: 64px;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.06);
    opacity: 1;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.hero-carousel-section .carousel-control-prev {
    left: 40px;
}

.hero-carousel-section .carousel-control-next {
    right: 40px;
}

.hero-carousel-section .carousel-control-prev-icon,
.hero-carousel-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    filter: brightness(0) invert(1);
}

/* Carousel Indicators */
.hero-carousel-section .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-carousel-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
    margin: 0 6px;
    transition: all 0.2s ease;
}

.hero-carousel-section .carousel-indicators button.active {
    background: var(--primary-color);
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.hero-carousel-section .carousel-indicators button:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

/* Dark Theme for Tools */
body.dark-theme .tool-card {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

body.dark-theme .tool-card:hover {
    border-color: var(--primary-light);
}

body.dark-theme .tool-title {
    color: var(--dark-text);
}

body.dark-theme .tool-description {
    color: var(--dark-text-muted);
}

body.dark-theme .stats-container {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

body.dark-theme .stat-item:hover {
    background: rgba(32, 201, 151, 0.1);
}

body.dark-theme .stat-label {
    color: var(--dark-text-muted);
}

/* Dark Theme for Cards */
body.dark-theme .article-card,
body.dark-theme .gallery-card {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

body.dark-theme .article-card:hover,
body.dark-theme .gallery-card:hover {
    border-color: var(--primary-light);
}

/* Gallery Content Styles */
.gallery-content {
    padding: 1.5rem;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.gallery-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.gallery-view-btn {
    transition: all 0.3s ease;
}

.gallery-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contact Card Styles */
.contact-card {
    background: var(--bg-card);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.contact-card-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-card-header::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 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 2.5rem;
    color: white;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Cairo', sans-serif;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
}

.contact-card-body {
    padding: 2.5rem 2rem;
}

.contact-features {
    margin-bottom: 2.5rem;
}

.contact-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-feature:hover {
    background: rgba(25, 135, 84, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.3rem;
    color: white;
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.feature-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-contact-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex: 1;
    min-width: 200px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-contact-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1a365d);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
}

.btn-contact-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex: 1;
    min-width: 200px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn-contact-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
}

.contact-info {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info .contact-item:hover {
    background: rgba(25, 135, 84, 0.05);
    transform: translateX(5px);
}

.contact-info .contact-item:last-child {
    margin-bottom: 0;
}

.contact-info .contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-info .contact-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

/* Dark Theme for Contact Card */
body.dark-theme .contact-card {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

body.dark-theme .contact-card:hover {
    border-color: var(--primary-light);
}

body.dark-theme .contact-feature {
    background: var(--dark-primary);
}

body.dark-theme .contact-feature:hover {
    background: rgba(32, 201, 151, 0.1);
}

body.dark-theme .feature-content h5 {
    color: var(--dark-text);
}

body.dark-theme .feature-content p {
    color: var(--dark-text-muted);
}

body.dark-theme .contact-info {
    border-top-color: var(--dark-border);
}

body.dark-theme .contact-info .contact-item {
    background: var(--dark-primary);
}

body.dark-theme .contact-info .contact-item:hover {
    background: rgba(32, 201, 151, 0.1);
}

body.dark-theme .contact-info .contact-item span {
    color: var(--dark-text);
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::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 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.cta-feature i {
    color: #10b981;
    font-size: 1.1rem;
}

.cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-cta-primary:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Gallery Modal Styles */
#galleryModal .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

#galleryModal .modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

#galleryModal .modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

#galleryModal .modal-body {
    padding: 0;
}

#galleryModal .carousel-item img {
    height: 500px;
    object-fit: cover;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

#galleryModal .carousel-control-prev {
    left: 20px;
}

#galleryModal .carousel-control-next {
    right: 20px;
}

/* Dark Theme for CTA */
body.dark-theme .cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a365d 100%);
}

body.dark-theme #galleryModal .modal-content {
    background: var(--dark-secondary);
    border-color: var(--dark-border);
}

body.dark-theme #galleryModal .modal-header {
    background: var(--dark-primary);
    border-color: var(--dark-border);
}

body.dark-theme #galleryModal .modal-title {
    color: var(--dark-text-primary);
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-badge i {
    color: #10b981;
    font-size: 1.1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

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

.footer-links a i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.contact-item div {
    flex: 1;
}

.contact-item span {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-item small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.social-links h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon i {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.2rem;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook { background: #1877f2; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.linkedin { background: #0077b5; }
.social-icon.youtube { background: #ff0000; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

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

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Dark Theme for Footer */
body.dark-theme .main-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-theme .footer-background {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .footer-content {
        padding: 2.25rem 0 1.75rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .btn-contact-primary,
    .btn-contact-secondary {
        min-width: auto;
    }
    
    .contact-card-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-card-body {
        padding: 2rem 1.5rem;
    }
}

/* Enhanced Footer Styles */
.footer-certifications {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cert-badge i {
    color: #10b981;
    font-size: 1rem;
}

.contact-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.contact-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-version {
    margin-top: 0.5rem;
    opacity: 0.7;
    font-size: 0.8rem;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.whatsapp:hover {
    background: #128c7e;
    transform: scale(1.1);
}

.social-icon.youtube:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Enhanced Topbar Styles */
.topbar-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.topbar-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--admin-text);
    transition: all 0.3s ease;
}

.logo-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-text);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--admin-text-muted);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.topbar-nav-link:hover {
    color: var(--admin-text);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.topbar-nav-link.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.topbar-nav-link i {
    font-size: 1rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--admin-glass-border);
}

.phone-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.phone-btn:hover {
    background: #10b981;
    color: white;
    transform: translateY(-1px);
}

.contact-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* Responsive Topbar */
@media (max-width: 992px) {
    .topbar-center {
        display: none;
    }
    .topbar-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar-actions .action-btn span {
        display: none;
    }
    .topbar-actions .action-btn {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    .search-input {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .topbar-right {
        gap: 0.5rem;
    }
    .search-box {
        display: none;
    }
}

/* Mobile refinement */
@media (max-width: 576px) {
    .footer-title { font-size: 1.1rem; margin-bottom: .75rem; }
    .footer-description { font-size: .95rem; }
    .footer-links a { padding: .2rem 0; }
    .contact-item { padding: .75rem; gap: .75rem; }
    .social-icons { gap: .75rem; }
    .footer-newsletter .input-group { flex-direction: column; align-items: stretch; }
    .footer-newsletter .form-control { width: 100%; }
    .footer-newsletter .btn { width: 100%; }
}

@media (max-width: 768px) {
    .tool-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .tool-card {
        padding: 2rem 1.5rem;
    }
    
    .stats-container {
        padding: 2rem 1.5rem;
    }
    
    .hero-carousel-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-carousel-section .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-carousel-section .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-carousel-section .carousel-control-prev,
    .hero-carousel-section .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .hero-carousel-section .carousel-control-prev {
        left: 15px;
    }
    
    .hero-carousel-section .carousel-control-next {
        right: 15px;
    }
}

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }