/* Homepage Redesign Styles */

:root {
    --tech-primary: #00d2ff;
    /* Cyan/Blue neon */
    --tech-secondary: #3a7bd5;
    /* Deep blue */
    --tech-dark: #0f172a;
    /* Dark slate */
    --tech-darker: #020617;
    /* Almost black */
    --tech-text: #e2e8f0;
    /* Light gray text */
    --tech-text-muted: #94a3b8;
    --tech-accent: #f43f5e;
    /* Pink/Red accent */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Font variables - change these to switch fonts */
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* ===========================================
   FONT TESTING SYSTEM

   To test different font pairings, add one of these
   classes to the <body> tag in home.html:

   - font-theme-1: Space Grotesk + DM Sans (Techy + Clean)
   - font-theme-2: Playfair Display + Inter (Elegant + Modern)
   - font-theme-3: Outfit + Work Sans (Friendly + Professional)
   - font-theme-4: Sora + Plus Jakarta Sans (Modern + Minimal)
   - font-theme-5: Inter + Inter (Current - Clean + Consistent)

   Example: <body id="page-top" class="font-theme-1">
   =========================================== */

/* Theme 1: Space Grotesk + DM Sans (Techy + Clean) */
body.font-theme-1 {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* Theme 2: Playfair Display + Inter (Elegant + Modern) */
body.font-theme-2 {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Theme 3: Outfit + Work Sans (Friendly + Professional) */
body.font-theme-3 {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Work Sans', sans-serif;
}

/* Theme 4: Sora + Plus Jakarta Sans (Modern + Minimal) */
body.font-theme-4 {
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Theme 5: Inter + Inter (Current - Clean + Consistent) */
body.font-theme-5 {
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Theme 6: Fjalla One + Cantarell (Bold + Readable) */
body.font-theme-6 {
    --font-heading: 'Fjalla One', sans-serif;
    --font-body: 'Cantarell', sans-serif;
}

/* Theme 7: Unica One + Crimson Text (Stylish + Classic) */
body.font-theme-7 {
    --font-heading: 'Unica One', sans-serif;
    --font-body: 'Crimson Text', serif;
}

/* Theme 8: Oswald + Merriweather (Strong + Refined) */
body.font-theme-8 {
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Merriweather', serif;
}

/* Apply font variables to elements */
h1, h2, h3, h4, h5, h6,
.masthead-heading,
.display-4,
.navbar-brand {
    font-family: var(--font-heading);
}

body,
p,
.content-body,
.nav-link,
.btn {
    font-family: var(--font-body);
}

body#page-top {
    background-color: var(--tech-darker);
    color: var(--tech-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Hero Section */
header.masthead {
    position: relative;
    background: url('../assets/img/website-redesign-bg.png') no-repeat center center scroll;
    background-size: cover;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
}

header.masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.3) 0%, var(--tech-darker) 100%);
    pointer-events: none;
}

.masthead-content {
    z-index: 1;
    text-align: center;
}

header.masthead .masthead-content .masthead-heading {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--tech-text-muted) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: .35rem;
}

header.masthead .masthead-content .masthead-subheading {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--tech-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: .35rem;
}

/* Homepage Masthead - Larger styling */
header.masthead.masthead-home .masthead-content .masthead-heading {
    margin-top: 2rem;
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

header.masthead.masthead-home .masthead-content .masthead-subheading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

@media (max-width: 992px) {
    header.masthead.masthead-home .masthead-content .masthead-heading {
        font-size: 2rem;
    }

    header.masthead.masthead-home .masthead-content .masthead-subheading {
        font-size: 0.9rem;
    }

    .btn-tech {
        padding: 0.4rem 1.2rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    header.masthead.masthead-home .masthead-content .masthead-heading {
        font-size: 2rem;
    }

    header.masthead.masthead-home .masthead-content .masthead-subheading {
        font-size: 0.85rem;
    }

    .btn-tech {
        padding: 0.35rem 1rem;
        font-size: 0.7rem;
    }

    section {
        padding: 0.5rem 0;
    }
}

/* Buttons */
.btn-tech {
    background: transparent;
    border: 2px solid var(--tech-primary);
    color: var(--tech-primary);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-tech::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--tech-primary);
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-tech:hover {
    color: var(--tech-darker);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.btn-tech:hover::before {
    width: 100%;
}

/* Content Sections */
section {
    padding: 1.5rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--tech-darker);
}

.section-glass {
    background: linear-gradient(180deg, var(--tech-darker) 0%, var(--tech-dark) 100%);
}

.content-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-primary);
}

.display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tech-text-muted);
}

.img-tech {
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.img-tech:hover {
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.4);
    border-color: var(--tech-primary);
}

/* Navbar Overrides */
.navbar-custom {
    background-color: rgba(2, 6, 23, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-dark .navbar-brand {
    font-weight: 700;
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--tech-text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--tech-primary);
}

/* Responsive */
@media (max-width: 992px) {
    header.masthead .masthead-content .masthead-heading {
        font-size: 1.25rem;
    }

    header.masthead .masthead-content .masthead-subheading {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    header.masthead .masthead-content .masthead-heading {
        font-size: 1.1rem;
    }

    header.masthead .masthead-content .masthead-subheading {
        font-size: 0.65rem;
    }

    header.masthead {
        min-height: 20vh;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .content-card {
        padding: 1.25rem;
    }

    /* Mobile: Tighter layout - maximize screen real estate */
    .container,
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .px-4,
    .px-5 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .p-5 {
        padding: 0.75rem !important;
    }

    /* Navbar: Brand left, hamburger right */
    .navbar {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .navbar-brand {
        margin-left: 0;
        padding-left: 0;
    }

    .navbar-toggler {
        margin-right: 0;
        padding-right: 0.5rem;
    }

    /* Content areas - full width on mobile */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Blog content cards */
    .card {
        margin-left: 0;
        margin-right: 0;
    }

    .card-body {
        padding: 1rem;
    }

    /* Justified text on mobile for cleaner edges */
    .content-body,
    .card-text,
    article p {
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
        line-height: 1.5;
    }

    /* Exclude centered elements from justification */
    .text-center p,
    footer p {
        text-align: center !important;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Tighter section padding on mobile */
    section {
        padding: 0.5rem 0;
    }
}

/* Small Masthead for Child Pages */
header.masthead.masthead-small {
    min-height: auto;
    height: auto;
    padding-top: 6rem;
    /* Account for navbar */
    padding-bottom: 1.5rem;
    background-attachment: scroll;
}

header.masthead.masthead-small .masthead-heading {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    /* Match homepage gradient */
    background: linear-gradient(135deg, #fff 0%, var(--tech-text-muted) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header.masthead.masthead-small .masthead-subheading {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--tech-primary);
    /* Match homepage subtitle color */
    letter-spacing: 0.15em;
}

@media (max-width: 576px) {
    header.masthead.masthead-small {
        padding-top: 5rem;
        padding-bottom: 1rem;
    }

    header.masthead.masthead-small .masthead-heading {
        font-size: 1.4rem;
    }

    header.masthead.masthead-small .masthead-subheading {
        font-size: 0.8rem;
    }
}

/* Global Tech Theme Overrides */
body {
    background-color: var(--tech-darker);
    color: var(--tech-text);
}

a {
    color: var(--tech-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--tech-accent);
}

/* Post Titles in Lists */
h2.post-title a,
.post-title a {
    color: var(--tech-primary) !important;
    /* Lighter blue */
}

h2.post-title a:hover,
.post-title a:hover {
    color: var(--tech-accent) !important;
}

/* Forms */
.form-control {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--tech-text);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
}

.form-control:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25);
    color: var(--tech-text);
}

.form-label {
    color: var(--tech-text);
    font-weight: 500;
}

/* Cards (Blog, etc) */
.card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.card-title {
    color: #fff;
}

.card-text {
    color: var(--tech-text-muted);
}

.text-muted {
    color: #64748b !important;
}

/* Pagination */
.page-link {
    background-color: var(--tech-dark);
    border-color: var(--glass-border);
    color: var(--tech-primary);
}

.page-link:hover {
    background-color: var(--tech-darker);
    border-color: var(--tech-primary);
    color: var(--tech-primary);
}

.page-item.active .page-link {
    background-color: var(--tech-primary);
    border-color: var(--tech-primary);
    color: var(--tech-darker);
}

.page-item.disabled .page-link {
    background-color: var(--tech-darker);
    border-color: var(--glass-border);
    color: var(--tech-text-muted);
}

/* Projects Page */
.project-highlight {
    display: block;
    margin: 1rem auto 0;
    max-width: calc(100% - 2rem);
    height: auto;
}

/* Footer Styles */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 8px;
    font-size: 1.5rem;
    color: var(--tech-text-muted);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    color: var(--tech-primary);
    transform: translateY(-3px);
}

/* Font Customizer - Subtle styling */
.font-customizer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.customizer-label {
    display: block;
    font-size: 0.7rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.font-select-minimal {
    background: transparent;
    border: 1px solid #334155;
    color: #64748b;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.font-select-minimal:hover {
    border-color: var(--tech-primary);
    color: var(--tech-text-muted);
}

.font-select-minimal:focus {
    outline: none;
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.1);
}

.font-select-minimal option {
    background: var(--tech-darker);
    color: var(--tech-text);
}