/* This stylesheet is used for the base styles of the website */
/* This style.css particularly holds the global css variables and styles and imports of other css files */

@import "base_styles/header.css";
/* Header Styles*/
@import "base_styles/sections.css";
/* Section Styles*/
@import "base_styles/contact.css";
/* Contact Form Styles*/
@import "base_styles/footer.css";
/* Footer Styles*/
@import "base_styles/media.css";
/* Media Queries Styles*/
@import "base_styles/mode.css";
/* Light/Dark Mode Styles*/

/* ================================================== */
/*                   GLOBAL VARIABLES                 */
/* ================================================== */
:root {
    --font-family: 'Manrope', sans-serif;

    /* Color Palette */
    --color-text: #1f1f1f;
    --logo-text: black;
    /* Deep gray for strong text contrast */
    --color-subtext: #4a4a4a;
    /* Softer gray for secondary text */
    --color-bg: #ffffff;
    /* Bright white background */
    --color-surface: #f5f7fa;
    /* Light gray for cards/sections */
    --color-border: #dbe1e8;
    /* Light gray-blue for borders */
    --color-footer: #6c757d;
    /* Medium gray for footer and small text */
    --color-topbar-bg: #3b3b3b;
    --color-topbar-text: #e3e8ef;
    --color-landing: white;
    --color-landing-a: rgba(255, 255, 255, 0.9);

    /* Professional Blue Accent */
    --color-btn: #1e88e5;
    /* Material blue 600 */
    --color-accent: #1976d2;
    /* Material blue 700 for contrast */
    --color-highlight: #6eafff;
    /* Soft blue for text selection */

    /* Alert colors  */
    --color-alert-bg: transparent;
    --color-alert-text: #ff4545;
    --color-alert-border: #ff4545;

    /* Icons and other */
    --color-icon: #f1f3f5;

    /* Gradients */
    --gradient-bg: linear-gradient(to bottom right, #ffffff, #e8eaff);
    --gradient-size: 100%;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 2rem 0;

    --top-bar-height: 40px;
    --navbar-height: 70px;
}

body.dark-mode {
    --color-text: #c9d1d9;
    --color-subtext: #8b949e;
    --color-bg: #0d1117;
    --color-surface: #161b22;
    --color-border: #30363d;
    --color-footer: #586069;
    --color-btn: #2ccfa7;
    --color-accent: #3ef3c5;
    --color-highlight: #45b69a;
    --gradient-bg: linear-gradient(to bottom right, #0d1117, #172e28);
    --color-landing-a: rgba(26, 26, 26, 0.9);
    --logo-text: white;
}

/* ================================================== */
/*                   GLOBAL STYLES                   */
/* ================================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    /* line-height: 1.6; */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 0;
    /* this controls spacing now */
}


*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Button styling */
.btn-primary {
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    background-color: transparent;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 0;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--color-bg);
    opacity: 0.8;
}

.btn-primary:hover::after {
    opacity: 1;
}

.center-btn {
    text-decoration: none;
    margin: 25px;
    display: flex;
    justify-self: center;
}

/* Alert */
.alert-btn {
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
    border: 1px solid var(--color-alert-border);
    color: var(--color-alert-text);
    background-color: transparent;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 0;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.alert-btn:hover {
    background-color: var(--color-alert-text);
    color: var(--color-surface);
    transition: all 0.3s ease-in-out;
}

/* Selection styling - when user highlights something on the page */
::selection {
    background: var(--color-highlight);
    color: var(--color-surface);
}

.fa-solid {
    color: var(--color-icon);
}

/* ================================================== */
/*                  MEDIA QUERIES                    */
/* ================================================== */
@media (max-width: 768px) {

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cards {
        flex-direction: column;
    }

    .footer-columns {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        background-size: 100vw 100vh;
    }

    /* Makes elements with <blank> disappear in mobile */
    blank {
        display: none;
    }
}

/* Toggle Switch Style */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: var(--color-btn);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider:before {
    transform: translateX(22px);
    background-color: var(--color-accent);
}

/* ================================================== */
/*                     SECTIONS                      */
/* ================================================== */
.hero {
    position: relative;
    background: var(--gradient-bg);
    background-size: var(--gradient-size);
    overflow-y: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-border);
    z-index: 1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: url('/images/landing3.png') no-repeat center center;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    /* ensures full viewport height */
    position: relative;
    z-index: 1;
}

.hero .container,
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-landing);
}

.hero-content p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
}

.hero-content a {
    background: var(--color-landing-a);
    opacity: 1;
}

.hero-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    object-fit: contain;
}

.section.dark {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* Full-height sections */
.section,
.section.light,
.section.dark {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Ensure content still centers nicely */
.section>.container {
    width: 100%;
}

.cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.card h3 {
    margin-top: 0;
    color: var(--color-accent);
}

.section h2 {
    font-size: 2.2rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
    text-align: center;
}

.subtext {
    color: var(--color-subtext);
    font-size: 1.1rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.feature-card h3 {
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}


/* Pricing Cards */
.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.pricing-cards .card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 1rem;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    text-align: center;
    transition: transform 0.2s ease;
}

.pricing-cards .card:hover {
    transform: translateY(-5px);
}

.pricing-cards h3 {
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.pricing-cards p {
    color: var(--color-subtext);
    margin-bottom: 0.75rem;
}

.pricing-cards .note {
    font-style: italic;
    color: var(--color-text);
}

/* Emergency Support */
.emergency-support {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--color-accent);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 3rem;
    text-align: center;
}

.emergency-support h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.emergency-support p {
    color: var(--color-subtext);
    margin: 0.5rem 0;
}

.testimonial-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto 0 auto;
    text-align: center;
    font-style: italic;
}

.testimonial-box .client {
    display: block;
    margin-top: 1rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* ================================================== */
/*                  CONTACT SECTION                  */
/* ================================================== */
.contact-section {
    background: linear-gradient(to bottom right,
            var(--color-surface),
            var(--color-bg));
}

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

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.contact-details i {
    color: var(--color-accent);
    margin-right: 0.75rem;
}

/* Form */
.contact-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group span {
    color: red;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: transparent;
    outline: none;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    background: var(--color-bg);
    padding: 0 0.25rem;
    color: var(--color-subtext);
    pointer-events: none;
    transition: 0.3s ease;
}

/* Floating label effect */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -8px;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Mobile */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* ================================================== */
/*                     ABOUT SECTION                 */
/* ================================================== */
.about-section {
    background: linear-gradient(to bottom right,
            var(--color-bg),
            var(--color-surface));
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

/* Left content */
.about-content h2 {
    text-align: left;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1.2rem;
    max-width: 520px;
}

/* Actions */
.about-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    padding: 0.75rem 1.6rem;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Right stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--color-subtext);
}

.centered-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.margin-neg50-top {
    transform: translateY(-50px);
    /* transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform; */
}

.margin-50-top {
    transform: translateY(50px);
    /* transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform; */
}

/* Hidden state */
.hide-card {
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.35s ease,
        transform 1s ease,
        max-height 0.35s ease;
}

/* Visible state */
.show-card {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
    max-height: 450px;
    /* large enough to fit content */
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-status.success {
    background-color: #e7f6ec;
    color: #1f7a3d;
    border: 1px solid #b6e2c2;
}

.form-status.error {
    background-color: #fdeaea;
    color: #a12622;
    border: 1px solid #f5b5b5;
}

.hidden {
    display: none;
}

section[id] {
    scroll-margin-top: 60px;
}

/* Mobile */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content p {
        max-width: 100%;
    }

    .about-actions {
        flex-direction: column;
    }

    .section {
        padding: 25px;
    }

    .margin-neg50-top {
        transform: translateY(-250px);
    }

    #see-more-services-btn {
        padding: 20px;
    }
}