/* ================= ROOT COLORS ================= */
:root{
    --dark-teal:#0b4a5a;
    --nav-blue:#537a9e;
    --gold:#f4c430;
    --white:#ffffff;
}

body{
    background:#f5f5f5;
   overflow-x:hidden;
}

/* ================= HERO SECTION ================= */

.hero{
    position:relative;
    height:90vh;
    overflow:hidden;
    z-index:0;
     margin: 20px 20px;     /* top + side space */
    border-radius: 25px;  
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    opacity:0;
    transition:opacity 1.2s ease-in-out;
}

.slide.active{
    opacity:1;
}

.overlay{
    position:absolute;
    width:100%;
    height:100%;
   /*  background:rgba(11,74,90,0.65); */
background: rgba(0, 51, 82, 0.35);

    z-index:1;
}

.hero-content{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    z-index:2;
    color:white;
    text-align:center;
    width:90%;
    max-width:700px;
}

.hero h1{
    font-size:40px;
    margin-bottom:20px;
    color:#001f3f;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p{
    font-size: 18px;
    max-width: 750px;
    margin: 20px auto;
    line-height: 1.8;
    color: #ffffff;
    text-align: justify;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
   background: rgba(0, 51, 82, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ================= BUTTON ================= */
.btn{
    position:relative;
    z-index:3;
    display:inline-block;

    padding:12px 30px;
    margin:10px;

    border:2px solid #ffffff;
    border-radius:50px;

    background:transparent;
    color:#ffffff;

    text-decoration:none;
    font-weight:500;

    cursor:pointer;
    transition:all 0.3s ease;
}

/* Hover Effect (Desktop) */
.hero-content .btn:hover{
    background:#ffffff;
    color:#0b4a5a;
    transform:scale(1.05);
    box-shadow:0 0 8px rgba(255,255,255,0.7);
}

/* Click Effect (Mobile Friendly) */
.btn:active{
    transform:scale(0.95);
}

/* Optional: Smooth focus (accessibility) */
.btn:focus{
    outline:none;
    box-shadow:0 0 10px rgba(255,255,255,0.6);
}
/* ================Pop up for user role ======*/
/* ===== MODAL BACKGROUND ===== */
.role-modal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:10000;
}

/* Blur effect */
.blur{
    filter:blur(3px);
}

/* Modal box */
.role-content{
    background:white;
    padding:40px;
    border-radius:15px;
    text-align:center;
    width:90%;
    max-width:600px;
    animation: popup 0.3s ease;
}

/* Animation */
@keyframes popup{
    from{
        transform:scale(0.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* Close button */
.close-btn{
    position:absolute;
    right:20px;
    top:10px;
    font-size:30px;
    cursor:pointer;
}

/* Cards */
.role-box{
    display:flex;
    gap:20px;
    justify-content:center;
    margin-top:20px;
    flex-wrap:wrap;
}

.role-card{
    background:#f5f5f5;
    padding:20px;
    border-radius:10px;
    width:200px;
    transition:0.3s;
}

.role-card:hover{
    transform:translateY(-5px);
}

.role-card i{
    font-size:40px;
    color:#003366;
}

.role-btn{
    display:inline-block;
    margin-top:10px;
    padding:8px 15px;
    background:#003366;
    color:white;
    text-decoration:none;
    border-radius:20px;
}


/* ================= COMMON SECTION ================= */
section{
 	padding: 50px 20px; 
    text-align:center;
    background: #f5f7fa;
}

section h2{
    font-size:28px;
    font-weight:700;
    margin-bottom:25px;
    color:#003366;
}


/* ================= HOW IT WORKS ================= */
.how-it-works {
   padding: 50px 20px 25px;  
    background: #f5f7fa;
    text-align: center;
}

.how-it-works h2 {
    font-weight: 700;
    margin-bottom: 50px;
    color: #003366;
}

/* ================= TIMELINE ================= */
.timeline {
    display: flex;
    justify-content: space-between; 
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    position: relative;
}

/* connecting line (desktop only) */
.timeline::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #00e5ff;
    z-index: 0;
}

/* ================= STEP CARD ================= */
.step {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 15px;
    flex: 1;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);

    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
   transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

/* Show animation */
.step.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; /* Optional: Add delay to make the animation appear in sequence */
}

/* ================= ICON ================= */
.step .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003366, #00e5ff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 10px;
    transition: 0.4s;
}

/* icon hover */
.step:hover .icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 6px #00e5ff;
}

/* ================= TEXT ================= */
.step h4 {
    color: #003366;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ================= HOVER ================= */
.step:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 10px rgba(0,0,0,0.15);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline::before {
        display: none;  /* remove line */
    }

    .step {
        width: 100%;
        max-width: 320px;
    }
}
/* ================= CATEGORIES ================= */
.categories {
    padding:30px 20px 50px;
    background: #f8fbff;
    text-align: center;
}

.categories h2 {
    color: #00264d;
    margin-bottom: 10px;
    font-weight: 600;
}

.sub-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

/* CARD CONTAINER */
.cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* CARD */
/* Initial state of the card */
.card {
    background: #ffffff;
    padding: 35px 25px;
    width: 280px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
    transition: all 0.6s ease;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform; /* Hint to the browser to optimize for these properties */
}

/* Card animation when in view */
.card.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-in-out;
    animation: bounceIn 0.6s ease-out forwards;
}

/* Bounce effect for a smooth "coming up" animation */
@keyframes bounceIn {
    0% {
        transform: translateY(50px);  /* Start from a bit lower */
        opacity: 0;
    }
    60% {
        transform: translateY(-10px);  /* Bounce effect, go a little up */
        opacity: 1;
    }
    100% {
        transform: translateY(0);  /* Settle in its final position */
    }
}
.card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 8px 10px rgba(0,0,0,0.15);
}
/* SOFT BORDER GLOW */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, #00e5ff, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ICON */
.card .icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #003366, #00e5ff);
    color: white;
 	transition:all 0.4s ease;
    font-size: 26px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
	margin: 0 auto 15px;
}

/* TITLE */
.card h3 {
    color: #003366;
    margin-bottom: 8px;
    font-weight: 600;
    text-align:center;
}

/* DESCRIPTION */
.card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align:center;
}

/* LIST */
.info-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.info-list li {
    font-size: 14px;
    color: #444;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ICON STYLE */
.info-list li i {
    color: #00e5ff;
    font-size: 14px;
}
/* ICON HOVER */
.card:hover .icon {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 2px 6px rgba(0,229,255,0.6);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 320px;
    }
}
.how-it-works + .categories {
    margin-top: 0;
}
/* ================= FEATURES ================= */
.features {
    padding: 50px 20px;
    background: #f5f7fa;
    text-align: center;
}

.features h2 {
    font-size: 28px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 40px;
}

/* Feature Box */
.feature-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Feature Item */
.feature-box div {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0; /* Start hidden */
    transform: translateY(40px); /* Start from below */
   transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    will-change: opacity, transform;  /* Optimizes performance */
}

/* Icon Styling */
.feature-box div i {
    font-size: 40px;
    color: #003366;
    margin-bottom: 15px;
}

/* Title Styling */
.feature-box div h4 {
    font-size: 18px;
    font-weight: 600;
    color: #003366;
    margin-bottom: 10px;
}

/* Description Styling */
.feature-box div p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Hover Effect */
.feature-box div:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.8);
}

/* Show feature box when in view (animation) */
.feature-box div.show {
    opacity: 1;
    transform: translateY(0); /* Bring into view */
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Keyframe for fade-in and slide-up animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px); /* Starts from below */
    }
    60% {
        opacity: 0.7;
        transform: translateY(-10px); /* Bounce effect */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Settles at the final position */
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .feature-box {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;   /* horizontal centering */
        align-items: center;     /* vertical centering */
        text-align: center;      /* optional: center text */
    }

    .feature-box div {
        width: 100%;
        max-width: 400px; /* optional: prevents stretching too wide */
    }
}
/* ================= TRACK COMPLAINT ================= */
.track-complaint {
    padding: 70px 20px;
    background: #f5f7fa;
    text-align: center;
}

.track-complaint h2 {
    font-size: 28px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 40px;
}

/* Complaint Tracking Form */
.track-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.track-form label {
    font-size: 16px;
    color: #003366;
    margin-bottom: 10px;
    display: block;
}

.track-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.track-form button {
    padding: 12px 20px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.track-form button:hover {
    background: #00e5ff;
}

/* Status Display */
.status-display {
    margin-top: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.status-display h4 {
    color: #003366;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-display div {
    font-size: 16px;
    margin-bottom: 10px;
}

.status-display div strong {
    color: #003366;
}

.status-display span {
    color: #666;
}

.status-display {
    display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .track-form {
        width: 90%;
    }

    .status-display {
        width: 90%;
    }
}
/* ================= SYSTEM STATS ================= */
.stats {
    padding: 60px 20px;
    background: #f5f7fa;
    text-align: center;
}

.stats h2 {
    font-size: 28px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 50px;
}

/* Stat Box */
.stat-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stat Item */
.stat-box div {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease-in-out;
}

/* Stat Number */
.stat-box div h3 {
    font-size: 36px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 10px;
}

/* Stat Text */
.stat-box div p {
    font-size: 16px;
    color: #555;
}

/* Hover Effect */
.stat-box div:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .stat-box {
        grid-template-columns: 1fr 1fr; /* Two columns on mobile */
    }

    .stat-box div {
        padding: 20px;
    }

    .stat-box div h3 {
        font-size: 30px;
    }
}
/* ================= COMMITTEE ================= */
.members{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
}

.members div{
    background:#ffffff;
    padding:20px;
    border-radius:10px;
    width:200px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

/* ================= NOTICES ================= */
.notices ul{
    max-width:600px;
    margin:auto;
    padding:0;
}

.notices li{
    background:#ffffff;
    padding:12px;
    margin:10px 0;
    border-radius:8px;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
}

/* ================= FAQ ================= */
.faq-item{
    max-width:600px;
    margin:10px auto;
    text-align:left;
    background:#ffffff;
    border-radius:8px;
    padding:10px 15px;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
}

.faq-item h4{
    cursor:pointer;
    margin:0;
}

.faq-item p{
    display:none;
    margin-top:10px;
    font-size:14px;
}

.faq-item.active p{
    display:block;
}

/* ================= CONTACT ================= */
.contact{
    background:#0b4a5a;
    color:white;
}

.contact p{
    margin:10px 0;
}

/* ================= MOBILE RESPONSIVE ================= */
@media(max-width:768px){

    section{
        padding:40px 15px;
    }

    section h2{
        font-size:22px;
    }

    .card, .feature-box div{
    width:100%;
    max-width:300px;
}

    .stat-box{
        flex-direction:column;
        gap:15px;
    }
     .timeline{
        flex-wrap:nowrap;
        overflow-x:auto;
    }
}

/* Extra Small Devices */
@media (max-width: 480px){

.hero{
    height:65vh;
}

.hero h1{
    display:none;
}

.hero-content p{
        font-size:14px;
        padding:10px;
    }

}
.how-it-works + .categories {
    margin-top: 0;
}
/* Mobile styles */
@media (max-width: 992px){

  
    @keyframes slideDown{
        from{
            opacity:0;
            transform: translateY(-10px);
        }
        to{
            opacity:1;
            transform: translateY(0);
        }
    }
    .hero h1{
    display:none;
}
.hero
{
	height:70vh;
}
.hero-content p
{
	font-size: 14px;
}

}

