/* --- Global Variables and Section Backgrounds --- */
:root {
    --primary-color: #007bff; /* A nice tech/finance blue */
    --secondary-color: #f8f9fa; /* Light gray for backgrounds */
    --text-color: #333;
    --font-family: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: white;
    line-height: 1.6;
}

/* --- Header / Navigation --- */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;  
    top: 0;
    z-index: 1000;
}

/* --- Navigation Bar Scroll Effect --- */
/* The default navbar already has a subtle shadow. We'll enhance it slightly. */
#navbar.scrolled {
    /* Make the background fully solid white when scrolled */
    background-color: white; 
    /* Enhance the box shadow for a 'lifted' look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
}

/* --- Navigation Link Hover Effect (Consolidated) --- */
#navbar nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
    
    position: relative; /* Needed to position the underline */
    padding-bottom: 5px; /* Add space below text for the line */
}

#navbar nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-out; /* Smooth animation for the line */
}

#navbar nav a:hover::after,
#navbar nav a.active-link::after { /* The 'active-link' class will be added in the next step */
    width: 100%;
}

nav a:hover {
    color: var(--primary-color);
}


.company-logo {
    height: 150px;
    width: auto; 
}


/* --- Hero Section --- */
#hero {
    background: linear-gradient(to right, #e0f2f7, #007bff); 
    color: white; 
    text-align: center;
    padding: 100px 5%;
}

#hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
}

#hero p {
    font-size: 1.2em; 
    max-width: 800px; 
    margin: 0 auto; 
    color: white;
}

/* --- Products Section --- */
#products {
    padding: 60px 5%;
    text-align: center;
    background-color: var(--secondary-color);
}

#products h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.product-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
}

.product-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 300px; /* Ensures cards are readable */
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s; /* Add box-shadow to transition */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    cursor: pointer; 
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Trust Section Styling --- */
#trust {
    padding: 80px 5%;
    text-align: center;
    background-color: white; 
}

#trust h2 {
    margin-bottom: 50px;
    color: var(--primary-color);
}

.trust-points {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.trust-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.trust-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.trust-item h3 {
    margin-bottom: 10px;
}

/* --- Contact Section --- */
#contact {
    padding: 60px 5%;
    text-align: center;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 20px 5%; /* Add side padding */
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-top: 10px;
    }
    .footer-links a {
        display: block; /* Stack links vertically on small screens */
        margin: 5px 0;
    }
}

/* --- Basic Responsiveness (for smaller screens) --- */
/* The mobile nav styles below largely override this block, but keeping for general layout */
@media (max-width: 768px) {
    #navbar {
        flex-direction: row; /* FIX: Keep the header elements side-by-side for the toggle */
    }
    nav {
        /* This whole 'nav' block is better handled by the specific mobile nav below */
        margin-top: 0; 
    }
    nav a {
        /* This whole 'nav a' block is better handled by the specific mobile nav below */
        margin: 0 10px;
    }
    .product-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Technology Section Styling --- */
#technology {
    padding: 80px 5%;
    text-align: center;
}

#technology h2 {
    margin-bottom: 50px;
    color: var(--primary-color);
}

.tech-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.tech-feature {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    text-align: center;
}

.tech-feature i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tech-feature h3 {
    margin-bottom: 10px;
}

/* --- About/Story Section Styling --- */
#about {
    padding: 80px 5%;
}

.alt-background {
    background-color: #f0f5ff; /* Very light blue tint */
}

#about h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.story-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.story-text {
    flex: 2;
    text-align: left;
    font-size: 1.1em;
}

.story-image {
    flex: 1;
    text-align: center;
}

.story-image i {
    font-size: 8em;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .story-content {
        flex-direction: column;
    }
    .story-image {
        order: -1; /* Puts the icon/image above the text on mobile */
        margin-bottom: 20px;
    }
}

/* === Fade-In Animation Styles === */

/* Initial state: elements are slightly lowered and invisible */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    /* CHANGE DURATION HERE for smoother animation */
    transition: all 0.8s ease-out; 
}

/* Active state: elements are visible and in their final position */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Contact Form Styling --- */
#contact-form-section {
    padding: 80px 5%;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#contact-form-section h2, 
#contact-form-section p {
    text-align: center;
    margin-bottom: 20px;
}

#inquiry-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

#inquiry-form input[type="text"],
#inquiry-form input[type="email"],
#inquiry-form select,
#inquiry-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't affect total width */
    font-family: var(--font-family);
}

#inquiry-form textarea {
    resize: vertical; /* Allow resizing only vertically */
}

#inquiry-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#inquiry-form button:hover {
    background-color: #0056b3; /* Slightly darker blue on hover */
}

.form-success {
    color: green;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    display: none; /* Hide until submission is successful */
}

/* === Sub-Page Hero Styling === */
#page-hero {
    /* Use the same gradient as the homepage #hero */
    background: linear-gradient(to right, #e0f2f7, #007bff); 
    color: white; 
    text-align: center;
    padding: 100px 5%;
}

#page-hero h1 {
    font-size: 2.2em; /* Slightly smaller than homepage hero */
    margin-bottom: 10px;
    color: white;
}

#page-hero p {
    font-size: 1.1em;
    max-width: 800px; 
    margin: 0 auto; 
    color: white; 
}

/* === Sub-Page Content Area === */
.page-content {
    padding: 60px 5%;
    max-width: 1000px;
    margin: 0 auto; /* Center the content */
    line-height: 1.6;
}

/* === Call-to-Action Button Styling === */
.cta-button {
    display: inline-block; /* Allows padding and margin */
    background-color: white; 
    color: var(--primary-color); /* Use the vibrant blue color for the text */
    font-size: 1.1em;
    font-weight: bold;
    padding: 12px 30px;
    margin-top: 30px;
    text-decoration: none;
    border-radius: 5px;
    /* ADD box-shadow to transition list for smoothness */
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s; 
    /* Optional: Add shadow to make it pop on the gradient background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

/* --- CTA Button Active State --- */
.cta-button:active {
    /* Moves the button down 1px and reduces the shadow */
    transform: translateY(1px); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
}

.cta-button:hover {
    background-color: #f0f0f0; /* Slight gray on hover */
    color: #004d99; /* Darker blue on hover */
    transform: translateY(-2px); /* Subtle lift effect */
}

/* --- Mobile Navigation Styles --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color); 
}

@media (max-width: 768px) {
    /* FIXED: Prevent the navbar itself from stacking. Keeps logo and toggle side-by-side. */
    #navbar {
        flex-direction: row; 
    }
    
    /* 1. Show the hamburger icon */
    .menu-toggle {
        display: block; 
    }

    /* 2. Style the menu icon interaction */
    .menu-toggle:hover {
        color: #0056b3; 
    }

    .menu-toggle:active {
        transform: scale(0.95); 
        transition: transform 0.1s;
    }

    /* 3. Hide navigation links by default and stack them */
    #main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        /* Adjusted top to account for the 150px logo height + padding */
        top: 180px; 
        left: 0;
        position: absolute; /* Ensures the menu drops down correctly */
        background-color: #f8f8f8; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        text-align: center;
    }

    /* 4. Make links full width and spaced out */
    #main-nav a {
        margin: 10px 0;
        color: var(--text-color);
        padding: 10px 0; /* Increased padding */
        border-bottom: 1px solid #eee;
        display: block;
        margin-left: 0;
    }

    /* 5. State for when the menu is active/open */
    #main-nav.active {
        display: flex;
    }
    
    /* Existing content stacking rules */
    .product-grid, .story-content, .founder-card {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Founding Story Credential Box --- */
.story-detail {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: left;
}

.story-credentials {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f0f8ff; /* Light blue tint */
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    text-align: left;
}

.story-credentials i {
    font-size: 2em;
    color: var(--primary-color);
    margin-right: 15px;
    float: left;
}

.story-credentials h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* === Leadership Team Section Styling (Replaces #founder) === */
#leadership {
    padding: 80px 5%;
    text-align: center;
}

#leadership h2 {
    margin-bottom: 50px;
    color: var(--text-color);
}

.leadership-team {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px; /* Space between the two profiles */
    flex-wrap: wrap; /* Allows stacking on mobile */
}

.founder-card {
    flex: 1 1 45%; /* Allows cards to take up slightly less than half the space */
    min-width: 300px;
    padding: 30px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    align-items: flex-start; /* Align photo and text to the top */
    gap: 20px;
    transition: transform 0.3s;
}

.founder-card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
}

/* --- Founder Photo Styling (Used by .founder-card) --- */
.founder-photo {
    width: 120px; /* Slightly smaller photo size for dual profile */
    height: 120px; 
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.founder-details h3 {
    margin-top: 0;
    font-size: 1.4em;
}

.founder-details .title {
    color: #555;
    font-style: italic;
    margin-bottom: 15px;
}

.founder-details .bio {
    /* Ensures paragraph text doesn't look too crowded */
    line-height: 1.4; 
}

.founder-details a {
    /* LinkedIn Link styling */
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.founder-details a:hover {
    color: #0077b5; 
}

/* Mobile Adjustment: Stack cards vertically on small screens */
@media (max-width: 768px) {
    .founder-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}


/* === IP Platform Feature Grid === */
.ip-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
}

.feature-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Specific styling for the AI section content */
.page-content ul {
    list-style: none;
    padding-left: 0;
}

.page-content ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    text-align: left;
}

.page-content ul li:before {
    content: "\f058"; /* Font Awesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Interactive Page Fade-Out Effect --- */
body.fade-out {
    opacity: 0;
    /* Use the same 0.8s transition time for consistency */
    transition: opacity 0.8s ease-out; 
}

/* --- Hero Animation Setup --- */
.hero-title-reveal,
.hero-text-reveal,
.hero-cta-reveal {
    opacity: 0;
    /* Use a standard, smooth transition time */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

/* Initial State before animation */
.hero-title-reveal {
    /* Slightly slide down from above */
    transform: translateY(-20px); 
}

.hero-text-reveal {
    /* Slightly slide up from below */
    transform: translateY(20px); 
}

.hero-cta-reveal {
    /* Slightly slide up from below, later than the text */
    transform: translateY(30px); 
}

/* --- Gradient Flash Effect --- */

/* Add a class to apply a temporary pure white background with a long transition */
.hero-flash-effect {
    background: white !important; /* Temporarily override the gradient */
    transition: background 1.5s ease-out;
}