/* Infitwin Website Styles
   Version: 1.0
   Last Updated: June 2025
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    background: #FFF8E7;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

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

.nav-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF6B4A;
}

.nav-login {
    color: #4A4A4A;
}

.nav-signup {
    background: #FF6B4A;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-signup:hover {
    background: #ff5533;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url('../assets/images/wheat-field-vangogh.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Subtle overlay to ensure text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.02) 30%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.03) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Living overlay for subtle animation */
.living-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255, 235, 59, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    animation: subtleBreathe 22s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes subtleBreathe {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1) translateY(0);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.01) translateY(-3px);
    }
}

/* Enhanced floating particles - subtle and magical */
.floating-mote {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 250, 220, 0.9);
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(255, 235, 150, 0.7),
        0 0 16px rgba(255, 220, 100, 0.3);
    animation: enhancedFloat 18s ease-in-out infinite;
    filter: blur(0.3px);
    z-index: 4;
}

@keyframes enhancedFloat {
    0% { 
        transform: translateY(0) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        transform: scale(1) rotate(30deg);
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% { 
        transform: translateY(-450px) translateX(70px) scale(0.2) rotate(180deg);
        opacity: 0;
    }
}

.mote-1 { left: 35%; bottom: 30%; animation-delay: 0s; }
.mote-2 { left: 65%; bottom: 20%; animation-delay: 2.5s; }
.mote-3 { left: 45%; bottom: 40%; animation-delay: 5s; }
.mote-4 { left: 55%; bottom: 25%; animation-delay: 7.5s; }
.mote-5 { left: 40%; bottom: 35%; animation-delay: 10s; }
.mote-6 { left: 60%; bottom: 30%; animation-delay: 12.5s; }

/* Hero content with improved typography */
.hero-content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.hero-title {
    font-size: 64px;
    font-weight: 600;
    color: #1A1510;
    margin-bottom: 24px;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 1),
        2px 2px 4px rgba(255, 255, 255, 0.9),
        3px 3px 6px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 248, 231, 0.6),
        0 0 40px rgba(255, 245, 200, 0.4);
    opacity: 0;
    animation: enhancedFadeInUp 2s ease-out forwards;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 500;
    color: #2A201A;
    margin-bottom: 32px;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 1),
        2px 2px 4px rgba(255, 255, 255, 0.9),
        3px 3px 5px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(255, 248, 231, 0.5);
    opacity: 0;
    animation: enhancedFadeInUp 2s ease-out 0.5s forwards;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 18px;
    color: #1A1510;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0;
    animation: enhancedFadeInUp 2s ease-out 1s forwards;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 1),
        2px 2px 3px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(255, 248, 231, 0.7),
        0 0 25px rgba(255, 245, 200, 0.4);
    font-weight: 400;
    letter-spacing: 0.2px;
}

@keyframes enhancedFadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(40px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.hero-cta {
    padding: 20px 48px;
    font-size: 17px;
    font-weight: 500;
    background: 
        linear-gradient(135deg, #FFD700 0%, #FFCD47 20%, #FFC107 50%, #FFB300 80%, #FF9500 100%);
    color: #2C2416;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 12px 40px rgba(255, 193, 7, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        inset 0 -4px 20px rgba(255, 152, 0, 0.2),
        inset 0 2px 8px rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    opacity: 0;
    animation: enhancedFadeInUp 2s ease-out 1.5s forwards;
    text-shadow: 
        0.5px 0.5px 1px rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-transform: none;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 50px rgba(255, 193, 7, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        inset 0 -4px 20px rgba(255, 152, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.6);
    background: 
        linear-gradient(135deg, #FFD900 0%, #FFCF47 20%, #FFC307 50%, #FFB500 80%, #FF9700 100%);
}

/* Enhanced curator orb */
.curator-orb {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: 
        radial-gradient(ellipse 40% 60% at 35% 30%, #FFD700, #FFCD47 40%, #FFC107 80%);
    box-shadow: 
        0 8px 32px rgba(255, 193, 7, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        inset 0 -4px 15px rgba(255, 152, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    animation: enhancedOrbFloat 8s ease-in-out infinite;
    z-index: 30;
}

@keyframes enhancedOrbFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-15px) scale(1.02); 
    }
}

.curator-orb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 12px 45px rgba(255, 193, 7, 0.7),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        inset 0 -4px 15px rgba(255, 152, 0, 0.4),
        inset 0 3px 10px rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { 
        font-size: 48px; 
        line-height: 1.15;
    }
    .hero-subtitle { 
        font-size: 22px; 
        margin-bottom: 24px;
    }
    .hero-description { 
        font-size: 16px; 
        padding: 0 20px; 
        line-height: 1.7;
    }
    .hero-cta { 
        padding: 18px 40px; 
        font-size: 16px; 
    }
    .curator-orb { 
        bottom: 20px; 
        right: 20px; 
        width: 60px; 
        height: 60px; 
    }
}

@media (max-width: 480px) {
    .hero-title { 
        font-size: 40px; 
    }
    .hero-subtitle { 
        font-size: 20px; 
    }
    .hero-description { 
        font-size: 15px; 
    }
}

/* Common Section Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1A1510;
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: #6B5D54;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #FFFFFF;
}

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

.feature-card {
    padding: 2rem;
    background: #FFF8E7;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1510;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #6B5D54;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background: #FFF8E7;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: #FF6B4A;
    color: white;
    font-size: 36px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1510;
}

.step p {
    font-size: 16px;
    line-height: 1.6;
    color: #6B5D54;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FF6B4A 0%, #FF8E53 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #FF6B4A;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background: white;
    color: #FF6B4A;
}

/* Footer */
.main-footer {
    background: #1A1510;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #B8B3AE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FF6B4A;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #B8B3AE;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4A4A4A;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 248, 231, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.mobile-menu-open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        width: 80%;
        text-align: center;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 107, 74, 0.1);
    }
    
    .nav-signup {
        margin-top: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}