/* ============================================
   DEREK ENGLES PORTFOLIO - MAIN STYLESHEET
   Clean Version - Desktop-first with Mobile Overrides
   
   TABLE OF CONTENTS:
   1. CSS Variables
   2. Reset & Base Styles
   3. Typography
   4. Utility Classes
   5. Buttons
   6. Header
   7. Hero Section
   8. Premier Project Section
   9. Portfolio Section
   10. Full Stack Section
   11. Books Section
   12. CTA Section
   13. Footer
   14. Responsive - Tablet (1024px)
   15. Responsive - Mobile (767px)
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
/* TEMPORARY DEBUG - REMOVE AFTER FINDING ISSUE */


:root {
    --color-black: #030901;
    --color-white: #FFFFFF;
    --color-bg-main: #fafafa;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #e8e8e8;
    --color-blue: #004aad;
    
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--color-bg-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* ============================================
   4. UTILITY CLASSES
   ============================================ */
.bold-text { 
    font-weight: 700; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

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

.btn-secondary,
.btn-outline,
.btn-outline-dark {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-outline-dark:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--color-black);
    transform: translateY(-2px);
}

/* ============================================
   6. HEADER
   ============================================ */
.main-header {
    background-color: var(--color-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--color-white);
    font-size: 1.5rem;
}

.main-nav .nav-link {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: lowercase;
}

.main-nav .nav-link:hover {
    opacity: 0.8;
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero-section {
    padding: 6rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 80%;
    border-radius: 20px;
}

/* ============================================
   8. PREMIER PROJECT SECTION
   ============================================ */
.premier-section {
    background-color: var(--color-gray-light);
    padding: 6rem 0;
}

.premier-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.premier-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.premier-subtitle {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.premier-links {
    display: flex;
    gap: 1rem;
}

.premier-image img {
    width: 100%;  /* Ensures it fills its container */
    max-width: 110%;  /* Allows it to be 10% bigger */
    transform: scale(1.1);  /* Scales up by 10% */
    margin-top: 1rem;
}

/* ============================================
   9. PORTFOLIO SECTION
   ============================================ */
.portfolio-section {
    padding: 6rem 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.portfolio-subtitle {
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-card {
    background-color: var(--color-gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-image {
    margin-bottom: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--color-blue);
    font-weight: 600;
    text-decoration: underline;
}

.card-link:hover {
    opacity: 0.8;
}

.tech-stack {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-stack img {
    width: 40%;
    margin: 0 auto;
}

/* ============================================
   10. FULL STACK SECTION
   ============================================ */
.fullstack-section {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.fullstack-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.fullstack-subtitle {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ============================================
   11. BOOKS SECTION
   ============================================ */
.books-section {
    padding: 6rem 0;
}

.books-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.book-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.book-image {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.book-image img {
    margin: 0 auto;
    max-height: 300px;
    border-radius: 8px;
}

.book-card .book-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.book-subtitle {
    font-size: 0.875rem;
    margin-top: -.5rem;
    margin-bottom: 1rem;
    color: #333;
    flex-grow: 1;
   
}

.book-link {
    color: var(--color-blue);
    font-weight: 600;
    text-decoration: underline;
    margin-top: auto;
}

.book-link:hover {
    opacity: 0.8;
}

/* ============================================
   12. CTA SECTION
   ============================================ */
.cta-section {
    background-color: var(--color-gray-light);
    padding: 6rem 0;
    text-align: center;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   13. FOOTER
   ============================================ */
.main-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-column h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-tagline {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 700;  /* Bolded as requested */
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}

.footer-copyright-desktop {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
}

.footer-copyright-mobile {
    display: none;  /* Hidden on desktop */
}

.footer-links {
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* ============================================
   14. RESPONSIVE - TABLET (768px to 1024px)
   ============================================ */
@media (max-width: 1024px) {
    /* LAYOUT ADJUSTMENTS */
    .hero-content,
    .premier-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image,
    .premier-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* PORTFOLIO */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* BOOKS */
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* FOOTER */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-column:last-child {
        grid-column: 3;
    }
}

/* ============================================
   15. RESPONSIVE - MOBILE (Below 768px)
   ============================================ */
@media (max-width: 767px) {
    
    /* GENERAL MOBILE ADJUSTMENTS */
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* TYPOGRAPHY - MOBILE */
    h1 { 
        font-size: 2.25rem;
        font-weight: 700;
    }
    h2 { 
        font-size: 2rem;
        font-weight: 700;
    }
    h3 { 
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    /* HEADER - MOBILE */
    .logo h1 {
        font-size: 1.25rem;
    }
    
    /* HERO SECTION - MOBILE */
    .hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-top: -3.5rem;
        margin-bottom: -1.5rem;
        display: flex;
        justify-content: center;
    }
    
    .hero-image img {
        width: 80%;
        border-radius: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        font-weight: 600;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: left;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* PREMIER SECTION - MOBILE */
    .premier-content {
        text-align: left;
    }
    
    .premier-title {
        font-size: 1.75rem;
        font-weight: 600;
    }
    
    .premier-subtitle {
        width: 90%;
    }

    .premier-links {
        flex-direction: column;
        align-items: stretch;
    }

    .premier-image img {
    width: 100%;
    transform: scale(1.1);  /* Scales up by 20% on mobile */
    }
    
    /* PORTFOLIO SECTION - MOBILE */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-title {
        font-size: 1.75rem;
        font-weight: 700;
        text-align: left;
    }

    .portfolio-subtitle {
        font-size: 1rem;
        text-align: left;
    }

    .tech-stack img {
    width: 85%;  /* Increased from 75% (10% bigger) */
    margin: 0 auto;
}
    
    /* FULL STACK SECTION - MOBILE */
    .fullstack-title {
        font-size: 1.7rem;
        font-weight: 700;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    /* BOOKS SECTION - MOBILE */
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .books-title {
        font-size: 2rem;
        font-weight: 700;
    }
    
    /* CTA SECTION - MOBILE */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    /* FOOTER - MOBILE */
    .main-footer {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1rem;
    }
    
    .footer-column:last-child {
        grid-column: auto;  /* Reset tablet rule */
    }
    
    .footer-column h4 {
        font-weight: 700;
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        font-family: var(--font-secondary);
    }
    
    .footer-tagline {
        font-size: 1.125rem;
        line-height: 1.5;
        font-family: var(--font-secondary);
        /* Inherits font-weight: 700 from desktop */
    }
    
    .footer-social {
        justify-content: flex-start;
        margin: 1rem 0;
    }
    
    .footer-links {
        padding-left: 0;
    }
    
    .footer-links li {
        margin-bottom: 0.25rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Hide desktop copyright, show mobile copyright */
    .footer-copyright-desktop {
        display: none;
    }
    
    .footer-copyright-mobile {
        display: block;
        margin-top: 1rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
        text-align: left;
    }
}

/* ============================================
   END OF STYLESHEET
   ============================================ */