/* ================================================
   PerAds Platform - Custom Frontend Styles
   Senior Level Professional Design
   ================================================ */

/* Color Variables */
:root {
    --primary-blue: #0066FF;
    --primary-blue-dark: #0052CC;
    --light-blue: #E8F4FD;
    --lighter-blue: #F5FAFF;
    --dark-text: #1a1a1a;
    --gray-text: #6B7280;
    --border-color: #D1D5DB;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 102, 255, 0.15);
}

/* Global Resets */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography with Fluid Scaling */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

.section-py {
    padding: clamp(60px, 10vw, 80px) 0;
}

/* Navbar Enhancements */
.layout-navbar {
    backdrop-filter: saturate(200%) blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-nav {
    gap: 20px;
}

div#navbarSupportedContent.collapse.show {
    background: #edf6fe;
    white-space: nowrap;
    position: absolute;
    top: 61px;
    left: 0;
    height: 100vh;
    width: 100%;
}

.navbar-nav .nav-link {
    color: var(--dark-text);
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
    background: var(--lighter-blue);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Mobile Navbar Fix */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons with Professional Touch */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 50px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, #003d99 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.3);
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1.1rem;
}

/* Landing Hero Section */
.landing-hero {
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4fd 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: clamp(80px, 15vw, 120px);
    padding-bottom: clamp(60px, 10vw, 80px);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Utility Cards */
.utility-card {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.utility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.5s;
}

.utility-card:hover::before {
    left: 100%;
}

.utility-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.25);
    border-color: var(--primary-blue-dark);
}

.utility-img-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighter-blue);
    border-radius: 15px;
    padding: 20px;
    transition: background 0.3s ease;
}

.utility-card:hover .utility-img-placeholder {
    background: white;
}

/* Feature Boxes (Why Monetize) */
.feature-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary-blue);
    background: var(--lighter-blue);
    transform: translateX(10px);
    box-shadow: -5px 5px 15px rgba(0, 102, 255, 0.1);
}

.feature-box:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Stats Bar */
.stats-bar {
    background: white;
    border: 3px solid var(--primary-blue);
    border-radius: 50px;
    padding: clamp(30px, 5vw, 40px) clamp(20px, 5vw, 50px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.stats-divider {
    border-left: 2px solid var(--primary-blue);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: var(--gray-text);
    font-weight: 600;
    margin-top: 5px;
}

/* How It Works Cards */
.how-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}

.how-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(34, 48, 62, 0.08), rgba(255, 255, 255, 0.15));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.how-card:hover::after {
    opacity: 1;
}

.how-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
}

.how-card-img {
    background: linear-gradient(135deg, var(--lighter-blue) 0%, white 100%);
    border-radius: 15px;
    padding: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.how-card:hover .how-card-img {
    background: linear-gradient(135deg, white 0%, var(--lighter-blue) 100%);
}

.how-card-title {
    background: var(--lighter-blue);
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.how-card:hover .how-card-title {
    background: #0061f3;
    color: white;
}

/* Alternating Feature Sections */
.feature-section {
    background: var(--lighter-blue);
    position: relative;
}

.feature-image {
    transition: all 0.4s ease;
    margin-top: 30px;
}

.feature-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
}

.feature-content h3 {
    color: var(--primary-blue);
    font-size: clamp(1.75rem, 4vw, 2rem);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.feature-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.feature-content p {
    color: var(--gray-text);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Use Cases Section */
.use-case-btn {
    background: white;
    border: 2px solid var(--dark-text);
    border-radius: 12px;
    padding: clamp(12px, 3vw, 18px) clamp(15px, 3vw, 25px);
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.use-case-btn i {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    transition: transform 0.3s ease;
}

.use-case-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.use-case-btn:hover i {
    transform: scale(1.2);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e9f9 100%);
    border-radius: 25px;
    padding: clamp(40px, 8vw, 60px) clamp(30px, 5vw, 40px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--dark-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.cta-banner .text-primary {
    color: var(--primary-blue) !important;
}

/* Footer Enhancements */
.landing-footer {
    background: #1a1a2e;
    padding-top: 60px;
    color: white;
    position: relative;
}

footer p.mb-3 {
    color: #010101;
}

.footer-top {
    position: relative;
}

.footer-top img {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 184%;
    opacity: 0.1;
}

p.footer-text {
    color: #22303e;
}

h6.footer-title {
    color: #22303e;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link {
    color: #2b2c40;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-link:hover::after {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    color: var(--primary-blue);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    max-width: 100%;
    position: relative;
    display: inline-block;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-text);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto;
}

/* Utility Classes */
.bg-light-blue {
    background-color: var(--lighter-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav {
        gap: 0;
        padding: 20px 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
    }

    .section-py {
        padding: 60px 0;
    }

    .feature-content {
        margin-top: 40px;
    }

    .stats-divider {
        border-left: none;
        border-top: 2px solid var(--primary-blue);
        padding-top: 20px;
        margin-top: 20px;
    }

    .landing-hero {
        min-height: auto;
        padding-top: 80px;
    }

    .hero-title {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .section-py {
        padding: 50px 0;
    }

    .stats-bar {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .cta-banner {
        text-align: center;
    }

    .feature-box {
        padding: 20px;
    }

    .utility-card {
        padding: 25px;
    }

    .use-case-btn {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-box {
        flex-direction: column;
        text-align: center;
    }

    .feature-box i {
        font-size: 2rem;
    }
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Smooth Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {

    .landing-navbar,
    .scroll-top,
    .cta-banner {
        display: none !important;
    }
}