/* Custom CSS for Rate My Landing Website */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #00ccff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Logo Styles */
.navbar-logo {
    height: 64px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.app-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.footer-logo {
    height: 24px;
    width: auto;
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(0, 102, 204, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Navigation items layout fix for theme toggle */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item:last-child {
    margin-left: 0.5rem;
}

/* Hero Section */
/*.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 76px;
} */

/* .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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,0 800,1000 0,1000"/></svg>') no-repeat center center;
    background-size: cover;
} */

/* Hero Section */
.hero-section {
  /* Account for fixed navbar */
  padding-top: 76px;

  /* full-screen clouds background */
  background-image: url('/images/hero-sky-clouds.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  position: relative;
  overflow: hidden;
}

/* Optional: dark overlay for better text contrast */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badges .badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    transition: transform 0.3s ease;
}

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

/* Feature Cards */
.feature-card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    height: 80px;
    display: flex;
    align-items: center;
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Screenshot Cards */
.screenshot-card img {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.screenshot-card:hover img {
    transform: scale(1.05);
}

/* Support Cards */
.support-card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.support-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Contact Cards */
.contact-card {
    background: rgba(0, 102, 204, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

/* Section Spacing */
section {
    scroll-margin-top: 76px; /* Account for fixed navbar */
}

/* Enhanced transitions for theme switching */
section,
.card,
.feature-card,
.support-card,
.contact-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .navbar-logo {
        height: 28px;
    }
    
    .app-logo {
        max-width: 250px;
    }
    
    .footer-logo {
        height: 20px;
    }
    
    /* Theme toggle adjustments for mobile */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-logo {
        height: 24px;
    }
    
    .app-logo {
        max-width: 200px;
    }
    
    .support-card {
        margin-bottom: 1rem;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading.active::after {
    opacity: 1;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Bootstrap Custom Overrides */
.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Additional Utility Classes */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Enhanced focus states for theme toggle */
.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.5);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    .theme-toggle-container {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}