:root {
    /* Color Palette */
    --bg-color: #EDEFF7;
    --text-primary: #0F4BC2;
    --text-secondary: #536D9E;
    --primary-color: #0F4BC2;
    --secondary-color: #B9E0E9;
    --accent-light: #F0E246;
    --border-color: #B9E0E9;
    --success-color: #4AD37D;
    --surface-color: #FFFFFF;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.btn:not(a) {
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #2C3A1A; /* Lighter green */
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Visual Abstract */
.hero-visual {
    position: relative;
    height: 500px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.visual-stack {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
}

.saas-img {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 75, 194, 0.15), 0 0 0 1px rgba(185, 224, 233, 0.5);
    transition: all 0.5s ease;
    background-color: var(--surface-color);
    max-width: 75%; /* Limit size so they stack nicely */
    height: auto;
}

.img-left {
    top: 60px;
    left: -10%;
    z-index: 1;
    transform: translateX(-15%) rotate(-5deg) scale(0.7);
    opacity: 0.9;
}

.img-right {
    top: 60px;
    right: 30;
    z-index: 1;
    transform: translateX(15%) rotate(5deg) scale(0.7);
    opacity: 0.9;
}

.img-center {
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    width: 80%;
    box-shadow: 0 30px 60px rgba(15, 75, 194, 0.25), 0 0 0 1px rgba(185, 224, 233, 0.8);
}

/* Hover effects for interaction */
.visual-stack:hover .img-left {
    transform: translateX(-60%) rotate(-8deg) scale(0.92);
}

.visual-stack:hover .img-right {
    transform: translateX(50%) rotate(8deg) scale(1);
}

.visual-stack:hover .img-center {
    transform: translateX(-50%) translateY(-10px) scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-visual {
        height: 350px;
    }
    
    .saas-img {
        max-width: 85%;
    }
    
    .img-left {
        transform: translateX(10%) rotate(-3deg) scale(0.85);
    }
    
    .img-right {
        transform: translateX(-10%) rotate(3deg) scale(0.85);
    }
}

/* Value Props */
.value-props {
    padding: 80px 0;
    background-color: var(--surface-color);
    overflow: hidden;
}

.container-fluid {
    width: 100%;
    overflow: hidden;
}

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

.props-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: slide 20s linear infinite;
}

.props-track:hover {
    animation-play-state: paused;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move half the width (since we duplicated content) */
    }
}

.prop-card {
    padding: 32px;
    background-color: var(--bg-color);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    flex: 0 0 350px; /* Fixed width for cards in slider */
    white-space: normal; /* Allow text wrapping */
}

.prop-card:hover {
    border-color: var(--border-color);
}

.prop-card h3 {
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--primary-color);
}

/* About Us */
.about-us {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 60px;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    object-position: center;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 75, 194, 0.1);
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.team-member .role {
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links a {
    margin: 0 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.social-links a:hover {
    border-bottom-color: var(--secondary-color);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-brand {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 36px;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 18px;
        padding: 0 16px;
        margin-bottom: 30px;
    }

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

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
        padding: 0 16px;
    }
    
    /* Navigation */
    .navbar {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 20px;
    }

    .nav-content .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px; /* Increased top padding to clear navbar */
    }

    .hero-visual {
        height: auto; /* Allow height to grow with stacked images */
        margin-top: 40px;
        transform: scale(1);
        perspective: none; /* Remove 3D perspective for vertical stack */
    }
    
    .visual-stack {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        height: auto;
    }

    .saas-img {
        max-width: 100%;
        position: relative; /* Change from absolute to relative for stacking */
        width: 100%;
        height: auto;
        box-shadow: 0 10px 20px rgba(15, 75, 194, 0.1);
    }

    /* Vertical stack on mobile */
    .img-left {
        left: auto;
        top: auto;
        transform: none;
        opacity: 1;
        order: 2; /* Control order */
    }
    
    .img-right {
        right: auto;
        left: auto;
        top: auto;
        transform: none;
        opacity: 1;
        order: 3;
    }
    
    .img-center {
        width: 100%;
        top: auto;
        transform: none;
        z-index: 2;
        order: 1; /* Show dashboard first */
        box-shadow: 0 15px 30px rgba(15, 75, 194, 0.15);
    }

    /* Disable hover effects on mobile stack */
    .visual-stack:hover .img-left,
    .visual-stack:hover .img-right,
    .visual-stack:hover .img-center {
        transform: none;
    }

    /* Value Props */
    .value-props {
        padding: 40px 0;
    }

    .props-track {
        gap: 20px;
    }
    
    .prop-card {
        flex: 0 0 80vw; /* Make cards wider on mobile */
        padding: 24px;
        white-space: normal;
    }

    .prop-card h3 {
        font-size: 20px;
    }

    /* About Us */
    .about-us {
        padding: 60px 0;
    }
    
    .team-grid {
        gap: 40px;
    }

    /* Touch Targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        padding: 12px;
        display: inline-block;
    }

    /* Layout */
    .container {
        padding: 0 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    /* Ensure stacked images are visible on small screens too */
    .hero-visual {
        height: auto;
    }

    .img-left, .img-right {
        display: block; /* Show them stacked */
    }

    .img-center {
        width: 100%;
        transform: none;
    }
    
    .visual-stack:hover .img-center {
        transform: none;
    }

    .prop-card {
        flex: 0 0 85vw;
    }
}

