﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 0;
}

/* Add padding to account for floating pill nav bar */
body > form {
    padding-top: 0;
}

/* Adjust hero sections that had margin-top for old fixed header */
.start-hero,
.hero {
    margin-top: 0 !important;
}

/* Override inline margin-top styles on hero sections */
section[style*="margin-top"] {
    margin-top: 0 !important;
}

/* Override margin-top on hero sections in page styles */
.login-hero,
.register-hero,
.hero-section,
.start-hero {
    margin-top: 0 !important;
}

/* Header & Navigation - Stitch.money Inspired (Floating Pill Nav Bar) */
.header.navbar-pill_component {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 60px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    overflow: visible;
}

/* Pill container - main flex container */
.navbar-pill_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1.25rem;
    width: 100%;
    overflow: visible;
    min-width: 0;
    position: relative;
}

/* Logo link styling */
.navbar-pill_logo-link {
    flex-shrink: 0;
    margin-right: 0.75rem;
    min-width: 0;
}

.navbar-pill_logo-link .logo-brand {
    font-size: 1.5rem;
}

.navbar-pill_logo-link .logo-profession {
    font-size: 0.55rem;
}

/* Navigation menu inside pill */
.navbar-pill_menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50px;
    padding: 0.5rem;
    gap: 0.35rem;
    margin: 0 0.75rem;
    min-width: 0;
    overflow: visible;
}

/* Nav menu wrapper for sliding pill */
.nav-menu-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

/* Sliding pill background */
.nav-pill-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    background-color: #2c5aa0;
    border-radius: 50px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.3s ease;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
    opacity: 0;
    visibility: hidden;
    min-width: 0;
    min-height: 0;
    will-change: left, width, opacity;
}

/* Right side actions */
.navbar-pill_menu-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
    min-width: 0;
    position: relative;
    z-index: 1001;
}

.navbar-pill_menu-right .dropdown {
    position: relative;
    z-index: 1001;
}

/* Ensure dropdown menu appears properly outside the pill */
.navbar-pill_menu-right .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    left: 0 !important;
    z-index: 1001 !important;
    margin-top: 0.25rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-pill_menu-right .dropdown-menu[style*="display: block"],
.navbar-pill_menu-right .dropdown-menu[style*="display:block"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar-pill_menu-right .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

/* Ensure auth buttons stay inside the pill */
.navbar-pill_menu-right .auth-button {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
    flex-shrink: 0;
}

.navbar-pill_menu-right .auth-button i {
    font-size: 0.75rem;
    margin-right: 0.35rem;
}

.navbar-pill_menu-right .cart-button {
    flex-shrink: 0;
    padding: 0.625rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #2c5aa0;
    line-height: 1.2;
    text-align: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.logo-brand {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 0;
    padding: 0;
    color: #2c5aa0;
    white-space: nowrap;
}

.logo-profession {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.5rem;
    letter-spacing: 5px;
    margin: 0.1rem 0 0 0;
    padding: 0;
    color: #2c5aa0;
    font-weight: normal;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

    .nav-menu a,
    .nav-menu .nav-item {
        text-decoration: none;
        color: #2d2d2d;
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.625rem 1rem;
        border-radius: 50px;
        transition: color 0.3s ease;
        position: relative;
        display: flex;
        align-items: center;
        white-space: nowrap;
        flex-shrink: 1;
        z-index: 1;
        cursor: pointer;
    }
    
    .nav-menu a.active,
    .nav-menu .nav-item.active {
        color: #ffffff;
    }
    
    .nav-menu a:not(.active):hover,
    .nav-menu .nav-item:not(.active):hover {
        color: rgba(45, 45, 45, 0.7);
    }

        /* Very subtle and minimal icons */
        .nav-menu a i {
            font-size: 0.8rem;
            margin-right: 0.4rem;
            color: rgba(45, 45, 45, 0.6);
            opacity: 0.65;
            transition: opacity 0.2s ease-in-out;
            flex-shrink: 0;
        }

        .nav-menu a:hover,
        .nav-menu .nav-item:hover {
            transform: none;
        }

        .nav-menu a:hover i,
        .nav-menu .nav-item:hover i {
            opacity: 0.85;
        }
        
        .nav-menu a.active i,
        .nav-menu .nav-item.active i {
            opacity: 1;
            color: #ffffff;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.cart-button {
    position: relative;
    background: transparent;
    border: none;
    color: #2d2d2d;
    font-size: 1.1rem;
    padding: 0.625rem;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    transition: all 0.3s ease;
    transform: scale(1);
}

.auth-button {
    background: transparent;
    color: #2d2d2d;
    padding: 0.625rem 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-button i {
    font-size: 0.7rem;
    opacity: 0.65;
    margin-right: 0.3rem;
    flex-shrink: 0;
}

.navbar-pill_menu-right .auth-button i {
    font-size: 0.65rem;
    margin-right: 0.25rem;
}

.auth-button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.2);
}

.cta-button {
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
        animation: float 20s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 1s ease 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp 1s ease 0.9s forwards;
}

.hero-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background: white;
    color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .primary-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

    .secondary-btn:hover {
        background: white;
        color: #2c5aa0;
        transform: translateY(-3px);
    }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: #2c5aa0;
        margin-bottom: 1rem;
    }

    .section-title p {
        font-size: 1.1rem;
        color: #666;
        max-width: 600px;
        margin: 0 auto;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

    .cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 0.8rem;
    color: #2c5aa0;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p, .footer-section li {
    color: #ccc;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

    .footer-section a:hover {
        color: #2c5aa0;
    }

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.85rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: 0.3s;
    }

/* Responsive Design - Tablet and Desktop Optimization */
@media (min-width: 1280px) {
    .header {
        width: calc(100% - 4rem);
    }
    
    .nav-container {
        padding: 0.75rem 3rem;
    }
    
    .nav-menu {
        gap: 2rem;
    }
}

@media (max-width: 1279px) and (min-width: 769px) {
    .header {
        width: calc(100% - 3rem);
        top: 0.75rem;
    }
    
    .nav-container {
        padding: 0.75rem 2rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body > form {
        padding-top: 4.5rem;
    }
    
    .header {
        width: calc(100% - 2rem);
        top: 0.5rem;
        border-radius: 30px;
    }
    
    .navbar-pill_container {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .navbar-pill_menu-right .auth-button {
        font-size: 0.8rem;
        padding: 0.45rem 0.75rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

        .nav-menu.active {
            display: flex;
        }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-container {
        padding: 0.75rem 1.5rem;
        gap: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .footer {
        padding: 1.5rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section p, .footer-section li {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.8rem;
        font-size: 0.8rem;
    }
}
