/* =========================================================
   4CsGRAM Front Page Styles
   ========================================================= */

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

body.front-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===== Header ===== */
.site-header {
    background: #FFA500;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.8;
}

.main-nav .cta-link {
    background: #8B008B;
    padding: 10px 25px;
    border-radius: 5px;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    padding: 80px 20px 120px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    color: white;
}

.hero-tagline {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-title .highlight {
    color: #8B008B;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #8B008B;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 0, 139, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 0, 139, 0.4);
}

.hero-images {
    flex: 1;
    position: relative;
    height: 400px;
}

.image-card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-10px);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-1 {
    width: 300px;
    height: 200px;
    top: 0;
    right: 100px;
    z-index: 2;
}

.card-2 {
    width: 300px;
    height: 200px;
    bottom: 20px;
    right: 0;
    z-index: 1;
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    display: block;
    width: 150%;
    height: 80px;
    position: relative;
    left: -25%;
}

/* Smooth wave animation - flows from right to left with opacity fade */
.wave-svg {
    opacity: 0;
    animation: none;
}

.wave-svg.animate {
    animation: waveFlow 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes waveFlow {
    0% {
        opacity: 0;
        transform: translateX(30%) scale(1.1);
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.95;
    }
    100% {
        opacity: 1;
        transform: translateX(0%) scale(1);
    }
}

/* ===== Features Section ===== */
.features-section {
    padding: 80px 20px;
    background: white;
}

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

.features-container h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.features-intro {
    font-size: 18px;
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(44, 107, 179, 0.1), rgba(242, 139, 39, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ===== Why We Need Section ===== */
.why-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.why-container h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.why-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.why-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-card {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.why-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

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

.cta-container h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: #8B008B;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 0, 139, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 0, 139, 0.5);
}

.cta-btn.secondary {
    background: white;
    color: #8B008B;
}

.cta-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
}

/* ===== Footer ===== */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

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

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

.footer-col ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

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

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== Responsive Design ===== */

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .site-header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background: #FFA500;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0;
        order: 4;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        text-align: left;
    }
    
    .main-nav .cta-link {
        background: #8B008B;
        margin: 0;
        border-radius: 0;
    }
    
    .language-switcher {
        order: 3;
        margin-left: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Hero Mobile */
    .hero-section {
        padding: 60px 20px 100px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .hero-tagline {
        font-size: 14px;
    }
    
    .hero-btn {
        padding: 15px 35px;
        font-size: 15px;
    }
    
    .hero-images {
        display: none; /* Hide images on mobile for better performance */
    }
    
    .wave-separator svg {
        height: 60px;
    }
    
    /* Features Mobile */
    .features-section {
        padding: 60px 20px;
    }
    
    .features-container h2 {
        font-size: 28px;
    }
    
    .features-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        gap: 30px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-card h3 {
        font-size: 20px;
    }
    
    /* Why Section Mobile */
    .why-section {
        padding: 60px 20px;
    }
    
    .why-container h2 {
        font-size: 28px;
    }
    
    .why-intro p {
        font-size: 16px;
    }
    
    .why-grid {
        gap: 20px;
    }
    
    .why-card {
        padding: 25px 20px;
    }
    
    .why-icon {
        font-size: 40px;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: 70px 20px;
    }
    
    .cta-container h2 {
        font-size: 28px;
    }
    
    .cta-container p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-btn {
        width: 100%;
        padding: 16px 30px;
    }
    
    /* Footer Mobile */
    .site-footer {
        padding: 40px 20px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .features-container h2,
    .why-container h2,
    .cta-container h2 {
        font-size: 24px;
    }
}
