/* CSS Variables for Coherent Color Palette */
:root {
    /* Brand Colors */
    --brand-primary: #9300F1; /* Electric Violet */
    --brand-secondary: #C575F2; /* Heliotrope */
    
    /* Neutral Background System */
    --bg-white: #FFFBFC; /* Snow */
    --bg-light: #F8F9FA;
    --bg-medium: #E9ECEF;
    --bg-dark: #051014; /* Rich Black */
    --bg-dark-blue: #011936; /* Oxford Blue */
    
    /* Semantic Colors */
    --success-bg: #D1E7DD;
    --error-bg: #F8D7DA;
    --warning-bg: #FFF3CD;
    
    /* Text Colors */
    --text-dark: #212529;
    --text-light: #FFFBFC;
    --text-muted: #6C757D;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-white);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: transparent;
    color: var(--text-light);
    padding: 1rem 0;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header.solid-header {
    background-color: var(--bg-dark-blue);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0 ,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
}

.header-logo {
    height: 50px;
    /*margin-left: 10px;*/
    vertical-align: middle;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li:not(:first-child) {
    /*border-left: 1px solid rgba(255,255,255,0.4);*/
    padding-left: 18px;
    margin-left: 18px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-secondary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--brand-secondary);
}

/* Hero Section - Split Layout - HEREEEEEEEEEEEEEE */
.hero-split-section {
    display: flex;
    min-height: 100vh; /* Make hero section cover most of the screen */
    background-color: var(--bg-dark-blue);
    margin-top: -80px; /* Pull hero section up to start at the very top */
    padding-top: 80px; /* Add padding to push content below navbar */
}

.hero-split-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.hero-content-wrapper {
    max-width: 500px;
    text-align: left;
}

.hero-content-wrapper h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.hero-content-wrapper p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-split-image {
    flex: 1;
    background: url('./img/support.png') no-repeat center center/cover;
}

/* Responsive Design for Hero Split Layout */
@media (max-width: 768px) {
    .hero-split-section {
        flex-direction: column;
    }

    .hero-split-image {
        min-height: 300px;
    }
}

.btn {
    display: inline-block;
    background-color: var(--brand-primary);
    color: var(--text-light);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

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

/* Services Overview Section */
#services-overview {
    padding: 5rem 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

#services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
}

.service-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 35px;
    width: 320px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    color: var(--brand-primary);
    margin-top: 0;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-small {
    display: inline-block;
    background-color: var(--brand-secondary);
    color: var(--text-light);
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-small:hover {
    background-color: var(--brand-primary);
}

/* General Content Section Styling */
.content-section {
    padding: 4rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Reduce bottom padding for page title sections */
#page-title.content-section {
    padding-bottom: 0.5rem;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #9300F1; /* Darker brand color for content headings */
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.about-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495E; /* Keeping dark text for labels */
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--bg-medium);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    resize: none; /* Prevents resizing of textarea */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 5px rgba(147, 0, 241, 0.5);
}

.contact-info {
    background-color: var(--bg-light);
    border-left: 4px solid var(--brand-primary);
    padding: 25px;
    border-radius: 6px;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
}

.contact-info p {
    margin: 12px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--brand-secondary);
}

/* Footer */
footer {
    background-color: var(--bg-dark-blue);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.95rem;
}

/* Contact Page Specific Styling */
.contact-section-item {
    max-width: 700px;
    margin: 30px auto;
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* New Two-Column Contact Layout */
.contact-layout {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.contact-info-column {
    flex: 1;
    max-width: 500px;
}

.contact-form-column {
    flex: 1;
    max-width: 500px;
}

.contact-intro {
    margin-bottom: 40px;
}

.contact-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
}

.contact-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.contact-details {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    border-left: 4px solid var(--brand-primary);
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.contact-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.contact-item a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

.contact-form-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 35px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design for Contact Layout */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info-column,
    .contact-form-column {
        max-width: 100%;
    }
    
    .contact-intro h3 {
        font-size: 1.6rem;
    }
    
    .contact-form-card {
        padding: 25px;
    }
}

/* Added for overall consistency */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #9300F1; /* Darker brand color for consistent heading color */
}

p {
    font-family: 'Open Sans', sans-serif;
}

/* Form Status Messages */
.form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    background-color: var(--success-bg);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-status.error {
    background-color: var(--error-bg);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-message {
    font-weight: 600;
}

.error-message {
    font-weight: 600;
}

/* Disabled button state */
.btn:disabled {
    background-color: var(--bg-medium);
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background-color: var(--bg-medium);
    transform: none;
}

/* Modern Service Split Layout */
.service-split-section {
    display: flex;
    min-height: 600px;
    background-color: var(--bg-white);
}

.service-split-reverse {
    flex-direction: row-reverse;
}

.service-split-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.service-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-split-image:hover img {
    transform: scale(1.05);
}

.service-split-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 4rem 4rem 5rem;
    background-color: var(--bg-white);
}

.service-content-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.service-content-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.service-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.service-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-feature-item:hover {
    background-color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(147, 0, 241, 0.1);
    border-left-color: var(--brand-primary);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

/* Responsive Design for Split Layout */
@media (max-width: 768px) {
    .service-split-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .service-split-reverse {
        flex-direction: column;
    }
    
    .service-split-image {
        height: 300px;
    }
    
    .service-split-content {
        padding: 3rem 2rem 3rem 3rem;
    }
    
    .service-content-wrapper h2 {
        font-size: 2rem;
    }
    
    .service-intro {
        font-size: 1.1rem;
    }
    
    .service-feature-item {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
}

/* About Page Styles */
.about-hero-section {
    display: flex;
    min-height: 600px;
    background-color: var(--bg-white);
    position: relative;
}

.about-hero-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-hero-image:hover img {
    transform: scale(1.05);
}

.about-hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 4rem 4rem 5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: var(--text-light);
}

.about-hero-text {
    max-width: 500px;
    margin: 0 auto;
}

.about-hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
}

.certification-logos {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-logo {
    height: 120px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.cert-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* About Split Sections */
.about-split-section {
    display: flex;
    min-height: 600px;
    background-color: var(--bg-white);
}

.about-split-reverse {
    flex-direction: row-reverse;
}

.about-split-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.about-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-split-image:hover img {
    transform: scale(1.05);
}

.about-split-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 4rem 4rem 5rem;
    background-color: var(--bg-white);
}

.about-content-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.about-content-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.about-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.about-feature-item:hover {
    background-color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(147, 0, 241, 0.1);
    border-left-color: var(--brand-primary);
    transform: translateX(5px);
}

/* About CTA Section */
.about-cta-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.about-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.cta-description {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.cta-feature {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.cta-feature h4 {
    font-size: 1.2rem;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0;
}

.cta-conclusion {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-top: 3rem;
    font-weight: 500;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .about-hero-image {
        height: 300px;
    }
    
    .about-hero-content {
        padding: 3rem 2rem 3rem 3rem;
    }
    
    .about-hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .certification-logos {
        gap: 2.5rem;
        margin-top: 1.5rem;
    }
    
    .cert-logo {
        height: 90px;
        max-width: 180px;
    }
    
    .about-split-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .about-split-reverse {
        flex-direction: column;
    }
    
    .about-split-image {
        height: 300px;
    }
    
    .about-split-content {
        padding: 3rem 2rem 3rem 3rem;
    }
    
    .about-content-wrapper h2 {
        font-size: 2rem;
    }
    
    .about-cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-feature {
        min-width: auto;
    }
}

/* Hamburger MENU */
.hamburger-toggle {
    display: none; /* Always hidden, used for state only */
}

.hamburger {
    display: none; /* Hidden on large screens */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Media query for smartphone sizes */
@media (max-width: 768px) {
    /* Show hamburger and adjust nav layout */
    .hamburger {
        display: flex;
        z-index: 3000;
    }

    .hero-split-section {
        z-index: 500;
    }

    nav {
        justify-content: space-between; /* Logo left, hamburger right */
    }

    nav ul {
        display: block; /* Change to block for better slide compatibility (flex still works, but block simplifies) */
        position: absolute;
        top: 100%; /* Below the header */
        left: 0;
        right: 0;
        background-color: var(--bg-dark-blue);
        align-items: center; /* If keeping flex, but remove if switching to block */
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        
        /* Add for slide animation */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    }

    nav ul li {
        margin: 1.8rem 0; /* Vertical spacing between MENU elements */
        padding: 0;
        border-left: none; /* Remove any borders for mobile */
    }

    nav ul li:not(:first-child) {
        padding-left: 0;
        margin-left: 0;
    }

    nav ul li a {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Show menu when checkbox is checked */
    #hamburger-toggle:checked ~ ul {
        max-height: 500px; /* Set to a value larger than your menu's height; adjust if needed */
        opacity: 1;
    }

    /* Animate hamburger to 'X' when menu is open */
    #hamburger-toggle:checked + .hamburger .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    #hamburger-toggle:checked + .hamburger .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    #hamburger-toggle:checked + .hamburger .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}