* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    white-space: nowrap;
}

/* Language Selector Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}
.lang-btn {
    background: none;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.lang-btn:hover {
    background: var(--primary-color);
    color: white;
}
.flag-icon {
    font-size: 1.2rem;
}
.lang-options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 1000;
    display: none;
}
.lang-options.show {
    display: block;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.lang-option:hover {
    background: var(--bg-light);
}
.lang-option.active {
    background: var(--primary-color);
    color: white;
}
.nav-brand-wrapper {
    display: flex;
    align-items: center;
}

/* Global Search Bar - TikTok Style */
.global-search {
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.7rem 2.8rem 0.7rem 1rem;
    border: 1px solid rgba(22, 24, 35, 0.12);
    background: rgba(22, 24, 35, 0.06);
    border-radius: 92px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
    color: var(--text-primary);
    text-overflow: ellipsis;
}

.search-input::placeholder {
    color: rgba(22, 24, 35, 0.5);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.search-input:focus {
    background: rgba(22, 24, 35, 0.06);
    border-color: rgba(22, 24, 35, 0.2);
    box-shadow: none;
}

.search-input:hover {
    border-color: rgba(22, 24, 35, 0.2);
    background: rgba(22, 24, 35, 0.06);
}

.search-icon {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(22, 24, 35, 0.6);
    pointer-events: none;
    font-size: 1rem;
    z-index: 1;
    background: transparent !important;
    border: none;
}

.search-icon::before,
.search-icon::after {
    background: transparent !important;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(22, 24, 35, 0.2);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 24, 35, 0.3);
}

.search-section {
    padding: 0.5rem 0;
}

.search-section:not(:last-child) {
    border-bottom: 1px solid rgba(22, 24, 35, 0.12);
}

.search-section-title {
    padding: 0.75rem 1rem 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: rgba(22, 24, 35, 0.5);
    text-transform: capitalize;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-section-title i {
    font-size: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(22, 24, 35, 0.03);
}

.search-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fe2c55 0%, #f5007e 50%, #7b37fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    position: relative;
}

.search-avatar::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: white;
}

.search-avatar i {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #fe2c55 0%, #f5007e 50%, #7b37fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.search-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.1) 0%, rgba(123, 55, 251, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgb(22, 24, 35);
}

.search-item-subtitle {
    font-size: 0.8125rem;
    color: rgba(22, 24, 35, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.search-price {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #fe2c55 0%, #f5007e 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem 0.3rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    max-width: 800px;
    justify-content: flex-end;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.82rem;
    transition: color 0.3s;
    white-space: nowrap;
    padding: 0.4rem 0.5rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    border-color: white;
    color: white;
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Sections */
.features, .categories {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Categories Grid */
.categories {
    background: var(--bg-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.skill-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

/* Credits Display */
.credits-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.credits-amount {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--danger-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid var(--primary-color);
}

/* Star Rating */
.star-rating {
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    color: var(--text-secondary);
}

.star-rating:hover {
    transform: scale(1.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
}

.mobile-menu-toggle .notification-badge {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    z-index: 10;
}

.mobile-menu-toggle .notification-badge.show {
    display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-brand {
        order: 1;
    }

    .global-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.65rem 1rem 0.65rem 2.5rem;
    }

    .search-results {
        max-height: 350px;
    }

    .search-result-item {
        padding: 0.6rem 0.8rem;
    }

    .search-avatar,
    .search-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-menu {
        order: 4;
        display: none;
        position: relative;
        width: 100%;
        background: var(--bg-white);
        box-shadow: none;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 0.6rem 1rem;
    }

    #authLinks {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0.5rem 1rem;
        border-bottom: none;
    }

    #authLinks a {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
    }

    #userLinks {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    #userLinks a {
        width: 100%;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    #userLinks a:last-child {
        border-bottom: none;
    }

    /* Hero Mobile */
    .hero {
        padding: 3rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Sections Mobile */
    .features, .categories {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    /* Buttons Mobile */
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Grids Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 0.95rem;
    }

    .category-card p {
        font-size: 0.85rem;
    }

    /* Skills Grid Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1.2rem;
    }

    /* Forms Mobile */
    .form-container {
        margin: 1.5rem auto;
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    /* Cards Mobile */
    .card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Credits Display Mobile */
    .credits-display {
        padding: 1.5rem;
    }

    .credits-amount {
        font-size: 2.5rem;
    }

    /* CTA Mobile */
    .cta {
        padding: 2.5rem 0;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }

    /* Modal Mobile */
    #contactModal .form-container,
    #bookingModal .form-container,
    #reviewModal .form-container {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }

    /* Profile Mobile */
    .hero-buttons button,
    .hero-buttons a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Stats Cards Mobile */
    .card[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .card[style*="display: flex"] > div {
        width: 100% !important;
    }

    /* Inline Styles Override */
    div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Badges Mobile */
    .badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary, .btn-secondary, .btn-danger {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .credits-amount {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 2rem;
    }
}

/* Google OAuth Button Styles */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    margin-top: 1rem;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c8ca;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:active {
    background: #f1f3f4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.google-icon {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}
