/* =====================================
   COMPONENTS - Buttons, Cards, Forms, Images - Complete File
   ===================================== */

/* Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #b22222, #dc143c);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(178, 34, 34, 0.4);
    text-decoration: none;
    color: white;
}

.secondary-button {
    background: transparent;
    border: 2px solid #b22222;
    color: #b22222;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: #b22222;
    color: white;
    transform: translateY(-2px);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #b22222;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
}

.contact-item {
    margin: 2rem 0;
}

.contact-item h3 {
    color: #b22222;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
}

.contact-item small {
    color: #999;
    font-style: italic;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #b22222;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

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

/* Status Messages */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.status-info {
    background: #bee5eb;
    color: #0c5460;
    border-color: #17a2b8;
}

/* Verification Components */
.verification-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.verification-code-input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    padding: 1rem;
    margin: 2rem 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
}

.verification-code-input:focus {
    border-color: #b22222;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

/* Loading States */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Privacy Policy Specific */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content section {
    margin: 3rem 0;
}

.privacy-content h2 {
    color: #b22222;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.8rem;
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Call-to-Action Sections */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 4rem 0;
}

.cta-section h2 {
    color: #b22222;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* =====================================
   IMAGE STYLING - Screenshots & Logos
   ===================================== */

/* App Screenshot Gallery */
.screenshot-gallery {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.phone-mockup {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.app-screenshot {
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 3px solid #333;
    opacity: 0;
}

.app-screenshot.loaded {
    opacity: 1;
}

.app-screenshot:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Hero Logo with Dark Background */
.hero-logo {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 20px;
    background: #2c3e50;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 2rem !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.hero-logo.loaded {
    opacity: 1;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Feature Icons Sizing (Updated) */
.feature-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
    display: block;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Screenshot Showcase Section */
.screenshots-showcase {
    margin: 4rem 0;
}

.screenshots-showcase .phone-mockup {
    text-align: center;
}

.screenshots-showcase .phone-mockup p {
    margin-top: 1rem;
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}

/* Screenshot Placeholder Styling */
.screenshot-placeholder {
    width: 200px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 0 auto;
    border: 3px solid #333;
    transition: transform 0.3s ease;
}

.screenshot-placeholder:hover {
    transform: translateY(-5px) scale(1.02);
}

/* App Preview Section Layout */
.app-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 4rem 0;
}

/* =====================================
   RESPONSIVE DESIGN FOR IMAGES
   ===================================== */

@media (max-width: 768px) {
    .screenshot-gallery {
        flex-direction: column;
        gap: 1rem;
    }
    
    .phone-mockup {
        max-width: 150px;
    }
    
    .app-screenshot,
    .screenshot-placeholder {
        max-width: 150px;
        max-height: 300px;
        width: 150px;
        height: 300px;
    }
    
    .app-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-logo {
        width: 100px !important;
        height: 100px !important;
        padding: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .screenshots-showcase div[style*="grid-template-columns"] {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        max-width: 120px;
    }
    
    .app-screenshot,
    .screenshot-placeholder {
        max-width: 120px;
        max-height: 240px;
        width: 120px;
        height: 240px;
    }
    
    .hero-logo {
        width: 80px !important;
        height: 80px !important;
        padding: 10px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem;
    }
    
    .screenshots-showcase div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =====================================
   UTILITY CLASSES
   ===================================== */

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

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

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
