/* Modern CSS with custom properties for easy theme changes */
:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --dark-bg: #0c0c1d;
    --light-bg: #1a1a3a;
    --text-color: #e0e0e0;
    --glow-color: rgba(0, 242, 254, 0.5);
}

/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Animated Gradient Button */
.btn-gradient {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--dark-bg);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px var(--glow-color);
}
.btn-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px var(--glow-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%; /* Use percentage for better scaling */
    background: rgba(12, 12, 29, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo h1 {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    font-size: 2rem;
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}
.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-list a:hover {
    color: var(--primary-color);
}
.nav-list a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 101;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    position: relative;
}
.hero h1 {
    font-size: 3.5rem; /* Slightly reduced for better balance */
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.glowing-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(150px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Sections & Cards */
.section-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 5%; /* Use percentage padding */
    background: var(--light-bg);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.section-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.card {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 15px;
    flex: 1; /* Allows cards to grow */
    min-width: 280px; /* Minimum width before wrapping */
    max-width: 320px; /* Maximum width */
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--glow-color);
}
.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    position: relative;
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* --- Responsive Design --- */

/* For Tablets */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 100%;
        height: 100vh;
        background: var(--dark-bg);
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.5s ease-in-out;
    }
    .nav-list.active {
        left: 0; /* Slide in */
    }
    .nav-list a {
        font-size: 1.5rem;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

/* For Mobile Phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-container h2 {
        font-size: 2rem;
    }
    .card {
        padding: 20px;
    }
}