/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #0f172a;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: #1e293b;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #22d3ee;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #22d3ee;
}

.cta-button {
    background-color: #f97316;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #f59e0b;
    transform: scale(1.05);
}

/* Search Bar Styles */
.search-container {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.search-input {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 25px 0 0 25px;
    background-color: #0f172a;
    color: #fff;
    font-size: 1rem;
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    width: 250px;
    background-color: #1e293b;
}

.search-button {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0 25px 25px 0;
    background-color: #22d3ee;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.search-button:hover {
    background-color: #06b6d4;
    transform: scale(1.05);
}

/* Search Results Styles */
#searchResults {
    display: none;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.5rem;
    border-bottom: 1px solid #0f172a;
    color: #94a3b8;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #0f172a;
    color: #22d3ee;
}

.search-result-item h4 {
    margin: 0;
    color: #22d3ee;
    font-size: 1.1rem;
}

.search-result-item p {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
}

/* Home Hero Section (for index.html) */
.home-hero {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle, #0f172a 0%, #1e293b 50%, #22d3ee 100%);
    background-size: 200% 200%;
    animation: radialAnimation 20s ease infinite;
}

.home-hero-content {
    z-index: 1;
}

.home-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.home-hero p {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    background-color: #f97316;
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s;
}

.hero-button:hover {
    background-color: #f59e0b;
    transform: scale(1.1);
}

/* Typing Animation (for index.html) */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #22d3ee;
    animation: typing 3s steps(22, end) forwards, blink 0.75s step-end infinite;
    width: 0;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #22d3ee;
    }
}

/* About Hero Section (for about.html) */
.about-hero {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle, #0f172a 0%, #1e293b 50%, #22d3ee 100%);
    background-size: 200% 200%;
    animation: radialAnimation 20s ease infinite;
}

.about-hero-content {
    z-index: 1;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #22d3ee;
}

.about-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Attacks Hero Section (for attacks.html) */
.attacks-hero {
    position: relative;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b, #f97316);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

.attacks-hero-content {
    z-index: 1;
}

.attacks-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.attacks-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Prevention Hero Section (for prevention.html) */
.prevention-hero {
    position: relative;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b, #22d3ee);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

.prevention-hero-content {
    z-index: 1;
}

.prevention-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.prevention-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Section and Card Styles */
.section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.card {
    background-color: #1e293b;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    width: 100%;
}

.card h2 {
    color: #22d3ee;
    margin-bottom: 2rem;
    text-align: center;
}

.prevention-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.prevention-card {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prevention-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
}

.prevention-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #22d3ee;
}

.prevention-card h3 {
    color: #22d3ee;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.prevention-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
}

/* Feature List (for index.html) */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #22d3ee;
}

.feature-card h3 {
    color: #22d3ee;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
}

/* Attack List (for attacks.html) */
.attack-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.attack-card {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attack-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.attack-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f97316;
}

.attack-card h3 {
    color: #22d3ee;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.attack-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
}

/* Mission Section (for about.html) */
.mission-section {
    background: #1e293b;
}

/* Contact Section (for contact.html) */
.card h3 {
    color: #fff;
    margin-top: 1.5rem;
    text-align: center;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.member-card {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #22d3ee;
}

.member-card h4 {
    color: #22d3ee;
    margin: 0.5rem 0;
    font-size: 1.1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.member-card p {
    color: #94a3b8;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Rating Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    background-color: #0f172a;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.close {
    color: #fff;
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

.close:hover {
    color: #f97316;
}

.rating {
    margin: 1rem 0;
}

.star {
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.star:hover, .star.active {
    color: #f97316;
}

.submit-rating {
    background-color: #22d3ee;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-rating:hover {
    background-color: #06b6d4;
}

/* Animations */
@keyframes radialAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
}

.prevention-hero h1.animate-fade-in {
    animation-delay: 0.3s;
}

.prevention-hero p.animate-fade-in {
    animation-delay: 0.6s;
}

.prevention-hero .hero-button.animate-bounce {
    animation-delay: 0.9s;
}

.prevention-card.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
}

.prevention-card.animate-slide-up:nth-child(1) {
    animation-delay: 1.2s;
}

.prevention-card.animate-slide-up:nth-child(2) {
    animation-delay: 1.5s;
}

.prevention-card.animate-slide-up:nth-child(3) {
    animation-delay: 1.8s;
}

.prevention-card.animate-slide-up:nth-child(4) {
    animation-delay: 2.1s;
}

.prevention-card.animate-slide-up:nth-child(5) {
    animation-delay: 2.4s;
}

.prevention-card.animate-slide-up:nth-child(6) {
    animation-delay: 2.7s;
}

/* Home Page Animations (for index.html) */
.home-hero p.animate-fade-in {
    animation-delay: 3.3s;
}

.home-hero .hero-button.animate-bounce {
    animation-delay: 3.6s;
}

.card h2.animate-fade-in {
    animation-delay: 1.2s;
}

.feature-card.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
}

.feature-card.animate-slide-up:nth-child(1) {
    animation-delay: 1.5s;
}

.feature-card.animate-slide-up:nth-child(2) {
    animation-delay: 1.8s;
}

.feature-card.animate-slide-up:nth-child(3) {
    animation-delay: 2.1s;
}

/* Attack Animations (for attacks.html) */
.attack-card.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
}

.attack-card.animate-slide-up:nth-child(1) {
    animation-delay: 1.2s;
}

.attack-card.animate-slide-up:nth-child(2) {
    animation-delay: 1.5s;
}

.attack-card.animate-slide-up:nth-child(3) {
    animation-delay: 1.8s;
}

.attack-card.animate-slide-up:nth-child(4) {
    animation-delay: 2.1s;
}

.attack-card.animate-slide-up:nth-child(5) {
    animation-delay: 2.4s;
}

.attack-card.animate-slide-up:nth-child(6) {
    animation-delay: 2.7s;
}

.attack-card.animate-slide-up:nth-child(7) {
    animation-delay: 3.0s;
}

.attack-card.animate-slide-up:nth-child(8) {
    animation-delay: 3.3s;
}

.attack-card.animate-slide-up:nth-child(9) {
    animation-delay: 3.6s;
}

.attack-card.animate-slide-up:nth-child(10) {
    animation-delay: 3.9s;
}

.attack-card.animate-slide-up:nth-child(11) {
    animation-delay: 4.2s;
}

.attack-card.animate-slide-up:nth-child(12) {
    animation-delay: 4.5s;
}

.attack-card.animate-slide-up:nth-child(13) {
    animation-delay: 4.8s;
}

.attack-card.animate-slide-up:nth-child(14) {
    animation-delay: 5.1s;
}

.attack-card.animate-slide-up:nth-child(15) {
    animation-delay: 5.4s;
}

.attack-card.animate-slide-up:nth-child(16) {
    animation-delay: 5.7s;
}

.attack-card.animate-slide-up:nth-child(17) {
    animation-delay: 6.0s;
}

.attack-card.animate-slide-up:nth-child(18) {
    animation-delay: 6.3s;
}

.attack-card.animate-slide-up:nth-child(19) {
    animation-delay: 6.6s;
}

.attack-card.animate-slide-up:nth-child(20) {
    animation-delay: 6.9s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1e293b;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .cta-button {
        display: none;
    }

    .search-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 200px;
    }

    #searchResults {
        top: 120px;
        width: 80%;
    }

    .home-hero {
        height: 50vh;
    }

    .home-hero h1 {
        font-size: 2.5rem;
    }

    .home-hero p {
        font-size: 1rem;
    }

    .prevention-hero {
        height: 40vh;
    }

    .prevention-hero h1 {
        font-size: 2rem;
    }

    .prevention-hero p {
        font-size: 1rem;
    }

    .attacks-hero {
        height: 40vh;
    }

    .attacks-hero h1 {
        font-size: 2rem;
    }

    .attacks-hero p {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .prevention-list {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .attack-list {
        grid-template-columns: 1fr;
    }

    .team-members {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .member-card {
        width: 100%;
        max-width: 300px;
    }

    .typing-text {
        animation: typing 2.5s steps(22, end) forwards, blink 0.75s step-end infinite;
    }
}