/* =================================
   GLOBAL STYLES
   =================================
*/

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;

    /* === YOUR STATIC BACKGROUND === */
    background-color: #000000; 
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =================================
   NEW STICKY HEADER
   =================================
*/
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding: 5px 40px; /* Slim header padding */
    box-sizing: border-box;
    z-index: 1000;
    
    /* === HIDDEN BY DEFAULT === */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%); 
    
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
}

/* This class is ADDED BY JAVASCRIPT when you scroll */
#main-header.scrolled {
    /* === MAKES IT VISIBLE === */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    /* === HEADER BACKGROUND === */
    background-image: url('background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center; 

    border-bottom: 1px solid #00FF00;
}

.header-logo {
    max-width: 150px; /* Small logo for slim header */
    height: auto;
}


/* =================================
   HERO SECTION (Your content)
   =================================
*/
.hero-container {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    min-height: 100vh;      
    text-align: center;
    padding: 20px;
    box-sizing: border-box; 
}

/* =================================
   LOGO & SLOGAN
   =================================
*/
.logo {
    max-width: 600px;
    width: 90%;       
    height: auto;     
}

.slogan {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin-top: 5px;
    margin-bottom: 40px; 
}

/* =================================
   NAVIGATION BUTTONS
   =================================
*/
.nav-buttons {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px; 
}

.btn {
    padding: 12px 28px;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 50px; 
    transition: all 0.3s ease; 
    cursor: pointer;
}

.btn-primary {
    background-color: #00FF00;
    border: 2px solid #00FF00;
    color: #000000; 
}

.btn-primary:hover {
    background-color: #00AA00; 
    border-color: #00AA00;
    transform: scale(1.05); 
}

.btn-secondary {
    background-color: #222222; 
    border: 2px solid #00FF00;
    color: #00FF00; 
}

.btn-secondary:hover {
    background-color: #FFFFFF; 
    border-color: #FFFFFF;     
    color: #000000;             
    transform: scale(1.05);
}

/* =================================
   PROJECT SECTION
   =================================
*/
.project-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #050505;
    border-top: 2px solid #00FF00;

    /* Fixes header overlap */
    scroll-margin-top: 80px;
}

.section-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #00FF00;
    margin: 8px auto 0;
}

.project-box {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
    gap: 40px; 
    
    border: 3px solid #00FF00;
    padding: 40px;
    
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
}

.project-image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border: 2px dashed #00FF00;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
}

.project-content {
    width: 100%;
    max-width: 500px;
    text-align: left;
}

.project-content h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #00FF00;
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.project-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF;
}

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* =================================
   DEVLOG SECTION
   =================================
*/
.devlog-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #000000;
    border-top: 2px solid #00FF00;

    /* Fixes header overlap */
    scroll-margin-top: 80px;
}

.devlog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin-top: 30px;
}

.post-card {
    background-color: #0a0a0a;
    border: 2px solid #222;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: #00FF00;
    transform: translateY(-5px);
}

.post-date {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.post-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00FF00;
    margin: 0 0 15px 0;
}

.post-snippet {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 25px;
    flex-grow: 1; 
}

.post-card .btn-secondary {
    width: 100%; 
    text-align: center;
    box-sizing: border-box;
}

/* =================================
   "VIEW ALL" BUTTON STYLE
   =================================
*/
.view-all-btn {
    margin-top: 40px; /* Space above the button */
}

/* =================================
   FOOTER
   =================================
*/
#main-footer {
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    background-color: #000000;
    border-top: 1px solid #222; /* Faint line */
    text-align: center;
}

#main-footer p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #888; /* Muted gray text */
    letter-spacing: 0.5px;
}
