/* ========================================
   Kandari Consultancy - Main Stylesheet
   Modern, Professional Design
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    /* Green & Blue Modern Color Scheme - Brand Colors */
    --primary-color: #10b981;        /* Emerald Green - Primary Brand */
    --primary-dark: #059669;         /* Dark Green */
    --primary-light: #34d399;        /* Light Green */
    --secondary-color: #6366f1;      /* Indigo Blue - Secondary Brand */
    --secondary-dark: #4f46e5;       /* Dark Indigo */
    --secondary-light: #818cf8;      /* Light Indigo */
    --accent-color: #14b8a6;         /* Teal - Accent */
    --success-color: #10b981;        /* Green */
    --warning-color: #f59e0b;        /* Amber */
    --error-color: #ef4444;          /* Red */
    
    /* Modern Gradient Overlays */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-hero: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #6366f1 100%);
    --gradient-green: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-blue: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    --gradient-cool: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
    --gradient-ocean: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    
    /* Text Colors */
    --text-primary: #1e293b;         /* Dark Slate */
    --text-secondary: #475569;       /* Slate */
    --text-light: #94a3b8;           /* Light Slate */
    --text-white: #ffffff;
    --text-green: #10b981;           /* Brand Green */
    --text-blue: #6366f1;            /* Brand Blue */
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;             /* Light Slate - Darker */
    --bg-gray: #e2e8f0;              /* Slate Gray */
    --bg-dark: #1e293b;              /* Dark Slate */
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    
    /* Border & Shadows - Enhanced */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.4);
    --shadow-green-glow: 0 0 25px rgba(16, 185, 129, 0.35);
    --shadow-blue-glow: 0 0 25px rgba(99, 102, 241, 0.35);
    --shadow-colored: 0 10px 40px -10px rgba(16, 185, 129, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    position: relative;
}

/* Modern Background Pattern - Enhanced with Brand Colors */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(20, 184, 166, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* ===== Modern Animations & Keyframes ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Stagger animations */
.stagger-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Form Elements ===== */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    background-color: var(--bg-white);
    color: var(--text-primary);
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

input:hover, textarea:hover, select:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

input.error, textarea.error, select.error {
    border-color: #ef4444;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Inline form error states */
.input-error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.08);
}

.input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.text-justify {
    text-align: justify !important;
    text-align-last: left !important;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff !important;  /* Force white text color */
    border: none;
    box-shadow: var(--shadow-md);
    animation: shimmer 3s infinite linear;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
    color: #ffffff !important;  /* Keep white on hover */
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
    border-radius: var(--radius-md);
}

.btn-outline:hover {
    color: var(--bg-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline:hover::after {
    opacity: 1;
}

.btn-outline-white {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
    position: relative;
}

.btn-outline-white::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
    border-radius: var(--radius-md);
}

.btn-outline-white:hover {
    color: var(--primary-color);
    border-color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white:hover::after {
    opacity: 1;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* ===== Header & Navigation ===== */
.top-contact-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.top-contact-bar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
}

.top-contact-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.top-contact-bar .contact-link {
    color: var(--bg-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color var(--transition-base);
}

.top-contact-bar .contact-link i {
    font-size: 0.875rem;
}

.top-contact-bar .contact-link:hover,
.top-contact-bar .contact-link:focus-visible {
    color: rgba(255, 255, 255, 0.85);
}

.top-contact-bar .contact-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.top-contact-bar .contact-link span {
    white-space: nowrap;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.navbar {
    padding: 1rem 0;           /* Increased from 0.75rem for larger logo */
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;                 /* Reduced gap for more compact layout */
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
    flex-shrink: 0;
    margin-left: -15px;        /* Move logo to left edge */
}

.logo-image {
    height: 90px;              /* Increased from 60px */
    width: auto;
    max-width: 400px;          /* Increased from 300px */
    object-fit: contain;
    transition: var(--transition-base);
    transform: scale(1);       /* Changed from 0.8 to 1 (100% size) */
}

.logo:hover .logo-image {
    transform: scale(1.05);    /* Slightly larger on hover */
}

.logo-text {
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;       /* Prevent text wrapping */
}

.logo-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;       /* Prevent text wrapping */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;              /* Reduced gap, spacing added via padding */
    margin-left: auto;         /* Push navigation to the right */
    flex-wrap: nowrap;         /* Prevent wrapping to second line */
}

.nav-menu li a {
    font-size: 0.813rem;       /* Reduced font size (13px) */
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0.875rem;  /* Increased horizontal padding for better spacing */
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    white-space: nowrap;       /* Prevent text wrapping to two lines */
    display: inline-block;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 80%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
    background-color: rgba(16, 185, 129, 0.1);
}

.nav-cta {
    margin-left: var(--spacing-sm);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;       /* Ensure dropdown stays on one line */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background-color: transparent;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

/* Mobile Menu */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }
    
    .navbar {
        padding: 0.75rem 0;    /* Slightly more padding for mobile */
    }
    
    .logo-image {
        height: 70px;          /* Adjusted for mobile */
        max-width: 280px;
        transform: scale(1);   /* Maintain 100% size */
    }

    .nav-menu {
        position: fixed;
        top: 135px;
        left: -100%;
        width: 100%;
        max-width: 400px;
        height: calc(100vh - 135px);
        background-color: var(--bg-white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-lg);
        overflow-y: auto;
        transition: var(--transition-base);
        flex-wrap: wrap;       /* Allow wrapping in mobile menu */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {

    .top-contact-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .top-contact-bar .contact-info {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
    }

    .top-contact-bar .contact-link {
        font-size: 0.813rem;
    }

    .top-contact-bar .contact-link span {
        white-space: normal;
    }
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--spacing-md);
        margin-top: 0;
    }

    .nav-cta {
        margin-left: 0;
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
        display: block;
    }
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    animation: gradient 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--bg-white);
    padding: var(--spacing-2xl) 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.hero-tagline {
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-vision {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.25rem;
    animation: bounce 2s infinite;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    border-color: var(--bg-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-tagline {
        font-size: 1.375rem;
    }

    .hero-vision {
        font-size: 1.063rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== Section Styles ===== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.text-center {
    text-align: center;
}

/* ===== Core Values Section ===== */
.core-values {
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.value-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-green-glow);
    border-color: var(--primary-color);
}

.value-card:hover::before {
    left: 0;
    opacity: 0.08;
}

.value-card > * {
    position: relative;
    z-index: 1;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.value-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Services Overview Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: -1;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
    animation: ripple 1.5s ease-out;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px) scale(1.02);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.938rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.service-link:hover {
    gap: 0.75rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: var(--bg-light);
}

.cta-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-xl);
}

.cta-card {
    background: var(--gradient-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-colored);
    transition: var(--transition-smooth);
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-green-glow);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--bg-white);
}

.cta-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-align: center;
}

.cta-card .btn {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

.cta-card .btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-color: var(--accent-color);
}

@media (max-width: 992px) {
    .cta-section .container {
        grid-template-columns: 1fr;
    }
}

/* ===== Statistics Section ===== */
.statistics {
    background: var(--gradient-hero);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    color: var(--bg-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-white);
    color: var(--text-secondary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-sm);
}

.footer-logo-image {
    height: 100px;                        /* Increased from 80px */
    width: auto;
    max-width: 350px;                     /* Increased from 250px */
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    line-height: 1;
}

.footer-logo .logo-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);        /* Green accent */
}

.footer-description {
    font-size: 0.938rem;
    color: var(--text-secondary);         /* Grey text */
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-green-glow);
    border-color: var(--primary-color);
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a:hover i {
    color: #ffffff;
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.938rem;
    transition: var(--transition-base);
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: var(--spacing-xs);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);          /* Grey text */
    font-size: 0.938rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    font-size: 1.125rem;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);  /* Grey border */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    color: var(--text-secondary);               /* Grey text */
}

.footer-bottom p {
    color: var(--text-secondary);           /* Grey text */
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-bottom-links a {
    color: var(--text-secondary);           /* Grey text */
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);            /* Blue on hover */
}

/* ===== Floating Contact Button ===== */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition-base);
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-green-glow);
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 998;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-green-glow);
}

/* ===== Responsive Adjustments ===== */

/* Tablet and Mobile Landscape (992px and below) */
@media (max-width: 992px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 3.5rem;
    }

    .values-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }

    .service-card,
    .value-card {
        padding: var(--spacing-lg);
    }
}

/* Mobile and Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }

    body {
        font-size: 1rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.625rem; }
    h4 { font-size: 1.375rem; }

    p, li, span, div {
        font-size: 1rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: 2.25rem;
        margin-bottom: var(--spacing-md);
    }

    .section-subtitle {
        font-size: 1.063rem;
        line-height: 1.7;
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Grid adjustments */
    .values-grid,
    .services-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Card adjustments */
    .service-card,
    .value-card,
    .stat-item {
        padding: var(--spacing-lg);
    }

    .service-icon,
    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.063rem;
    }
    
    /* Logo responsive styles */
    .logo-image {
        height: 70px;
        max-width: 250px;
        transform: scale(0.8);
    }
    
    .footer-logo-image {
        height: 80px;
        max-width: 280px;
    }

    /* Footer adjustments */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .footer-links {
        justify-content: center;
    }

    /* Floating elements */
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .scroll-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* CTA sections */
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Text alignment for mobile */
    .text-justify {
        text-align: left;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --font-size-base: 16px;
        --spacing-lg: 1.5rem;
        --spacing-xl: 1.75rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
    }

    body {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    p, li, span, div {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Card adjustments */
    .service-card,
    .value-card,
    .stat-item {
        padding: var(--spacing-md);
    }

    .service-icon,
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1.063rem;
    }

    /* Logo adjustments */
    .logo-image {
        height: 60px;
        max-width: 220px;
    }

    .footer-logo-image {
        height: 70px;
        max-width: 250px;
    }

    /* Container padding */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Floating elements */
    .floating-contact {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.938rem;
    }
}

/* Ensure grids don't break layout */
@media (max-width: 600px) {
    .values-grid,
    .services-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Utility Classes ===== */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { 
    color: var(--text-secondary); 
    font-size: 0.875rem;
    font-weight: 400;
}
small.text-muted {
    font-size: 0.8125rem;
    display: inline-block;
    margin-left: 0.25rem;
}
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* ===== Loading Screen ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--bg-white);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--bg-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
}

/* ===== Fade In Elements ===== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9998;
    transition: width 0.1s ease;
}

/* ===== Enhanced Hover Effects ===== */
.hover-lift {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.hover-glow {
    transition: box-shadow var(--transition-smooth);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ===== Glassmorphism Effect ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Legal Pages Styles ===== */
.page-header {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1,
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    color: #ffffff;
    text-align: center;
}

.content-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.content-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.content-wrapper ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.content-wrapper li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.content-wrapper strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Notification Toast Styles ===== */
.notification-container {
    position: fixed;
    top: 150px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification-toast {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.notification-toast.success {
    border-left-color: var(--success-color);
    background: #f0fdf4;
}

.notification-toast.error {
    border-left-color: var(--error-color);
    background: #fef2f2;
}

.notification-toast.warning {
    border-left-color: var(--warning-color);
    background: #fffbeb;
}

.notification-toast.info {
    border-left-color: var(--primary-color);
    background: #eff6ff;
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-toast.success .notification-icon {
    background: var(--success-color);
    color: white;
}

.notification-toast.error .notification-icon {
    background: var(--error-color);
    color: white;
}

.notification-toast.warning .notification-icon {
    background: var(--warning-color);
    color: white;
}

.notification-toast.info .notification-icon {
    background: var(--primary-color);
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.notification-toast.success .notification-title {
    color: #065f46;
}

.notification-toast.error .notification-title {
    color: #991b1b;
}

.notification-toast.warning .notification-title {
    color: #92400e;
}

.notification-toast.info .notification-title {
    color: #1e40af;
}

.notification-message {
    font-size: 13px;
    line-height: 1.4;
}

.notification-toast.success .notification-message {
    color: #047857;
}

.notification-toast.error .notification-message {
    color: #dc2626;
}

.notification-toast.warning .notification-message {
    color: #d97706;
}

.notification-toast.info .notification-message {
    color: #2563eb;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid;
    font-size: 0.938rem;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: var(--success-color);
    color: #065f46;
}

.alert-success i {
    color: var(--success-color);
}

.alert-error {
    background-color: #fef2f2;
    border-left-color: var(--error-color);
    color: #991b1b;
}

.alert-error i {
    color: var(--error-color);
}

.alert-warning {
    background-color: #fffbeb;
    border-left-color: var(--warning-color);
    color: #92400e;
}

.alert-warning i {
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: var(--primary-color);
    color: #065f46;
}

.alert-info i {
    color: var(--primary-color);
}


