/**
 * EzDevo Main Stylesheet
 * Calming, modern design with smooth animations
 */

/* === CSS Variables === */
:root {
    --color-blue: #5E9ED6;
    --color-green: #A8DADC;
    --color-teal: #6EC5C5;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --color-red: #EF4444;
    --color-purple: #A78BFA;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-gray-900);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* === Navigation === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

nav.nav-transparent {
    background: transparent;
}

nav.nav-solid {
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--color-gray-700);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-blue);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--color-gray-900);
    transition: var(--transition-base);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 999;
}

body.mobile-menu-open .mobile-menu {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 1rem;
    color: var(--color-gray-700);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--color-blue);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #EBF5FF 0%, #E0F2F1 50%, #EBF5FF 100%);
}

.hero-blobs {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
}

.blob-1 {
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: var(--color-blue);
}

.blob-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: var(--color-green);
    animation-delay: 1s;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-gray-900);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.cta-button .arrow-icon {
    color: white;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.scroll-indicator {
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    color: var(--color-gray-600);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Services Section === */
.services-section {
    padding: 5rem 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
}

.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-slow);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.gradient-blue {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
}

.gradient-green {
    background: linear-gradient(135deg, #34D399, #10B981);
}

.gradient-teal {
    background: linear-gradient(135deg, #5EEAD4, #14B8A6);
}

.gradient-purple {
    background: linear-gradient(135deg, #C084FC, #A855F7);
}

.gradient-blue-green {
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.problem-text {
    color: var(--color-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.solution-text {
    color: var(--color-gray-700);
    margin-bottom: 1rem;
}

.time-saved {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10B981;
    font-weight: 700;
}

.time-saved svg {
    color: #10B981;
}

/* === Time Calculator === */
.time-calculator {
    background: linear-gradient(135deg, #EBF5FF 0%, #E0F2F1 100%);
    padding: 3rem;
    border-radius: 1.5rem;
}

.time-calculator h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-gray-900);
}

.calculator-options {
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.calc-option:hover {
    box-shadow: var(--shadow-md);
}

.calc-option input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

.calc-option span {
    flex: 1;
    font-size: 1.125rem;
    color: var(--color-gray-900);
}

.calc-option strong {
    color: #10B981;
    font-weight: 700;
}

.calculator-result {
    text-align: center;
    margin-top: 2rem;
}

.calculator-result > p {
    font-size: 1.5rem;
    color: var(--color-gray-700);
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
    transition: all var(--transition-base);
}

.result-number.pulse {
    animation: pulseScale 0.5s ease;
}

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

.result-hours {
    color: var(--color-gray-600);
    margin-top: 0.5rem;
}

/* === Testimonials Section === */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.testimonial-carousel {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 56rem;
    margin: 0 auto;
    min-height: 200px;
}

.testimonial {
    opacity: 0;
    display: none;
    text-align: center;
    transition: opacity var(--transition-slow);
}

.testimonial.active {
    opacity: 1;
    display: block;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .testimonial-text {
        font-size: 1.5rem;
    }
}

.testimonial-author {
    color: var(--color-blue);
    font-weight: 600;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--color-gray-300);
    transition: all var(--transition-base);
    cursor: pointer;
}

.dot.active {
    width: 2rem;
    background: var(--color-blue);
    border-radius: 0.375rem;
}

/* === About Section === */
.about-section {
    padding: 5rem 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-image .image-placeholder {
    width: 100%;
    height: 24rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content .highlight {
    color: var(--color-blue);
    font-weight: 600;
}

.about-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-600);
    margin-top: 1.5rem;
}

.about-location svg {
    color: var(--color-blue);
}

/* === Contact Section === */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #EBF5FF 0%, #E0F2F1 100%);
}

.contact-form-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.form-success {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    text-align: center;
}

.form-success svg {
    color: #10B981;
    margin: 0 auto 1rem;
}

.form-success h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--color-gray-600);
}

.contact-form {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
}

@media (min-width: 768px) {
    .contact-form {
        padding: 3rem;
    }
}

.form-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-300);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(94, 158, 214, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.quick-btn:nth-child(1) {
    background: #DBEAFE;
    color: #1E40AF;
}

.quick-btn:nth-child(1):hover {
    background: #BFDBFE;
}

.quick-btn:nth-child(2) {
    background: #D1FAE5;
    color: #065F46;
}

.quick-btn:nth-child(2):hover {
    background: #A7F3D0;
}

.quick-btn:nth-child(3) {
    background: #CCFBF1;
    color: #115E59;
}

.quick-btn:nth-child(3):hover {
    background: #99F6E4;
}

.quick-btn.selected {
    transform: scale(0.95);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    color: white;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 0.875rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--color-red);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

@media (min-width: 768px) {
    .contact-info {
        flex-direction: row;
        justify-content: center;
    }
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-600);
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--color-blue);
}

.contact-info svg {
    color: var(--color-blue);
}

/* === Footer === */
.footer {
    background: var(--color-gray-900);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--color-blue);
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: var(--color-blue);
    border-radius: 0.5rem;
    color: white;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: #4a8ac5;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: white;
}