/* Homescreen Professional Redesign - Enhanced Layout & Visual Hierarchy */

/* Professional CSS Variables */
:root {
    --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --card-gradient: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    --cta-gradient: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 100%);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-heavy: 0 16px 40px rgba(0,0,0,0.15);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Professional Base Styles */
* {
    box-sizing: border-box;
}

/* Enhanced Hero Section */
.hero-section {
    background: var(--hero-gradient);
    padding: 80px 0 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced Google Login Button */
.google-login-btn {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    border: none;
    border-radius: var(--border-radius);
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    justify-content: center;
}

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

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

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.login-explanation {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    text-align: center;
}

/* Enhanced Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Professional Features Section */
.features-section {
    background: #f8f9fa;
    padding: 100px 0;
    position: relative;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 0 24px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-medium);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Testimonials Section */
.testimonials-section {
    background: #2c3e50;
    padding: 100px 0;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.1) 100%);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.testimonials-container h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 60px;
    line-height: 1.2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.testimonial-stars {
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: #4285F4;
    text-align: center;
    font-size: 1rem;
}

/* Enhanced How It Works Section */
.how-section {
    background: white;
    padding: 100px 0;
}

.how-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.how-container h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 60px;
    line-height: 1.2;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.how-step-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.how-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: #4285F4;
}

.how-step {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
}

.how-step-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.3;
}

.how-step-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced CTA Section */
.cta-section {
    background: var(--cta-gradient);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.cta-container h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.cta-container p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-container .btn {
    background: white;
    color: #4285F4;
    border: none;
    border-radius: var(--border-radius);
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    min-width: 300px;
    justify-content: center;
}

.cta-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: #f8f9fa;
}

/* Professional Google Sign-in Icon */
.google-signin-icon {
    display: inline-flex;
    align-items: center;
    height: 24px;
    width: 24px;
}

.google-signin-icon svg {
    display: block;
    height: 24px;
    width: 24px;
}

.google-signin-label {
    display: inline-block;
    vertical-align: middle;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.01em;
}

/* Responsive Design Enhancements */
@media (max-width: 1200px) {
    .hero-container {
        gap: 40px;
    }
    
    .features-grid, .testimonials-grid, .how-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px 0;
        min-height: 60vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .features-grid, .testimonials-grid, .how-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card, .testimonial-card, .how-step-card {
        padding: 32px 24px;
    }
    
    .google-login-btn {
        min-width: 250px;
        padding: 16px 28px;
    }
    
    .cta-container .btn {
        min-width: 250px;
        padding: 18px 32px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0 30px 0;
    }
    
    .hero-container {
        padding: 0 16px;
        gap: 30px;
    }
    
    .features-section, .testimonials-section, .how-section, .cta-section {
        padding: 60px 0;
    }
    
    .features-grid, .testimonials-grid, .how-grid {
        padding: 0 16px;
        gap: 20px;
    }
    
    .feature-card, .testimonial-card, .how-step-card {
        padding: 24px 20px;
    }
    
    .google-login-btn {
        min-width: 220px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .cta-container .btn {
        min-width: 220px;
        padding: 16px 28px;
        font-size: 1.1rem;
    }
}

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

.hero-text, .hero-image, .feature-card, .testimonial-card, .how-step-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Professional Focus States */
.google-login-btn:focus-visible,
.cta-container .btn:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.5);
    outline-offset: 2px;
}

/* Professional Loading States */
.google-login-btn:active,
.cta-container .btn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Professional Print Styles */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .feature-card, .testimonial-card, .how-step-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Professional Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .features-section {
        background: #1a1a2e;
    }
    
    .feature-card {
        background: #2a2a3e;
        color: white;
    }
    
    .feature-card h3 {
        color: white;
    }
    
    .feature-card p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .how-section {
        background: #1a1a2e;
    }
    
    .how-step-card {
        background: #2a2a3e;
        color: white;
    }
    
    .how-step-card h3 {
        color: white;
    }
    
    .how-step-card p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .how-container h2 {
        color: white;
    }
}
