/* ===================================
   Fab Academy 2026 Stylesheet
   Easy to customize and update
   =================================== */

/* CSS Variables - Change these to customize colors easily! */
:root {
    /* Main Colors */
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F7B801;
    --dark-bg: #1A1A2E;
    --light-bg: #F8F9FA;
    
    /* Text Colors */
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --text-gray: #6C757D;
    
    /* Fonts */
    --heading-font: 'Archivo Black', sans-serif;
    --body-font: 'Work Sans', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===================================
   HERO SECTION (Home Page)
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 5rem;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--primary-color);
}

.hero-title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-bg);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
}

.hero-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    opacity: 0.1;
    z-index: 1;
}

/* ===================================
   QUICK LINKS / CARDS SECTION
   =================================== */
.quick-links {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--secondary-color);
}

/* ===================================
   PAGE HEADER (For inner pages)
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--light-bg);
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.content-section {
    padding: 4rem 0;
}

/* About Page Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-image .placeholder-image {
    background-color: #e9ecef;
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    overflow: hidden;
}

.placeholder-image img {
  width: 100%;
  object-fit: cover;
}

.about-text h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.about-text h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    padding-left: 0;
}

.skills-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skills-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===================================
   ASSIGNMENTS PAGE - WEEKS GRID
   =================================== */
.weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.week-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
}

.week-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.week-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.week-card:hover::before {
    opacity: 0.05;
}

.week-card * {
    position: relative;
    z-index: 1;
}

.week-number {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.week-card h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.week-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.week-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.week-card:hover .week-arrow {
    transform: translateX(5px);
}

/* ===================================
   INDIVIDUAL WEEK PAGE
   =================================== */
.week-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 3rem 0 2rem;
    color: var(--text-light);
}

.back-link {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

.week-title-container {
    max-width: 900px;
    margin: 0 auto;
}

.week-label {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.week-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--text-light);
    margin: 0;
}

.week-content {
    max-width: 900px;
    margin: 0 auto;
}

.week-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.week-section h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.week-section h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.week-section h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.week-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.week-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.week-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.week-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

.challenge-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-color);
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.nav-btn {
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===================================
   FINAL PROJECT PAGE
   =================================== */
.project-content {
    max-width: 900px;
    margin: 0 auto;
}

.project-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.project-section h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.project-section h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.project-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.project-section li {
    margin-bottom: 0.5rem;
}

.project-hero-image,
.placeholder-image {
    background-color: #e9ecef;
    padding: 4rem 2rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-list {
    list-style: none;
    padding-left: 0;
}

.download-list li {
    margin-bottom: 0.5rem;
}

.download-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.download-list a:hover {
    color: var(--secondary-color);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .assignment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
