/* Dark theme CSS matching original HackersHarvest design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #065d95;
    --bg-dark: #000000;
    --header-dark: #161616;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --border-color: #333333;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Overlaid on banner (when inside hero-banner) or normal (on other pages) */
header {
    padding: 1rem 0;
    z-index: 100;
}

.hero-banner header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
}

header:not(.hero-banner header) {
    background-color: var(--header-dark);
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cabin', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover,
nav a.active {
    opacity: 0.8;
}

/* Hero Banner Section - Full width with background image */
.hero-banner {
    position: relative;
    min-height: 500px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), url('images/banner.jpg');
    background-size: cover;
    background-position: 47.17% 65.5%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-banner {
        min-height: 85vh;
    }
}

/* Hero Text Section - Below banner */
.hero-text {
    padding: 4rem 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.hero-text h1 {
    font-family: 'Cabin', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
}

/* Content Sections */
section {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

section:nth-child(even) {
    background-color: var(--header-dark);
}

h1 {
    font-family: 'Cabin', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

h2 {
    font-family: 'Cabin', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.content ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-weight: bold;
}

/* Service Sections - Alternating Columns */
.service-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.service-section.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.service-content {
    flex: 0 0 50%;
    max-width: 50%;
}

.service-content h3 {
    font-family: 'Cabin', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 700;
}

.service-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.service-content ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.service-content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-weight: bold;
}

@media (max-width: 768px) {
    .service-section {
        flex-direction: column !important;
        gap: 2rem;
    }
    
    .service-image,
    .service-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Contact Form Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-section,
.contact-info-section {
    background-color: var(--header-dark);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form-section h3,
.contact-info-section h3 {
    font-family: 'Cabin', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.contact-info-section h4 {
    font-family: 'Cabin', sans-serif;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.contact-info-section h4:first-of-type {
    margin-top: 1rem;
}

.contact-info-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group .required {
    color: #ff6b6b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #054a7a;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }
    
    .contact-form-section h3,
    .contact-info-section h3 {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem;
    }
}

/* Code Syntax Highlighting Styles */
pre.prettyprint {
    background-color: #1e1e1e !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

code.prettyprint {
    background-color: #1e1e1e;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* Override prettify colors for dark theme - use !important to override CDN styles */
.prettyprint .str { color: #a8e6cf !important; } /* strings */
.prettyprint .kwd { color: #ff6b9d !important; } /* keywords */
.prettyprint .com { color: #888 !important; } /* comments */
.prettyprint .typ { color: #4ec9b0 !important; } /* types */
.prettyprint .lit { color: #dcdcaa !important; } /* literals */
.prettyprint .pun { color: #d4d4d4 !important; } /* punctuation */
.prettyprint .pln { color: #d4d4d4 !important; } /* plain text */
.prettyprint .tag { color: #569cd6 !important; } /* tags */
.prettyprint .atn { color: #9cdcfe !important; } /* attribute names */
.prettyprint .atv { color: #ce9178 !important; } /* attribute values */
.prettyprint .dec { color: #b5cea8 !important; } /* declarations */
.prettyprint .opn { color: #d4d4d4 !important; } /* open brackets */
.prettyprint .clo { color: #d4d4d4 !important; } /* close brackets */
.prettyprint .var { color: #9cdcfe !important; } /* variables */
.prettyprint .fun { color: #dcdcaa !important; } /* functions */

/* Blog Post Styles */
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.blog-post {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--header-dark);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.blog-post-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.blog-post-content {
    flex: 1;
}

.blog-post-content h2 {
    font-family: 'Cabin', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.blog-post-content h2 a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post-content h2 a:hover {
    color: var(--primary-color);
}

.blog-post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.blog-post-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Blog Post Detail Page Styles */
.blog-post-detail {
    padding: 2rem 0;
}

.blog-post-detail h1 {
    font-family: 'Cabin', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.blog-post-detail .blog-post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.blog-post-detail .blog-post-featured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    display: block;
}

.blog-post-detail .blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-detail .blog-post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.blog-post-detail .blog-post-content h2 {
    font-family: 'Cabin', sans-serif;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 700;
}

.blog-post-detail .blog-post-content h3 {
    font-family: 'Cabin', sans-serif;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 700;
}

.blog-post-detail .blog-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

.blog-post-detail .blog-post-content pre.prettyprint {
    margin: 2rem 0;
}

.blog-post-detail .blog-post-content ul,
.blog-post-detail .blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-muted);
}

.blog-post-detail .blog-post-content ul li,
.blog-post-detail .blog-post-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .blog-post-detail h1 {
        font-size: 2rem;
    }
    
    .blog-post-detail .blog-post-content {
        padding: 0 1rem;
    }
    
    .blog-post-detail .blog-post-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .blog-post-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-banner {
        min-height: 300px;
    }
    
    .hero-text {
        padding: 1.5rem 0;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .service-section {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Footer */
footer {
    background-color: var(--header-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--text-light);
    text-decoration: underline;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
        padding-left: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero-banner {
        min-height: 400px;
    }
    
    .hero-text {
        padding: 2rem 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .content {
        padding: 0 10px;
    }
    
    .service-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    footer ul {
        flex-direction: column;
        gap: 1rem;
    }
}
