/* ==========================================================================
   BIZBOOST - SHARED GLOBAL STYLES (style.css)
   ========================================================================== */

/* Import Google Font: Quicksand */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties (Design System) */
:root {
    /* Color Palette */
    --primary-color: rgb(20, 125, 237);      /* #147DED */
    --primary-hover: #0c61be;
    --secondary-color: #ffffff;
    --background-color: #F5F5F5;
    --text-color: #222222;
    --text-muted: #666666;
    --accent-color: #4A90E2;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, rgb(20, 125, 237) 0%, #4A90E2 100%);
    --gradient-overlay: rgba(20, 125, 237, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 40px rgba(20, 125, 237, 0.08);

    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
    background: #c3d6eb;
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    outline: none;
}

/* Accessibility Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(20, 125, 237, 0.5);
    outline-offset: 2px;
}

/* ==========================================================================
   REUSABLE UTILITIES & BUTTONS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    box-shadow: 0 4px 14px rgba(20, 125, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 125, 237, 0.6);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-white {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #fcfcfc;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
}

.btn-link:hover {
    background: rgba(20, 125, 237, 0.05);
}

/* Google Sign-in Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: #555555;
    border: 1px solid #dcdcdc;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.btn-google img {
    width: 18px;
    height: 18px;
}

.btn-google:hover {
    border-color: var(--primary-color);
    background: rgba(20, 125, 237, 0.02);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Divider with OR */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

/* ==========================================================================
   NAVIGATION BAR (HEADER)
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
}

nav.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

header.scrolled nav.navbar {
    height: var(--header-height-scrolled);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Sliding line hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.extra-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-color);
    border-radius: var(--border-radius-full);
    transition: var(--transition-normal);
    transform-origin: left center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: #1e293b; /* Dark, slate background for premium contrast */
    color: #94a3b8;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--secondary-color);
    transition: var(--transition-normal);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    font-size: 0.95rem;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer Newsletter Form */
.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form-inline {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.newsletter-form-inline:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(20, 125, 237, 0.2);
}

.newsletter-form-inline input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.newsletter-form-inline input::placeholder {
    color: #64748b;
}

.newsletter-form-inline button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.newsletter-form-inline button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.newsletter-msg {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.newsletter-msg.error {
    color: #ef4444;
}

.newsletter-msg.success {
    color: #10b981;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Hidden offscreen by default */
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.25rem;
}

.scroll-top.visible {
    right: 30px;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(20, 125, 237, 0.5);
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(20, 125, 237, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(20, 125, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(20, 125, 237, 0);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

.pulse-button {
    animation: pulse-soft 2s infinite;
}

/* Scroll Trigger Utility (classes added via JS when elements enter viewport) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Card Hover Accent Bar Effect */
.card-hover-accent {
    position: relative;
    overflow: hidden;
}

.card-hover-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.card-hover-accent:hover::before {
    transform: scaleX(1);
}


/* ==========================================================================
   MEDIA QUERIES (Breakpoints)
   ========================================================================== */

/* Laptop / Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    header {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(10px);
    }
    
    nav.navbar {
        height: 70px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
        padding: 50px 24px;
        transform: translateY(-120%);
        transition: transform var(--transition-slow);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        transform: translateY(0);
    }
    
    .menu-links {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.25rem;
        display: inline-block;
    }
    
    .extra-links {
        flex-direction: column;
        width: 100%;
        gap: 16px;
        margin-top: 20px;
    }
    
    .extra-links .btn-signin,
    .extra-links .btn-join {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Hamburger Active Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
