/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
}

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

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

.nav-logo svg {
    width: 40px;
    height: 40px;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.2;
    z-index: 1;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #8b5cf6;
}

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

.nav-link.cta-nav {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.nav-link.cta-nav::after {
    display: none;
}

.nav-link.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

/* Scroll Container */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 80px; /* Add padding to account for fixed navbar */
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Section Styles */
.section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px); /* Ensure minimum height accounts for navbar */
}

#section1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

#section2 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

#section3 {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

/* Background Shapes */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

/* Section 1 Shapes - Yellow theme */
.shape-1 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.15);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    top: 30%;
    right: 30%;
    animation-delay: 4s;
    transform: rotate(45deg);
    border-radius: 20px;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Section 2 Shapes - Purple theme */
.shape-5 {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    top: 15%;
    right: 10%;
    animation-delay: 1s;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
}

.shape-6 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    bottom: 25%;
    left: 15%;
    animation-delay: 3s;
    transform: rotate(30deg);
}

.shape-7 {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    top: 40%;
    left: 25%;
    animation-delay: 0s;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.shape-8 {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.08);
    top: 70%;
    right: 25%;
    animation-delay: 2s;
    border-radius: 50% 20% 80% 30%;
}

/* Section 3 Shapes - Green theme */
.shape-9 {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.12);
    top: 20%;
    left: 15%;
    animation-delay: 2s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-10 {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.15);
    bottom: 30%;
    right: 20%;
    animation-delay: 4s;
    transform: rotate(60deg);
    border-radius: 30px;
}

.shape-11 {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    right: 40%;
    animation-delay: 1s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-12 {
    width: 190px;
    height: 190px;
    background: rgba(255, 255, 255, 0.08);
    bottom: 10%;
    left: 30%;
    animation-delay: 3s;
    border-radius: 20% 80% 50% 50%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

.section-content {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

/* Phone Container */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.phone-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-wrapper.animate {
    transform: translateX(0);
    opacity: 1;
}

.phone-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3));
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-15px) rotateY(5deg);
    }
}

/* Text Container */
.text-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 2rem;
}

.text-content {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.2s;
}

.text-content.animate {
    transform: translateX(0);
    opacity: 1;
}

.section-heading {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.section-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
}

/* CTA Button */
.cta-button {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .button-shine {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .phone-wrapper {
        max-width: 280px;
        transform: translateY(0);
    }
    
    .phone-wrapper.animate {
        transform: translateY(0);
    }
    
    .text-container {
        padding-left: 0;
    }
    
    .text-content {
        transform: translateY(0);
    }
    
    .text-content.animate {
        transform: translateY(0);
    }
    
    .section-heading {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .nav-container {
        padding: 1rem 20px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .nav-link.cta-nav {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Adjust shapes for mobile */
    .shape {
        opacity: 0.05;
    }
    
    .shape-1, .shape-5, .shape-9 {
        width: 120px;
        height: 120px;
    }
    
    .shape-2, .shape-6, .shape-10 {
        width: 80px;
        height: 80px;
    }
    
    .shape-3, .shape-7, .shape-11 {
        width: 60px;
        height: 60px;
    }
    
    .shape-4, .shape-8, .shape-12 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .phone-wrapper {
        max-width: 240px;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-container {
        scroll-behavior: smooth;
    }
}

/* Loading animation */
.section {
    animation: sectionFadeIn 1s ease-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}