/*
* Title: Enam S. Amevo Portfolio Stylesheet
* Description: Modular ECE Portfolio with Pixel Aesthetic
*/

/* 1. IMPORTS & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,900|Source+Sans+Pro:300,400');

@font-face {
    font-family: "retro1";
    src: url("../../libs/fonts/dpcomic.ttf") format("truetype");
}

/* 2. GENERAL ATTRIBUTES */
html {
    scroll-behavior: smooth;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    cursor: URL("../../assets/img/cursor/cursor.png"), auto !important;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 60px; /* Spacer for fixed nav */
    font-family: 'retro1', sans-serif;
    line-height: 1.15;
    background-color: #fff;
    color: #000;
}

/* 3. NAVIGATION BAR (FIXED) */
.nav-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    padding: 15px 0;
    border-bottom: 2px solid #333;
}

.nav-top ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex !important; /* Forces horizontal layout */
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
}

.nav-top li {
    margin: 0 20px;
    display: inline-block;
}

.nav-top a {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: #fff !important;
    text-decoration: none;
    transition: 0.3s;
}

.nav-top a:hover {
    color: #00ffff !important;
    text-shadow: 0 0 5px #00ffff;
}

/* 4. HERO SECTION */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url("../../assets/img/hero-min.gif") center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-text {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    /* This ensures children stay stacked and spaced */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Forces a minimum gap between H1, H2, and Button */
}

.hero-text h1, .hero-text h2, .hero-text p {
    margin: 0; /* Reset margins so 'gap' handles the spacing */
}

.hero-text h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 6vw, 4rem);
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap; /* PREVENTS FOLDING */
    text-shadow: -4px 0 #000, 0 4px #000, 4px 0 #000, 0 -4px #000;
    margin-bottom: 20px;
}

.hero-text h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.8rem, 3vw, 1.8rem);
    color: #ffca8a;
    text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000;
}

/* 5. ABOUT SECTION */
#about {
    padding: 80px 20px;
    text-align: center;
    background: rgb(255, 0, 0);
    border-bottom: 1px solid #333;
}

.heading {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 40px;
    display: inline-block;
    border-bottom: 3px solid #ffca8a;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
}

/* 6. BUTTONS */
.btn {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    /* Responsive font size for the button too */
    font-size: clamp(0.5rem, 1.5vw, 0.8rem);
    padding: 12px 20px;
    border: 3px solid #00ffff;
    background: transparent;
    color: #00ffff;
    text-decoration: none;
    transition: 0.3s;
    /* Prevent the button from getting too wide */
    max-width: fit-content;
    line-height: 1.5; /* Adds height so text doesn't touch the top/bottom borders */
}

.btn:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 4px 4px 0 #fff;
}

/* 7. RESPONSIVE QUERIES */
@media (max-width: 768px) {
    .nav-top li { margin: 0 10px; }
    .nav-top a { font-size: 0.5rem; }
    .hero-text h1 { white-space: normal; line-height: 1.2; }
}

/* --- 1. EDUCATION SECTION REPAIR --- */
#education {
    padding: 80px 20px;
    text-align: center;
    background-color: #F5F5F5; /* Standard light grey background */
    color: #374054;
}

#education-timeline {
    margin: 30px auto;
    max-width: 800px;
    display: block; /* Changed from flex to block to stack normally */
}

#education-timeline div {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border: 4px solid #c2c2c2; /* Thicker border for that 'retro' box feel */
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1); /* Hard shadow instead of soft */
    text-align: left;
}

#education-timeline h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #374054;
}

/* --- 2. HARDWARE & PROGRAMMING (SKILLS) REPAIR --- */
#skills {
    padding: 80px 20px;
    text-align: center;
    background: #ffffff;
    color: #374054;
}

#skills ul {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to next line instead of going off-screen */
    justify-content: center;
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    gap: 15px; /* Consistent spacing between skill chips */
}

#skills li {
    padding: 12px 18px;
    background: #e4e4ea;
    color: #374054;
    border: 3px solid #868687;
    font-size: 0.75rem;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
}

/* --- 3. UNIVERSAL SECTION HEADING --- */
.heading {
    display: table; /* Shrinks the background/border to fit the text only */
    margin: 0 auto 50px auto;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4rem;
    color: #374054;
    border-bottom: 4px solid #ffca8a; /* Georgia Tech-ish accent */
    padding-bottom: 10px;
}
/* --- FOOTER REPAIR --- */
footer {
    background-color: #ffffff !important; /* Forces white background */
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #eee; /* Light divider trace */
    font-family: 'Source Sans Pro', sans-serif;
    color: #74808a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* --- FOOTER CENTERING FIX --- */
footer {
    background-color: #ffffff !important;
    padding: 60px 0 !important;
    width: 100% !important;
    border-top: 1px solid #eee;
    display: block !important; /* Resetting to block to use auto-margins */
    text-align: center !important;
    clear: both;
}

/* Forces the table and inner divs to behave */
footer table, 
footer .mobile, 
footer .social-mob,
footer .social {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important; /* Kills any old template floats */
    width: 100% !important;
}

footer p {
    font-family: 'Source Sans Pro', sans-serif;
    color: #374054;
    margin: 10px 0 !important;
    display: block;
}

.social-mob {
    display: flex !important;
    justify-content: center !important;
    gap: 30px;
    padding: 20px 0;
}

.social-mob a {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #374054 !important;
    text-decoration: none;
}