/* 
 * White Basket Laundry - Styles
 * Developer Notes: 
 * - Mobile-first responsive design
 * - CSS Grid and Flexbox for layouts
 * - CSS custom properties for easy theme changes
 * - Smooth animations and transitions
 * - Cross-browser compatibility
 */

/* CSS Custom Properties - Easy to modify colors and spacing */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #25d366; /* WhatsApp green */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(44, 90, 160, 0.1);
    transform: translateY(-2px);
}

/* Burger Menu - CSS Only Approach */
.burger-toggle {
    display: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
}

/* Burger Animation */
.burger-toggle:checked + .burger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-toggle:checked + .burger-menu span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-toggle:checked + .burger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger-toggle:checked + .burger-menu + .mobile-nav {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
    transition: all 0.3s ease;
    transform: translateX(-100%);
    animation: slideInLinks 0.5s ease forwards;
}

.mobile-nav a:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav a:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav a:nth-child(3) { animation-delay: 0.3s; }

.mobile-nav a:hover {
    background: rgba(44, 90, 160, 0.1);
    color: var(--primary-color);
    transform: translateX(10px);
}

@keyframes slideInLinks {
    to {
        transform: translateX(0);
    }
}

.logo {
    height: 100px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section with Rotating Background */
.hero {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.4) 0%, rgba(30, 58, 95, 0.5) 100%), url('Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: backgroundRotate 15s infinite;
    min-height: 70vh;
}

/* Background rotation animation */
@keyframes backgroundRotate {
    0%, 33% {
        background-image: linear-gradient(135deg, rgba(44, 90, 160, 0.4) 0%, rgba(30, 58, 95, 0.5) 100%), url('Background.png');
    }
    34%, 66% {
        background-image: linear-gradient(135deg, rgba(44, 90, 160, 0.4) 0%, rgba(30, 58, 95, 0.5) 100%), url('Background 2.png');
    }
    67%, 100% {
        background-image: linear-gradient(135deg, rgba(44, 90, 160, 0.4) 0%, rgba(30, 58, 95, 0.5) 100%), url('Background 3.png');
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
    background: var(--white);
    animation: fadeIn 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    animation: fadeInUp 0.6s ease-out;
}

.story-text.highlight {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    text-align: left;
    margin-top: 2rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.contact-content {
    text-align: center;
}

.contact-methods {
    margin-top: 2rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 100%);
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #1e3a5f 0%, var(--primary-color) 100%);
    animation-play-state: paused;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    animation: iconSpin 4s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.phone-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer-text {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Logo floating animation */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Text glow animation */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(44, 90, 160, 0.3);
    }
    100% {
        text-shadow: 0 0 10px rgba(44, 90, 160, 0.6), 0 0 15px rgba(44, 90, 160, 0.4);
    }
}

/* Button pulse animation */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(44, 90, 160, 0.5), 0 0 20px rgba(44, 90, 160, 0.3);
    }
}

/* Icon spin animation */
@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Responsive Design - Mobile First */

/* Mobile responsiveness for hero background */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Small devices (phones, 768px and down) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        height: 50px;
    }
    
    .company-name {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .nav-menu {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .whatsapp-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        animation: buttonPulse 3s ease-in-out infinite;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
    
    .story-text.highlight {
        font-size: 1.1rem;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--primary-color);
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .whatsapp-btn {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .phone-number {
        font-size: 0.9rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .burger-menu {
        display: none;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .story-section {
        padding: 5rem 0;
    }
    
    .contact-section {
        padding: 5rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .story-text {
        font-size: 1.2rem;
    }
}

/* Large screens (27+ inch monitors) */
@media (min-width: 1440px) {
    .hero {
        min-height: 60vh;
        padding: 6rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero {
        padding: 8rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .story-section,
    .contact-section {
        padding: 3rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-light: #000000;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        animation: none !important;
        background-image: linear-gradient(135deg, rgba(44, 90, 160, 0.4) 0%, rgba(30, 58, 95, 0.5) 100%), url('Background.png') !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .whatsapp-btn {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
    }
    
    .story-section {
        page-break-inside: avoid;
    }
}