/* ========================================
   Carnival Techs LLC - Main Stylesheet
   DARK THEME
   ======================================== */

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0d0d0d;
}

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

h1, h2, h3 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

h1 { font-size: 3em; }
h2 { font-size: 2.2em; margin-bottom: 30px; }
h3 { font-size: 1.4em; }

p {
    margin-bottom: 15px;
}

a {
    color: #c8102e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #c8102e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #a00d24;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: #c8102e;
    border: 2px solid #c8102e;
}

.btn-secondary:hover {
    background-color: #c8102e;
    color: #ffffff;
    text-decoration: none;
}

/* HEADER / NAVIGATION */
#site-header {
    background-color: #000000;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid #1a1a1a;
}

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

.logo img {
    height: 50px;
}

#main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

#main-nav a {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

#main-nav a:hover,
#main-nav a.active {
    color: #c8102e;
    text-decoration: none;
}

/* HERO SECTION */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    margin-top: 80px;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.sub-headline {
    font-size: 1.4em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    color: #e0e0e0;
}

/* ABOUT SECTION */
#about {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

#about p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: #d0d0d0;
}

/* SERVICES SECTION */
#services {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    padding: 30px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.2);
    border-color: #c8102e;
}

.service-card h3 {
    color: #c8102e;
    margin-bottom: 15px;
}

.service-card p {
    color: #c0c0c0;
}

.vpn-callout {
    background-color: #c8102e;
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.vpn-callout strong {
    color: #ffffff;
}

/* PROJECTS SECTION */
#projects {
    padding: 80px 0;
    background-color: #1a1a1a;
}

#projects h2 {
    text-align: center;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) .project-content {
    direction: ltr;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.project-content {
    padding: 40px;
}

.project-content h3 {
    color: #c8102e;
    margin-bottom: 15px;
}

.project-content p {
    color: #c0c0c0;
}

/* CONTACT SECTION */
#contact {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

#contact h2 {
    color: #ffffff;
}

#contact p {
    color: #d0d0d0;
}

.contact-info {
    margin: 30px 0;
    font-size: 1.2em;
}

.contact-info a {
    color: #ffffff;
}

/* ABOUT PAGE STYLES */
#about-hero {
    background-color: #000000;
    color: #ffffff;
    padding: 120px 0 60px 0;
    text-align: center;
    margin-top: 80px;
    border-bottom: 2px solid #c8102e;
}

#about-hero h1 {
    color: #ffffff;
}

#about-hero .tagline {
    font-size: 1.3em;
    color: #c8102e;
}

#about-content {
    padding: 80px 0;
    background-color: #0d0d0d;
}

#about-content .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.about-photo img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.about-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #d0d0d0;
}

#contact-cta {
    background-color: #c8102e;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

#contact-cta h2 {
    color: #ffffff;
}

#contact-cta .btn-primary {
    background-color: #ffffff;
    color: #c8102e;
}

#contact-cta .btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
}

/* PROJECT PAGE */
#project-page {
    padding: 140px 0 80px 0;
    background-color: #0d0d0d;
}

.project-subtitle {
    color: #999;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.coming-soon {
    background-color: #1a1a1a;
    border-left: 4px solid #c8102e;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 40px;
}

.coming-soon h2 {
    color: #c8102e;
}

.coming-soon p {
    color: #d0d0d0;
}

.project-summary {
    margin-bottom: 40px;
}

.project-summary p {
    color: #d0d0d0;
}

/* PROJECT PAGE - VIDEO */
.project-video {
    margin: 40px 0 60px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.project-video video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000000;
}

/* PROJECT PAGE - OVERVIEW & DETAILS */
.project-overview,
.project-details,
.project-result {
    margin-bottom: 60px;
}

.project-overview h2,
.project-details h2,
.project-result h2,
.project-gallery h2 {
    color: #c8102e;
    border-bottom: 2px solid #c8102e;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.project-overview p,
.project-details p,
.project-result p {
    color: #d0d0d0;
    font-size: 1.1em;
    line-height: 1.7;
}

.project-result strong {
    color: #ffffff;
    font-size: 1.15em;
}

/* PROJECT LIST */
.project-list {
    list-style: none;
    padding: 0;
}

.project-list li {
    background-color: #1a1a1a;
    border-left: 4px solid #c8102e;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #d0d0d0;
    line-height: 1.7;
}

.project-list li strong {
    color: #ffffff;
    display: inline-block;
    margin-right: 5px;
}

/* IMAGE GALLERY */
.project-gallery {
    margin-bottom: 60px;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.3);
    border-color: #c8102e;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* PROJECT CTA SECTION */
.project-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 0;
    border-top: 1px solid #2a2a2a;
    margin-top: 40px;
}

/* FOOTER */
#site-footer {
    background-color: #000000;
    color: #777;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

/* RESPONSIVE / MOBILE */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }

    .hero-content h1 { font-size: 2.5em; }
    .sub-headline { font-size: 1.1em; }

    #site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    #main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .project-card,
    #about-content .container {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    #hero { margin-top: 130px; }
    #about-hero { margin-top: 130px; }
    #project-page { padding-top: 180px; }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 220px;
    }

    .project-cta {
        flex-direction: column;
        align-items: center;
    }

    .project-cta .btn-primary,
    .project-cta .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
