:root {
    /* Color Palette - Hydrology Theme */
    --primary-color: #006994;
    /* Deep Ocean Blue */
    --secondary-color: #00a86b;
    /* Jade Green */
    --accent-color: #48d1cc;
    /* Medium Turquoise */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --light-bg: #f0f9ff;
    /* Sky 50 */
    --text-dark: #1e293b;
    /* Slate 800 */
    --text-light: #f8fafc;
    /* Slate 50 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #006994 0%, #00a86b 100%);
    --gradient-ocean: linear-gradient(to right, #24c6dc, #514a9d);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
:root {
    /* Color Palette - Hydrology Theme */
    --primary-color: #006994;
    /* Deep Ocean Blue */
    --secondary-color: #00a86b;
    /* Jade Green */
    --accent-color: #48d1cc;
    /* Medium Turquoise */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --light-bg: #f0f9ff;
    /* Sky 50 */
    --text-dark: #1e293b;
    /* Slate 800 */
    --text-light: #f8fafc;
    /* Slate 50 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #006994 0%, #00a86b 100%);
    --gradient-ocean: linear-gradient(to right, #24c6dc, #514a9d);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Navbar Modernization */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}

.navbar-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--gradient-ocean);
    color: white;
    padding: 150px 0 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../rain2.gif') center/cover no-repeat;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

/* Feature Cards */
.feature-card {
    border: none;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    color: white;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover .feature-icon,
.feature-card:hover .card-title,
.feature-card:hover .card-text {
    color: white !important;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 107, 0.4);
    background: linear-gradient(135deg, #005a80 0%, #00905b 100%);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    border-width: 2px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 30px;
    position: relative;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin: 0 5px;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Loading Overlay */
#loading-overlay {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005a80;
}