/* 1. Variables & Global Reset */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #27ae60; /* Growth Green */
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text-dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* 2. Navigation (Professional Three-Part Layout) */
.navbar {
    background: var(--white);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jgs-logo {
    height: 60px; /* Adjust based on your logo preference */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

/* 3. Hero Section & Responsive Buttons */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 15px;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary, .btn-main {
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap; /* Prevents text from breaking onto two lines */
    transition: all 0.3s ease;
    text-align: center;
    min-width: 170px;
}

.btn-primary, .btn-main {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-primary:hover, .btn-main:hover {
    background: #219150;
    border-color: #219150;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* 4. Bootcamp Section Fix (No Overlap) */
.bootcamp-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Space between text, grid, and button */
}

.bootcamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-box {
    padding: 2rem;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bootcamp-action {
    margin-top: 1rem;
}

/* 5. General Layout Components */
.section { padding: 5rem 0; }
.bg-light { background: var(--light-bg); }
.text-center { text-align: center; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover { transform: translateY(-5px); }

.card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 6. Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
}

.socials { margin: 1.5rem 0; }
.socials a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s;
}

.socials a:hover { color: var(--secondary-color); }

.copy {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 7. Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide for simple mobile toggle in JS */
    
    .hero h2 { font-size: 2.5rem; }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}