:root {
    /* Color Palette */
    --primary-color: #0c182e;
    /* Deep Navy Blue */
    --primary-light: #1a2a47;
    --secondary-color: #00d2ff;
    /* Bright Cyan/Electric */
    --secondary-color-dim: #0088cc;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --bg-dark: #0c182e;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.full-width {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: white;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn.large {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Header */
.header {
    background-color: white;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    /* Adjust based on actual logo ratio */
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--secondary-color-dim);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    /* Tech grid overlay effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Hero Section updates */
/* Hero Section updates */
.hero-container-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-animation {
    flex: 1;
    max-width: 50%;
    height: 500px;
    /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content-split {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 3px rgba(0, 210, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-decoration {
    /* Just a placeholder for potential advanced CSS shapes/animations */
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

/* Responsive Hero Split */
/* Responsive Hero Split - Compact Mobile View */
@media (max-width: 991px) {
    .hero {
        height: auto;
        /* Allow auto height but aim for 100vh fit */
        min-height: auto;
        /* Remove strict 100vh to avoid overlap if content is taller */
        padding-top: var(--header-height);
        /* Account for fixed header */
        padding-bottom: 80px;
        /* Add bottom padding to Hero */
    }

    .hero-container-split {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 0;
        /* Removing extra padding */
        gap: 15px;
        /* Tighter gap */
    }

    .hero-animation {
        max-width: 100%;
        height: 220px;
        /* Much shorter animation */
        margin-bottom: 0;
    }

    .hero-content-split {
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.2rem;
        /* Smaller title */
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        /* Stack buttons on very small screens? or keep row */
        gap: 15px;
    }

    /* Keep buttons side-by-side if screen allows, strictly compact */
    @media (min-width: 400px) {
        .hero-actions {
            flex-direction: row;
        }
    }

    .btn.large {
        padding: 12px 25px;
        /* Smaller buttons */
        font-size: 1rem;
        width: 100%;
        /* Full width buttons on tiny screens */
    }

    @media (min-width: 400px) {
        .btn.large {
            width: auto;
        }
    }

    .experience-banner {
        /* margin-top removed as requested */
        position: relative;
        z-index: 5;
    }
}


/* Split Layout (Image + Content) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: stretch;
    /* Stretch to make columns equal height */
}

.split-layout.reverse .section-image {
    order: -1;
}

.section-image {
    height: 100%;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Feature Grid updates for split layout */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Charity Section updates with split layout */
.charity-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
}

@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
}


/* Experience Banner */
.experience-banner {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-top: -50px;
    /* Overlap effect */
    position: relative;
    z-index: 3;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.experience-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.experience-item i {
    font-size: 2rem;
    color: var(--secondary-color-dim);
    margin-bottom: 15px;
}

.experience-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.experience-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Sections General */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 31, 63, 0.05);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-cyan {
    background: rgba(0, 210, 255, 0.1);
    color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Feature Grid (Corporate) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--secondary-color);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Services Row (Merchant) */
.services-row {
    display: flex;
    align-items: stretch;
    /* Stretch items */
    gap: 50px;
    flex-wrap: wrap;
}

.service-img {
    flex: 1;
    min-width: 300px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-content {
    flex: 2;
    /* Give more space to content vs image if needed, or keep 1 */
    min-width: 300px;
}

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

.service-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: default;
}

.service-list li:hover,
.service-list li.active {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--secondary-color);
    background: linear-gradient(to bottom, rgba(0, 210, 255, 0.05), white);
}

.service-list i {
    font-size: 1.5rem;
    color: var(--secondary-color-dim);
    margin-top: 5px;
    transition: var(--transition);
}

.service-list li:hover i,
.service-list li.active i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Charity Section */
.charity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.charity-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.charity-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    /* Removed opacity to let individual logos handle it or keep full color */
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    /* Fallback style until images are real */
    border: 2px solid #eee;
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.partner-logo-img {
    height: 50px;
    /* Fixed height for same proportion */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-width: 150px;
    /* Prevent overly wide logos */
}

.partner-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Form */
.contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--secondary-color-dim);
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color-dim);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    background: white;
    padding: 5px;
    border-radius: 4px;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        /* JS toggles this */
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .experience-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* Specific styles for Vertical Cards */
.vertical-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

.vertical-card:hover {
    border-left-color: var(--secondary-color);
    background: linear-gradient(to right, rgba(0, 210, 255, 0.05), white);
}

.vertical-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.vertical-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-light);
}

.vertical-card ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.sticky-image-container {
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    /* Adjust based on viewport */
    max-height: 600px;
    overflow: hidden;
    /* clean edges */
    border-radius: var(--border-radius);
}

.sticky-image-container img {
    transition: opacity 0.3s ease, transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure the grid is suitable for the vertical layout */
@media (min-width: 992px) {
    .features-grid.vertical-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Desktop "Spotlight" Effect */
    /* Apply dimming on hover OR if grid is active (clicked/hovered previously) */
    .features-grid.vertical-grid:hover .vertical-card,
    .features-grid.vertical-grid.grid-active .vertical-card {
        opacity: 0.4;
        /* Dim all cards */
        filter: blur(1px);
        transform: scale(0.98);
    }

    /* Highlight the hovered card OR the active card */
    .features-grid.vertical-grid .vertical-card:hover,
    .features-grid.vertical-grid .vertical-card.active {
        opacity: 1;
        /* Highlight specific card */
        filter: none;
        transform: translateY(-5px) scale(1.02);
        z-index: 2;
        /* Bring to front */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
}


/* Responsive Verticals for Mobile */
@media (max-width: 991px) {
    .split-layout {
        display: flex;
        /* Change from grid to flex for easier ordering */
        flex-direction: column;
        gap: 20px;
    }

    .section-image {
        order: -1;
        /* Move image to top */
    }

    .sticky-image-container {
        position: sticky;
        top: 90px;
        /* Below header */
        height: 250px;
        /* Reduced height for mobile */
        max-height: 35vh;
        z-index: 90;
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .vertical-card {
        padding: 20px;
        /* Slightly smaller padding */
    }
}

/* Active state for mobile touch or clicked desktop */
.vertical-card.active {
    border-left-color: var(--secondary-color);
    background: linear-gradient(to right, rgba(0, 210, 255, 0.08), white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Legal Pages */
.legal-content {
    background: #fff;
    padding: 0px 20px 40px;
    border-radius: var(--border-radius);
    line-height: 1.8;
}

.legal-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.legal-content strong {
    color: var(--primary-color);
}