:root {
    --primary: #0056b3;
    --secondary: #00b894;
    --dark: #2d3436;
    --light: #f9f9f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark); }
.container { max-width: 1100px; margin: auto; padding: 0 20px; overflow: hidden; }

/* Navbar */



.navbarx { background: #fff; height: 70px; display: flex; align-items: center; 
    border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }

/* Updated Navbar with Drop Shadow */
.navbar { 
    background: #fff; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    border-bottom: 1px solid #f1f5f9; /* Light border for definition */
    position: sticky; 
    top: 0; 
    z-index: 1000;
    
    /* Box Shadow: Horizontal, Vertical, Blur, Spread, Color */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    
    /* Optional: Smooth transition if you change shadow on scroll later */
    transition: box-shadow 0.3s ease;
}


.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-weight: 700; font-size: 1.5rem; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; }

/* Hero */
.hero { background: var(--dark); color: #fff; height: 60vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.8; }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff !important; padding: 10px 20px; border-radius: 5px; }
.btn-secondary { background: var(--secondary); color: #fff; padding: 12px 25px; text-decoration: none; border-radius: 5px; }

/* Sections */
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.img-responsive { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Form */
.signup-container { max-width: 500px; margin: auto; text-align: center; }
.signup-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.signup-form input, .signup-form select { padding: 12px; border: 1px solid #ddd; border-radius: 5px; }
.btn-full { background: var(--primary); color: #fff; border: none; padding: 15px; cursor: pointer; border-radius: 5px; font-weight: bold; }

/* Responsive Logic */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; } /* Simplified for example */
}


/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 80vh; /* Taller than previous version for impact */
    overflow: hidden;
    background: #000;
}

.slides {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%); /* Makes text easier to read */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Slider Dots */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--secondary);
}

/* Modern Typography Reset */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    line-height: 1.7; 
    color: #1a1d23;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { 
    font-weight: 700; 
    letter-spacing: -0.02em; 
}

/* Multi-Section Footer Styles */
.main-footer {
    background: #0f172a; /* Deep Navy Corporate Blue */
    color: #f8fafc;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.branding p {
    color: #94a3b8;
    margin-top: 20px;
    font-size: 0.95rem;
    max-width: 300px;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* 1. Hamburger Icon Styling */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: 0.3s;
    border-radius: 3px;
}

/* 2. Mobile Responsive Logic */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%; /* Start hidden off-screen to the left */
        top: 0;
        height: 100vh; /* Fill full height */
        width: 50%; /* Only fill half the screen */
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* "Flash" effect transition */
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        display: flex !important;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0; /* Slide in from left */
    }

    .nav-links li {
        margin: 20px 0;
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 12px; /* Space between icon and text */
    }

    .nav-links a i {
        color: var(--primary);
        width: 25px; /* Fixed width so icons align vertically */
    }

    /* Ensure the hamburger stays visible and above the drawer */
    .menu-toggle {
        display: flex;
        z-index: 1001; 
    }
}

/* Feature Grid for 3-Column Layout */
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.icon-tech {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.border-left {
    border-left: 2px solid #f1f5f9;
    padding-left: 40px;
}

.content-box h2 {
    margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }
    .border-left {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
    }
}

/* Forum Feed Layout */
.feed-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 40px;
}

.sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sidebar-box h4 { margin-bottom: 15px; font-size: 0.9rem; color: #64748b; text-transform: uppercase; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 10px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; margin-bottom: 5px; transition: 0.3s; }
.sidebar-box li.active { background: #f1f5f9; color: var(--primary); font-weight: 600; }
.sidebar-box li i { margin-right: 10px; }

/* Post Card Styling */
.post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.post-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.user-avatar { width: 45px; height: 45px; border-radius: 50%; }
.post-meta strong { font-size: 1rem; color: var(--dark); }
.post-meta span { font-size: 0.85rem; color: #94a3b8; }
.post-meta .specialty { font-size: 0.8rem; color: var(--primary); margin: 0; }

.post-body p { font-size: 1rem; color: #334155; margin-bottom: 10px; }
.post-tag { color: var(--primary); font-size: 0.9rem; font-weight: 600; }

.post-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    gap: 20px;
}

.feed-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.feed-btn:hover { color: var(--primary); }

.badge {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .feed-container { grid-template-columns: 1fr; }
    .feed-sidebar { display: none; } /* Hide sidebar on mobile to save space */
}