/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7; /* Increased line height for better readability */
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container h3{
    text-align:center
}
/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #667eea 0%, #0a0056 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15); /* Slightly increased shadow */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0;
}

/* New: Flexbox for nav-brand to align logo and text */
.nav-brand {
    display: flex;
    justify-content:center;
    align-items: center;
    gap: 10px;
}

.nav-brand h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-decoration:none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}


/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://codehs.com/uploads/82a6c110e1c23a53619b740b2b6903fb");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    z-index:0; 
}
.overlay{
    position: absolute;
    top:0;
    left:0;
    right:0;  
    bottom:0;
    background-color:rgba(0, 0, 0, 0.25);
    z-index:1;
}
.hero-content {
    position: absolute;
    max-width: 800px;
    padding: 0 20px;
    z-index:2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color:white;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out forwards 0.3s;
}

/* New: Styles for Impact Section */
.impact {
    background: #f0f4f8; /* A light, clean background */
    padding: 80px 0; /* Consistent vertical padding */
}

.impact h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50; /* Darker, professional heading color */
    margin-bottom: 1.5rem;
}

.impact p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    color: #555;
    line-height: 1.8;
}

.impact ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding-left: 0;
    text-align: left; /* Align list items to the left */
}

.impact ul li {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.8rem;
    padding-left: 25px; /* Indent list items */
    position: relative;
}

.impact ol li {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.8rem;
    padding-left: 25px; /* Indent list items */
    position: relative;
    margin-left:183px;
}

.impact ul li::before {
    content: '\2022'; /* Bullet point character */
    color: #667eea; /* Color of the bullet point */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

/* Bots Section */
.bots {
    background: #f8f9fa;
    padding: 80px 0; /* Ensure consistent padding */
}

.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.bot-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bot-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.bot-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.bot-card p {
    color: #666;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transition for background color and transform */
}

.contact-form button:hover {
    transform: translateY(-2px); /* Corrected translateY syntax */
    background-color: #667eea; /* Reverted to original background color */
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .bot-grid {
        grid-template-columns: 1fr;
    }
}

.content-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-block {
    position: relative;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer; /* Indicate clickable */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    min-height: 250px; /* Ensure sufficient height for image */
}

.section-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker initial overlay */
    opacity: 1; 
    transition: opacity 0.3s ease;
    z-index: 1;
}

.section-block h2,
.section-block h3,
.section-block p {
    position: relative;
    z-index: 2;
    color: #fff; 
    opacity: 1; /* Always visible text for better readability */
    transition: opacity 0.3s ease;
    text-align: center; /* Center text within the blocks */
}

.section-block:hover::before {
    opacity: 0.8; /* Darker overlay on hover */
}

.section-block h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.section-block h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.section-block p {
    font-size: 1rem;
    line-height: 1.6;
}

h1{
    text-align: center;   
    font-size:3.75rem 
}

/* Unique Background Images for Sections */
.section-block-1 {
    background-image: url("https://codehs.com/uploads/4db3e6b5bbc0f6262ecf4079380a1d0a");
}

.section-block-2 {
    background-image: url("https://codehs.com/uploads/4ca843d7c76c868ae15612257b9bdbfa");
}

.section-block-3 {
    background-image: url("https://codehs.com/uploads/7dae4a0f2a9bf7a7d4c83d0fcff285de");
}

.section-block-4 {
    background-image: url("https://codehs.com/uploads/4d98a6bd2f3727a26666e638f694a95b");
}

.section-block-5 {
    background-image: url("https://codehs.com/uploads/67669b2957023a87d8a1a64205b00303");
}

.section-block-6 {
    background-image: url("https://codehs.com/uploads/c8c8f89a2a36be337632e8cf9dad7331");
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New: Scroll-to-Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #5a6fd8;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}