/* -------------------------------------------------
1. CSS Variables & Global Reset
-------------------------------------------------
*/
:root {
    --color-deep-blue: #002B5B;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-orange: #FF6B00;
    --color-light-grey: #f8f9fa;
    --color-text: #333;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-deep-blue);
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--color-orange);
}

section {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utility Classes */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-orange);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-light);
}

.cta-button:hover {
    background-color: #e05c00; /* Darker orange */
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    margin-bottom: 10px;
}
.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* -------------------------------------------------
2. Header & Navigation
-------------------------------------------------
*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    text-decoration: none;
}
.header .logo i {
    color: var(--color-orange);
}

.header .nav-links {
    display: block;
}

.header .nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--color-black);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.header .nav-links a:hover {
    color: var(--color-orange);
}
.header .nav-links .nav-cta {
    background: var(--color-deep-blue);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
}
.header .nav-links .nav-cta:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

/* -------------------------------------------------
3. Hero Section (Home Page Only)
-------------------------------------------------
*/
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 43, 91, 0.7), rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-socials {
    position: absolute;
    bottom: 30px;
    left: 5%;
}

.hero-socials a {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-socials a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* -------------------------------------------------
4. Services Section
-------------------------------------------------
*/
.services-section {
    background-color: var(--color-light-grey);
}

.services-video {
    background: var(--color-black);
    max-width: 800px;
    height: 450px;
    margin: -30px auto 60px auto;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    text-align: center;
    position: relative;
}
.services-video::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
}
.services-video p {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-card .service-icon {
    font-size: 2.5rem;
    color: var(--color-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card .blog-link {
    font-weight: 600;
    font-family: var(--font-secondary);
    display: inline-block;
    transition: transform 0.3s ease;
}
.service-card .blog-link:hover {
    transform: translateX(5px);
}

/* -------------------------------------------------
5. Our Edge Section
-------------------------------------------------
*/
.edge-section {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
}

.edge-section .section-header h2 {
    color: var(--color-white);
}

.edge-section .section-header p {
    color: var(--color-orange);
    font-weight: 600;
    font-size: 1.3rem;
    font-family: var(--font-primary);
}

.edge-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 50px;
}

.edge-step .edge-icon {
    font-size: 3rem;
    color: var(--color-orange);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}
.edge-step:nth-child(2) .edge-icon { animation-delay: 0.5s; }
.edge-step:nth-child(3) .edge-icon { animation-delay: 1s; }


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.edge-step h3 {
    color: var(--color-white);
    margin-bottom: 10px;
}

.edge-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 50px auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* -------------------------------------------------
6. About Section
-------------------------------------------------
*/
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text .quote {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-deep-blue);
    line-height: 1.6;
    border-left: 4px solid var(--color-orange);
    padding-left: 20px;
    margin-top: 20px;
}

/* -------------------------------------------------
7. Gallery Section
-------------------------------------------------
*/
.gallery-section {
    background-color: var(--color-light-grey);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* -------------------------------------------------
8. Blog Section
-------------------------------------------------
*/
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.blog-card-content a {
    font-weight: 600;
}

.blog-section .view-all-cta {
    text-align: center;
    margin-top: 50px;
}


/* -------------------------------------------------
9. Contact Section
-------------------------------------------------
*/
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    background: var(--color-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form h3, .contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
}

.contact-details ul {
    list-style: none;
}

.contact-details li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.contact-details li i {
    font-size: 1.3rem;
    color: var(--color-orange);
    width: 30px;
    margin-right: 15px;
}

.google-map {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-top: 20px;
    border: 0;
}

/* -------------------------------------------------
10. Footer Section
-------------------------------------------------
*/
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--color-orange);
}

.footer-col .footer-logo {
    font-size: 2rem;
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
}
.footer-col .footer-logo i { color: var(--color-orange); }

.footer-col p {
    margin-top: 15px;
    color: #ccc;
}

.footer-col ul {
    list-style: none; /* Removes bullet points */
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--color-orange);
    transform: translateX(5px);
}
.footer-col ul li i {
    margin-right: 10px;
    color: var(--color-orange);
}

.footer-col .footer-socials a {
    display: inline-block;
    color: var(--color-white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-col .footer-socials a:hover {
    color: var(--color-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #ccc;
}

/* -------------------------------------------------
11. Page-Specific Headers
-------------------------------------------------
*/
.page-header {
    height: 40vh;
    background: linear-gradient(rgba(0, 43, 91, 0.8), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 3rem;
}


/* -------------------------------------------------
12. Responsive Design
-------------------------------------------------
*/
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .about-content {
        flex-direction: column;
    }
    .about-image { margin-top: 40px; }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-content h2 { font-size: 1.2rem; }
    
    section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }

    .edge-flow {
        grid-template-columns: 1fr;
    }
    .contact-wrapper { padding: 30px; }
    .footer-grid { grid-template-columns: 1fr; } /* Stack footer on mobile */
}

/* -------------------------------------------------
13. Corporate Page Specific Styles
-------------------------------------------------
*/
.feature-list {
    list-style: none;
    margin-top: 30px;
}
.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.feature-list i {
    font-size: 1.3rem;
    color: var(--color-orange);
    width: 30px;
    margin-right: 15px;
}
.solution-split {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}
.solution-split img {
    flex: 1;
    width: 50%;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}
.solution-split .content {
    flex: 1;
}
.solution-split h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.solution-split.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .solution-split, .solution-split.reverse {
        flex-direction: column;
    }
    .solution-split img {
        width: 100%;
        margin-top: 20px;
    }
}

/* -------------------------------------------------
14. FAQ Page Styles
-------------------------------------------------
*/
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    display: block;
    width: 100%;
    text-align: left;
    padding: 20px;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-deep-blue);
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    position: relative;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}
.faq-answer {
    padding: 20px;
    background-color: var(--color-white);
    line-height: 1.7;
}
details[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

/* -------------------------------------------------
15. Chatbot Widget
-------------------------------------------------
*/
.chat-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--color-orange);
    color: var(--color-white);
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 998;
    transition: transform 0.2s ease;
}
.chat-icon:hover {
    transform: scale(1.1);
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: 90vw;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 999;
    overflow: hidden;
    display: none; /* Hidden by default */
    flex-direction: column;
}
.chat-widget.open {
    display: flex; /* Shown when 'open' class is added */
}

.chat-header {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h4 {
    color: var(--color-white);
    margin: 0;
}
.chat-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
}
.chat-message {
    margin-bottom: 15px;
}
.chat-message.bot p {
    background: var(--color-light-grey);
    color: var(--color-text);
    padding: 12px 18px;
    border-radius: 20px 20px 20px 5px;
    display: inline-block;
    max-width: 90%;
}

.chat-options {
    padding: 0 20px 20px;
    border-top: 1px solid #eee;
}
.chat-options button {
    display: block;
    width: 100%;
    background: none;
    border: 1px solid var(--color-orange);
    color: var(--color-orange);
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.chat-options button:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

/* Fix for chat links */
.chat-message a {
    font-weight: 600;
    text-decoration: underline;
}

/* -------------------------------------------------
16. Mobile Navigation
-------------------------------------------------
*/

/* The hamburger button */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-deep-blue);
    cursor: pointer;
    z-index: 1101; /* Make sure it's on top */
}

/* This is the media query that runs on mobile */
@media (max-width: 992px) {
    
    /* Show the hamburger icon */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide the desktop nav */
    .header .nav-links {
        display: none;
    }

    /* This is the pop-up menu style */
    .nav-links.mobile-menu-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 90px; /* Height of your header */
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        z-index: 1100;
    }

    /* Style the links inside the pop-up menu */
    .nav-links.mobile-menu-active a {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Style the CTA button inside the pop-up menu */
    .nav-links.mobile-menu-active .nav-cta {
        margin: 10px;
        padding: 15px;
        text-align: center;
        background-color: var(--color-orange);
    }
}