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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-blue: #1e3c72;
    --light-blue: #2a5298;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1e3c72;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.nav-logo .logo-color {
    display: none;
}

.navbar.scrolled .nav-logo .logo-white {
    display: none;
}

.navbar.scrolled .nav-logo .logo-color {
    display: block;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
    opacity: 0.9;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white); /* Default to white for transparent navbar */
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--text-dark); /* Switch to dark on scrolled/white navbar */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding-top: 120px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 30px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 80px;
    font-weight: 800;
    margin: 20px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 300;
    margin: 15px 0;
    opacity: 0.95;
}

.hero-description {
    font-size: 20px;
    margin: 35px auto;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 2s ease-out;
}

.scroll-indicator span {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-divider {
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 30px;
    border-radius: 3px;
}

.section-divider.light {
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.9);
}

.section-title.light {
    color: #ffffff;
}

/* Value Section */
.value-section {
    padding: 120px 0;
    background: var(--white);
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 60px;
    margin-bottom: 25px;
    filter: grayscale(0.2);
}

.value-card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.feature-box {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 25px;
}

.feature-box h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

/* Process Section */
.process-section {
    padding: 120px 0;
    background: var(--white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.process-step:last-child .step-number {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.process-step h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.process-step p {
    font-size: 15px;
    color: var(--text-light);
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.about-text h3 {
    font-size: 32px;
    color: var(--text-dark);
    margin: 30px 0 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
}

.values-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.team-section {
    margin-top: 80px;
}

.team-section h3 {
    font-size: 38px;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.team-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.team-member h4 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 15px;
}

.member-bio {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Success Section */
.success-section {
    padding: 120px 0;
    background: var(--white);
    position: relative; /* Anchor for absolute elements */
}

.success-section .container {
    position: relative; /* Ensure the arrow positions relative to this container */
}

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

.case-card {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.company-logo {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 15px;
    flex-shrink: 0;
}

.company-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.company-sector {
    font-size: 14px;
    color: var(--text-light);
}

.case-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.metric {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    color: var(--text-light);
    display: block;
}

.case-quote {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    flex-grow: 1;
}

.case-author {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.testimonial-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    padding: 80px 60px;
    color: var(--white);
    text-align: center;
}

.testimonial-icon {
    font-size: 60px;
    margin-bottom: 30px;
}

.testimonial-highlight h3 {
    font-size: 38px;
    margin-bottom: 30px;
    font-weight: 700;
}

.testimonial-text {
    font-size: 22px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 50px;
    opacity: 0.95;
}

.testimonial-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.t-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t-stat strong {
    font-size: 42px;
    font-weight: 800;
}

.t-stat span {
    font-size: 15px;
    opacity: 0.9;
}

/* Tech Section */
.tech-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: techPattern 20s linear infinite;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

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

.tech-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.tech-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.tech-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-item h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

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

.contact-item a:hover {
    color: var(--secondary-color);
}

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

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-top: 15px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes scroll {
    0% { opacity: 0; transform: translate(-50%, 0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes techPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--white);
        width: 300px;
        padding: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--text-dark) !important; /* Force dark text on mobile menu */
        font-size: 18px;
        margin-bottom: 15px;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        width: 100%;
        max-width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 38px;
    }

    .value-cards,
    .features-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-snap-type: x mandatory;
        padding-bottom: 30px; /* Space for scrollbar or visual balance */
        margin-right: -20px; /* Compensate container padding */
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .cases-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    .case-card {
        min-width: 85vw; /* Almost full width for mobile card feel */
        scroll-snap-align: center;
        margin-right: 0;
    }

    .case-metrics {
        grid-template-columns: 1fr;
    }

    .mobile-scroll-hint {
        display: flex !important;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.8); /* Semi-transparent background for visibility */
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 10;
        pointer-events: none; /* Let clicks pass through */
        color: var(--primary-color);
        font-size: 24px;
        font-weight: 800;
        animation: blinkArrowRight 1.5s infinite ease-in-out;
    }

    .testimonial-stats {
        gap: 40px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Fix for About Section text overflow on mobile */
    .about-content {
        display: block; /* Switch to block layout to avoid grid overflow issues */
        width: 100%;
    }

    .about-text {
        width: 100%;
        margin-bottom: 40px; /* Space between text and stats */
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .about-text h3 {
        font-size: 24px;
    }

    .about-section {
        padding: 60px 0;
    }

    /* Adjust stats grid for mobile */
    .about-stats {
        gap: 20px;
    }
    
    .stat-box {
        padding: 25px 15px; /* Reduce padding to fit smaller screens */
    }
    
    .stat-number {
        font-size: 36px; /* Smaller numbers */
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    /* Reduce section padding for mobile */
    .value-section,
    .features-section,
    .process-section,
    .success-section,
    .tech-section,
    .contact-section,
    .integrations-section,
    .screenshots-section,
    .about-section,
    .mobile-app-section {
        padding: 40px 0 !important; /* Reduced from 120px to 40px */
    }

    .hero-section {
        min-height: 100vh; /* Ensure full viewport height */
        padding: 80px 0 40px; /* Reduced top padding to account for navbar */
        display: flex;
        align-items: center; /* Center content vertically optimally */
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 28px; /* Significantly reduced */
        margin: 10px 0;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin: 5px 0 15px;
    }

    .hero-description {
        font-size: 15px;
        margin: 15px auto 25px;
        line-height: 1.5;
    }

    .hero-logo {
        max-width: 160px; /* Smaller logo */
        margin-bottom: 20px;
    }

    .hero-buttons {
        margin-top: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 30px; /* More compact buttons */
        font-size: 15px;
        width: 100%; /* Full width buttons for easier tapping */
    }

    .section-title {
        font-size: 28px;
    }

    .testimonial-highlight {
        padding: 50px 30px;
    }

    .contact-form {
        padding: 30px;
    }
}

/* Integrations Section */
.integrations-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.integrations-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.integration-group h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.integration-group h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.integration-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.integration-item {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.integration-logo {
    height: 24px;
    width: auto;
    max-width: 60px; /* Prevent wide logos from taking too much space */
    object-fit: contain;
}

.integration-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

.integration-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .integration-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        max-width: 400px;
        margin: 0 auto;
    }

    .integration-item {
        padding: 15px 20px;
        justify-content: flex-start; /* Changed from center */
    }

    .integration-name {
        font-size: 15px;
    }

    /* Mobile Features Alignment */
    .feature-box {
        text-align: center;
        padding: 30px;
    }
    
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-list {
        text-align: left; /* Keep list left-aligned for readability */
    }
}


/* Screenshots Slider */
.screenshots-section {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.screenshots-slider-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
    padding-bottom: 60px; /* Space for controls */
}

.screenshots-slider {
    position: relative;
    width: 100%;
}

.screenshot-slide {
    display: none;
    width: 100%;
    height: 600px; /* Fixed height for consistency */
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screenshot-slide.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.app-screenshot {
    max-width: 100%;
    max-height: 100%; /* Fit within the fixed height */
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: contain; /* Ensure image isn't cropped */
}

@media (max-width: 768px) {
    .screenshots-slider-container {
        max-width: 100%;
        padding: 0 0 60px; /* Remove side padding to maximize width */
    }

    .screenshot-slide {
        height: auto; /* Allow height to adapt to image */
        min-height: 250px; /* Minimum height ensures visibility */
        border-radius: 10px; /* Slightly reduced radius */
    }
    
    .app-screenshot {
        width: 100%; /* Take full width of container */
        height: auto; /* Maintain aspect ratio */
        max-height: none; /* Remove max-height constraint */
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Lighter shadow for mobile */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    flex-shrink: 0; /* Prevent button from becoming oval */
}

.slider-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.6);
}

.slider-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Mobile App Section */
.mobile-app-section {
    padding: 100px 0;
    background: var(--bg-light); /* Slightly different background to separate sections */
    overflow: hidden;
}

.mobile-slider-container {
    max-width: 350px !important; /* Force phone width */
}

.mobile-slide {
    height: 650px !important; /* Taller for phone screenshots */
    border-radius: 40px !important;
    border: 12px solid #2d2d2d !important; /* Add back phone frame for mobile */
    box-shadow: 0 25px 60px rgba(0,0,0,0.25) !important;
    background: #000; 
}

@keyframes blinkArrow {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0; transform: translateX(10px); }
}

@keyframes blinkArrowRight {
    0%, 100% { opacity: 1; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.3; transform: translateY(-50%) translateX(10px); }
}

.mobile-scroll-hint {
    display: none;
}

.mobile-screenshot {
    border-radius: 25px !important;
    max-height: 100% !important;
    box-shadow: none !important;
     /* Ensure the image fills the 'phone screen' */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
}

/* FAQ Page Styles */
.faq-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 25px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8fafc;
}

.faq-answer p {
    padding: 25px;
    padding-top: 0;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.article-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
}

/* Single Post Styles */
.post-header {
    background: var(--bg-light);
    padding: 150px 0 80px;
    text-align: center;
}

.post-meta {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title {
    font-size: 48px;
    color: var(--text-dark);
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.2;
}

.post-image-container {
    max-width: 1000px;
    margin: -60px auto 60px;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.post-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 32px;
    margin: 50px 0 25px;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 25px;
    color: #4a5568;
}

.post-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
    color: #4a5568;
}

.cta-box {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
}

.cta-box h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 32px;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.price span {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.plan-features li {
    padding: 12px 0;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.coming-soon-badge {
    position: absolute;
    top: 30px;
    right: -35px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn.disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}

@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 55px;
    right: 8px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 55px;
        right: 11px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Login Button in Nav */
.nav-btn-login {
    background: var(--secondary-color);
    padding: 8px 20px !important;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: 600;
}

.nav-btn-login:hover {
    background: var(--white) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .nav-btn-login {
        display: inline-block;
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        background: var(--secondary-color) !important;
        color: white !important;
    }
}


/* Auth Pages Utilities (Login/Register) */
.form-control::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

.article-link-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.article-link-wrapper:hover {
    color: inherit;
}
