/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #000000; /* This will make the header black */
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: #ffffff; /* Sets 'Iter' to white */
    margin: 0;
    padding: 0;
}

.logo h1 span {
    background-color: #ff8c00; /* Orange background for 'Hub' */
    color: #000000; /* Black text for 'Hub' */
    padding: 0 5px; /* Adds a small padding around 'Hub' to show the background */
    border-radius: 5px; /* Optional: adds rounded corners for a softer look */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FFD700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #FFD700;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    /* Replace 'your-image-url.jpg' with the actual path to your image */
    background-image: url('images/imgi_2_iter+gate.jpg'); 
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    min-height: 70vh; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff; /* Ensure text is visible on the new background */
    position: relative; /* Needed for overlay */
}

/* Optional: Add a dark overlay to make text more readable on busy backgrounds */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the last value (0.5) for darkness */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures content is above the overlay */
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.hero span {
    color: #FFD700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    animation: slideInUp 1s ease-out 0.4s both;
}

.cta-button {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

/* Courses Section */
.courses-section {
    background: #1a1a1a;
    padding: 80px 0;
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.section-title span {
    color: #FFD700;
}

/* Semester Tabs */
.semester-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    background: #333;
    color: white;
    border: 2px solid #555;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.tab-button.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border-color: #FFD700;
}

/* Semester Panels */
.semester-panel {
    display: none;
}

.semester-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.semester-panel h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #FFD700;
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.subject-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.subject-card:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.subject-card i {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

.subject-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.subject-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subject-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subject-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* About Section */
.about-section {
    background: #000;
    padding: 80px 0;
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #ccc;
}

.features {
    display: grid;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 2rem;
    color: #FFD700;
    margin-top: 0.5rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
}

.feature p {
    color: #ccc;
}

/* Contact Section */
.contact-section {
    background: #1a1a1a;
    padding: 80px 0;
    color: white;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #555;
    border-radius: 8px;
    background: #111;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FFD700;
}

/* Footer */
.footer {
    background: #111;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #FFD700;
}

.footer-section h3 span {
    color: #000;
    background: #FFD700;
    padding: 0 8px;
    border-radius: 4px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #FFD700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .semester-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tab-button {
        width: 80%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* View Notes Button */
.view-btn {
display: inline-block;
margin-top: 10px;
padding: 10px 18px;
background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
color: #000;
font-size: 14px;
font-weight: bold;
text-decoration: none;
border-radius: 25px;
transition: all 0.3s ease;
}

.view-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 20px 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subject-card {
        padding: 1.5rem;
    }
}