/**
 * Landing Page Styles
 * Custom styles for the portfolio app landing page
 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
}

/* =========================
   Global Styles
   ========================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* =========================
   Navigation
   ========================= */

#mainNav {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNav.navbar-scrolled {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

#mainNav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* =========================
   Hero Section
   ========================= */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 60px;
}

.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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-features p {
    font-size: 1.1rem;
}

.hero-features i {
    color: var(--success-color);
}

/* Domain Checker */
.domain-checker {
    position: relative;
    z-index: 2;
}

.domain-checker .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.domain-checker input {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.domain-checker input:focus {
    box-shadow: none;
    outline: none;
}

.domain-checker .input-group-text {
    border: none;
    background: white;
    font-weight: 600;
    color: var(--primary-color);
}

.domain-checker button {
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.domain-checker button:hover {
    background: var(--light-bg) !important;
    transform: scale(1.05);
}

/* Stats Bar */
.stats-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    color: white;
    font-size: 2.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* =========================
   Feature Cards
   ========================= */

.feature-card {
    transition: all 0.3s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* =========================
   Timeline (How It Works)
   ========================= */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    flex: 1;
    padding: 0 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    max-width: 400px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 2rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .timeline-content {
        max-width: 100%;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 1rem;
        margin-right: 0;
    }
}

/* =========================
   Pricing Cards
   ========================= */

.pricing-card {
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.3s;
    background: white;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.pricing-card .badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* =========================
   Testimonial Cards
   ========================= */

.testimonial-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =========================
   Buttons
   ========================= */

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* =========================
   Registration Form
   ========================= */

#registrationForm .form-label {
    color: #333;
    margin-bottom: 0.5rem;
}

#registrationForm .form-control,
#registrationForm .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

#registrationForm .form-control:focus,
#registrationForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

#registrationForm .is-invalid {
    border-color: var(--danger-color);
}

#registrationForm .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Domain Validation Messages */
#domainValidation .alert,
#domainCheckResult .alert {
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
}

#domainValidation .alert-success,
#domainCheckResult .alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

#domainValidation .alert-danger,
#domainCheckResult .alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* =========================
   Footer
   ========================= */

footer {
    border-top: 1px solid #e0e0e0;
}

footer a {
    transition: all 0.3s;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* =========================
   Animations
   ========================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading spinner */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

/* =========================
   Responsive Design
   ========================= */

@media (max-width: 992px) {
    .hero-section {
        padding-top: 100px;
    }

    .stats-bar {
        margin-top: 3rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .stats-bar {
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .timeline-content {
        padding: 1rem 1.5rem;
    }
}

/* =========================
   Utility Classes
   ========================= */

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
