:root {
    --primary: #0066FF;
    --primary-light: #4D95FF;
    --primary-dark: #004DC4;
    --secondary: #FF6A3D;
    --text-dark: #222831;
    --text-light: #FFFFFF;
    --background: #F9FAFC;
    --gray-light: #F1F2F6;
    --success: #48BB78;
    --card-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.1), 0 4px 6px -2px rgba(0, 102, 255, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

/* Header */
header {
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #EEF1FF 0%, #F1F2F6 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 102, 255, 0.05));
    top: -100px;
    right: -100px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup {
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 280px;
    height: 570px;
    background-color: var(--primary-light);
    border-radius: 40px;
    box-shadow: var(--card-shadow);
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.phone-screen {
    background-color: var(--gray-light);
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    background-color: var(--primary);
    padding: 1rem;
    color: white;
    text-align: center;
}

.app-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Features */
.features {
    padding: 100px 0;
    position: relative;
}

.features::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.1), rgba(255, 106, 61, 0.05));
    bottom: -50px;
    left: -50px;
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: "";
    position: absolute;
    height: 5px;
    width: 50px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

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

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 102, 255, 0.1), 0 10px 10px -5px rgba(0, 102, 255, 0.04);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 50px;
    background: var(--primary);
    border-radius: 0 0 5px 0;
}

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

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Screenshots */
.screenshots {
    position: relative;
    padding: 50px 0;
    overflow: visible; /* Changed from hidden to show buttons */
}

.screenshot-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.screenshot-slider::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 270px;
    scroll-snap-align: start;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.screenshot-nav {
    position: absolute;
    top: 50%;
    left: -40px; /* Position buttons outside the container */
    right: -40px;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.screenshots .container {
    position: relative;
}

/* Roadmap */
.roadmap {
    padding: 100px 0;
    position: relative;
}

.timeline {
    margin-top: 4rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin: 2rem 0; /* Add spacing between items */
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    top: 50%; /* Center dot vertically */
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::after {
    right: -14px; /* Adjust dot position */
}

.timeline-item:nth-child(even)::after {
    left: -14px; /* Adjust dot position */
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    /* Ensure content is vertically centered */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #EEF1FF 0%, #F1F2F6 100%);
    padding: 80px 0;
    color: var(--text-dark);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #EEF1FF 0%, #F1F2F6 100%);
    color: var(--text-dark);
    padding: 4rem 0 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #666; /* Gray icon color */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Media query for smaller screens */
@media (max-width: 480px) {
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px; /* Makes buttons fully rounded */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.3);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 106, 61, 0.4);
}

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2.5rem;
}

.mb-4 {
    margin-bottom: 2.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

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

    .hero-content {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .timeline::before {
        left: 31px; /* Adjust the vertical line position */
    }

    .timeline-item {
        width: calc(100% - 60px); /* Adjust width to account for timeline */
        padding-left: 70px;
        padding-right: 25px;
        margin-left: 30px; /* Add margin to align with timeline */
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item::after {
        left: -14px; /* Adjust dot position */
        top: 50%;
        transform: translateY(-50%);
    }

    .timeline-content {
        width: 100%;
        margin-left: 0;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .header-container .btn-outline {
        display: none;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .screenshot-nav {
        left: -10px;
        right: -10px;
    }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .timeline::before {
        left: 21px; /* Further adjust for smaller screens */
    }

    .timeline-item {
        width: calc(100% - 40px);
        padding-left: 50px;
        padding-right: 15px;
        margin-left: 20px;
    }

    .timeline-item::after {
        left: -12px;
        width: 16px;
        height: 16px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .screenshot-nav {
        left: -5px;
        right: -5px;
    }
}