:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* Sections */
section {
    padding: 80px 10%;
    min-height: 100vh;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

/* About Us */
.about-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    flex: 1 1 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleY(1);
}

.icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.mission-card {
    background: #000;
    color: #fff;
}

.mission-card .icon-large {
    color: #fff;
}

.mission-card p {
    color: #ddd;
    text-align: center;
}

.mission-card::before {
    background: #fff;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
}

.team-member h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: #f9f9f9;
    padding: 20px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #000;
    color: #fff;
}

.news-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.news-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-date {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

/* Contact */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    font-size: 1.2rem;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: #fdfdfd;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

button[type="submit"] {
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #333;
}

footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 10%;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background: rgba(255, 255, 255, 0.98);
        /* More opaque for mobile menu */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        /* Slightly wider for better touch targets */
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        /* Smoother transition */
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    .nav-links li {
        margin: 25px 0;
        opacity: 0;
        /* For animation */
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Mobile specific animations */
    .nav-active li {
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Smaller for mobile */
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 50px 5%;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .about-text,
    .contact-info,
    .contact-form {
        width: 100%;
        font-size: 0.95rem;
        /* Smaller text */
    }

    /* Team Section Mobile Refinement */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on mobile */
        gap: 15px;
    }

    .team-member {
        padding: 15px 10px;
    }

    .team-member img {
        width: 80px;
        /* Smaller images */
        height: 80px;
        margin-bottom: 10px;
    }

    .team-member h3 {
        font-size: 1rem;
    }

    .team-member p {
        font-size: 0.8rem;
    }

    /* Animation Refinements for Mobile */
    .team-member {
        animation: fadeInUp 0.5s ease-out forwards;
        opacity: 0;
        /* Start hidden */
        animation-delay: 0.2s;
        /* Staggered effect handled by view, base delay here */
    }

    /* Ensure elements are visible if animation fails or JS is slow */
    .team-member:nth-child(n) {
        animation-fill-mode: forwards;
    }

    /* News Mobile */
    .news-grid {
        grid-template-columns: 1fr;
        /* Stack news items */
    }

    .news-item {
        margin-bottom: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        /* Card effect on mobile */
    }
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* General Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}