/* Global Styles */
:root {
    --primary-color: #FF6600;
    --secondary-color: #28A745;
    --accent-color: #FF8C00;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FF8C00;
    --info-color: #17A2B8;
    --light-color: #F8F9FA;
    --dark-color: #000000;
    --gradient-primary: linear-gradient(135deg, #FF6600, #FF4500);
    --gradient-accent: linear-gradient(135deg, #FF8C00, #FF6600);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* 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: #FF4500;
}

/* Navigation Styles */
.navbar {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    z-index: 1050;
}

.navbar .dropdown-menu {
    z-index: 1060;
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.nav-login-btn {
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

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

.hero-cta {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: white;
    transition: var(--transition);
}

.feature-card.floating {
    animation: float 6s ease-in-out infinite;
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Sidebar Ad */
.sidebar-ad {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 1000;
    padding: 10px;
}

.ad-container {
    width: 100%;
    height: 100%;
    background: white;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.ad-placeholder {
    text-align: center;
    color: #999;
    padding: 20px;
}

.ad-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.ad-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

/* Hide sidebar ad on mobile */
@media (max-width: 992px) {
    .sidebar-ad {
        display: none;
    }
}

/* How It Works Section */
.how-it-works {
    background: white;
}

.step-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid #e9ecef;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.step-divider {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* Features Section */
.features-section {
    background: var(--light-color);
}

.feature-item {
    padding: 1.5rem;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
}

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

.feature-icon i {
    display: inline-block;
    vertical-align: middle;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary {
    background: var(--gradient-primary);
}

.btn-warning {
    background: var(--gradient-accent);
    color: var(--dark-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    margin-top: auto;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer a.text-light:hover {
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.footer .text-muted {
    color: #6c757d !important;
}

/* Footer Quick Links Alignment */
.footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.footer ul.list-unstyled li a {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.footer ul.list-unstyled li a i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 2rem;
        min-height: auto;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-cta {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .step-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .navbar-brand .brand-text {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

/* Custom Bootstrap overrides */
.bg-primary {
    background: var(--gradient-primary) !important;
}

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

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

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .sidebar-ad,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}
