﻿/* ================================
    Fonts
================================ */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Gotham Font */
@font-face {
    font-family: 'Gotham';
    src: url('/fonts/gotham/Gotham-Book.otf') format('opentype'), url('/fonts/gotham/Gotham-Book.otf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('/fonts/gotham/Gotham-Medium.otf') format('opentype'), url('/fonts/gotham/Gotham-Medium.otf')format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('/fonts/gotham/gotham-bold.otf') format('opentype'), url('/fonts/gotham/gotham-bold.otf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Global usage */
body {
    font-family: 'Poppins', 'Gotham', Arial, sans-serif;
}

/* ================================
    Header
================================ */

.custom-header .logo-img {
    height: 60px;
    max-width: 200px;
}

.container-fluid{
    width: 95%;
}
/* ================================
   Hero Section
================================ */

.heroContent {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1.2s ease;
}

    .heroContent h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 20px;
        text-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }

    .heroContent p {
        font-size: 1.2rem;
        margin-bottom: 25px;
        color: #f1f1f1;
    }

.hero-btn {
    background: #ffcc00;
    color: #145a32;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .hero-btn:hover {
        background: #145a32;
        color: #fff;
        transform: translateY(-2px);
    }

/* ================================
   Hero Background Slideshow
================================ */


/* ================================
   Animations & Responsive
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .heroContent h1 {
        font-size: 2rem;
    }

    .heroContent p {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ================================
   Ticker Styles
================================ */
.ticker-wrap {
    width: 100%;
    height: 52px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #0b3d2e, #145a32);
    border-top: 2px solid #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

.ticker {
    display: flex;
    width: max-content;
    animation: tickerMove 70s linear infinite;
}

.ticker-content::after {
    content: attr(data-clone); /* dynamic duplicate */
}

.ticker-item {
    border-radius: 25px;
    white-space: nowrap;
    padding: 6px 40px;
    margin-right: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, background 0.3s;
}

    .ticker-item:hover {
        transform: scale(1.08);
        background: rgba(255,255,255,0.2);
        cursor: pointer;
    }

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
    /* auto wrap */
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
}

/* Flood status tags */
.flood-status.safe {
    color: #2ecc71; /* green */
    font-weight: bold;
}

.flood-status.alert {
    color: #f39c12; /* orange */
    font-weight: bold;
}

.flood-status.danger {
    color: #e74c3c; /* red */
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .ticker-wrap {
        font-size: 0.9rem;
        height: 42px;
    }

    .ticker-item {
        padding: 4px 20px;
    }
}

/* Project Cards Hover Effect */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    }

/* Fade-in on scroll using AOS (Animate on Scroll) */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 1s;
    transition-timing-function: ease-out;
}

    [data-aos].aos-animate {
        opacity: 1;
        transform: translate(0,0);
    }

/* Optional: Button hover for consistency */
.hero-btn:hover {
    background-color: #145a32;
    color: #fff;
    transform: translateY(-2px);
}
/* Section Shadow and Overlay */
.section-shadow {
    position: relative;
    z-index: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin: 30px 15px;
    padding: 50px 20px;
    overflow: hidden;
}

    .section-shadow::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom right, rgba(255,255,255,0.05), rgba(0,0,0,0.03));
        z-index: 0;
        pointer-events: none;
    }

/* Project Cards Hover */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    }

    /* Subtle parallax / moving background for sections */
.section-bg {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.section-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 200%;   /* extend width to allow movement */
    height: 200%;  /* extend height for subtle diagonal movement */
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.02) 100%);
    z-index: 0;
    pointer-events: none;
    animation: backgroundMove 60s linear infinite;
}

/* Smooth background movement */
@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
    100% { transform: translate(0, 0); }
}

/* Keep content above the overlay */
.section-shadow > .container {
    position: relative;
    z-index: 1;
}
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}
.text-center {
    text-align: center !important;
}

/* Force all headers (even numeric ones) to align consistently */
table.dataTable thead th,
table.dataTable thead td {
    text-align: left !important;
}

/* Flexbox for consistent icon placement */
table.dataTable thead .dt-column-header {
    display: flex !important;
    justify-content: space-between; /* title left, icon right */
    align-items: center;
    white-space: nowrap;
}

/* Title always on the left */
table.dataTable thead .dt-column-title {
    flex: 1;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

/* Sorting icon always on the right */
table.dataTable thead .dt-column-order {
    flex-shrink: 0;
    margin-left: 6px;
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, #1c7c54, #0f5132);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    text-decoration: none;
    display: none;
    z-index: 1000;
}

    .back-to-top:hover {
        background: linear-gradient(135deg, #1c7c54, #0f5132);
        color: white;
    }