:root {
    --primary-color: #8B2635;
    --secondary-color: #333;
    --accent-color: #e74c3c;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --text-muted: #6b7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--dark-gray);
}

main {
    margin: 0 !important;
    padding: 0 !important;
}

section {
    margin: 0 !important;
}

/* Header Navigation */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-sign-in {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.btn-sign-in:hover {
    color: var(--primary-color);
}

.btn-get-started {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-get-started:hover {
    background: #721c24;
    transform: translateY(-1px);
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0;
}

.hero-background-decoration {
    position: absolute;
    top: -80px;
    left: -180px;
    width: 600px;
    height: 450px;
    background: radial-gradient(ellipse 65% 75% at 35% 45%, 
        rgba(139, 38, 53, 0.45) 0%, 
        rgba(139, 38, 53, 0.35) 25%, 
        rgba(139, 38, 53, 0.25) 45%, 
        rgba(139, 38, 53, 0.15) 65%, 
        rgba(139, 38, 53, 0.08) 80%,
        transparent 100%);
    border-radius: 60% 40% 70% 30% / 45% 65% 35% 55%;
    transform: rotate(-20deg);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-card-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3f2;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
}

.platform-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--secondary-color);
    margin: 0;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(139, 38, 53, 0.2);
}

.btn-primary:hover {
    background: #721c24 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 38, 53, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 2px solid var(--primary-color);
}

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

/* Hero section specific button styling */
.hero-buttons .btn-secondary {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: flex-start;
    width: 100%;
    max-width: 1600px;
    margin: 40px auto 0 auto;
    padding: 0 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Right - Featured Gig Card */

.featured-gig-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    width: 100% !important;
    max-width: 900px !important;
    height: 290px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-left: auto;
    margin-right: 0;
    transform: translateX(-40px);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.featured-label {
    background: #fef3f2;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #fbbf24;
    font-size: 14px;
}

.rating span:first-of-type {
    font-weight: 600;
    color: var(--secondary-color);
}

.review-count {
    color: var(--text-muted);
    font-size: 14px;
}

.gig-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.gig-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.category {
    color: var(--text-muted);
    font-size: 14px;
}

.category::after {
    content: "•";
    margin-left: 8px;
    color: var(--border-color);
}

.gig-meta .price {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 16px;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
}

.freelancer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.freelancer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.freelancer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.freelancer-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.freelancer-details p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}

.success-rate {
    background: #f0f9ff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 80px;
}

.rate-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.rate-label {
    color: var(--text-muted);
    font-size: 10px;
}

.btn-view-details {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 12px;
}

.btn-view-details:hover {
    background: #721c24;
    transform: translateY(-1px);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .main-container {
        padding: 60px 16px;
    }
    
    .hero-section {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 16px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 16px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding: 0 16px;
    }
    
    .hero-card-content {
        justify-content: center;
    }
    
    .hero-background-decoration {
        top: -30px;
        left: -100px;
        width: 300px;
        height: 300px;
    }
    
    .hero-stats {
        justify-content: center;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 32px;
    }
    
    .stat-item {
        align-items: center;
        text-align: center;
    }
    
    .featured-gig-card {
        max-width: 900px !important;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .featured-gig-card {
        padding: 18px;
        height: 260px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 32px 32px 16px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 700;
}

.modal-body {
    padding: 32px;
}

.close {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--secondary-color);
}

.modal .form-group {
    margin-bottom: 24px;
}

.modal .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
}

.modal .btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal .btn-primary {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.modal .btn-primary:hover {
    background: #721c24 !important;
}

.modal p {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
}

.modal a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}

/* Google Auth Styles */
.google-auth-section {
    margin-bottom: 24px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-google:hover {
    border-color: var(--primary-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
    border-top: 1px solid var(--border-color);
}

.divider::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--white);
    color: var(--text-muted);
    padding: 0 16px;
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 20px auto;
        width: calc(100% - 40px);
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    margin-left: 10px;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.invalid-feedback {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 5px;
}

.is-invalid {
    border-color: var(--accent-color);
}

/* Typography */
h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container for forms */
.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
}

/* Features Section */
.features {
    padding: 40px 0;
    background: white;
    width: 100%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--dark-gray);
}

.features-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6366f1;
    border-radius: 50%;
    color: white;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-icon i {
    font-size: 3rem;
}

.feature-card h3 {
    margin: 0 0 15px;
    font-size: 1.5em;
    color: var(--dark-gray);
}

.feature-card p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

.feature-card .skills {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin: 10px 0;
    font-weight: 500;
}

.feature-card .rate {
    color: var(--accent-color);
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
}

.feature-card .bio {
    color: var(--dark-gray);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 15px 0;
    height: 60px;
    overflow: hidden;
}

.feature-card .btn {
    margin-top: 15px;
    width: 100%;
}

/* Navigation */
.top-bar {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.logo i {
    color: #FFD700;
    margin-right: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.side-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 0;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 250px;
    z-index: 10;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.nav-links li {
    padding: 0;
    margin: 5px 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 25px;
    transition: background-color 0.3s ease;
}

.nav-links a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* MAIN CONTENT LAYOUT - DEFINITIVE RULES */
.main-content {
    margin-left: 250px;
    padding-top: 60px;
    min-height: 100vh;
    background-color: var(--light-gray);
    transition: margin-left 0.3s ease;
}

/* Page container structure */
.page-container {
    position: relative;
    min-height: 100vh;
}

.page-container .side-nav {
    position: fixed;
    left: 0;
    top: 60px;
    width: 250px;
    height: calc(100vh - 60px);
    z-index: 1000;
    background: white;
    border-right: 1px solid #e5e7eb;
}

/* Ensure dashboard pages always have proper sidebar layout on desktop */
.page-container .main-content {
    margin-left: 250px !important;
    min-height: 100vh;
    padding-top: 60px;
}

/* Mobile responsive - hide sidebar and reset margins */
@media (max-width: 768px) {
    .page-container .main-content {
        margin-left: 0 !important;
        padding-top: 120px;
    }
    
    .page-container .side-nav {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 120px;
    }
}

/* Legacy Media Queries - Overridden by definitive rules above */
@media (max-width: 768px) {
    /* These rules are now handled by the definitive layout rules above */
    .side-nav {
        display: none;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 100px;
        height: 100px;
    }
    
    .certificate-thumbnail {
        width: 120px;
        height: 120px;
    }
    
    .features {
        padding: 20px 0;
    }
    
    .features-container {
        padding: 10px;
    }
    
    .hero {
        margin-left: 0;
        min-height: 60vh;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
}

/* Top Clients Section */
.top-clients {
    padding: 60px 0;
    background: var(--light-gray);
    width: 100%;
    position: relative;
}

.clients-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
}

.client-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
}

.client-logo {
    font-size: 3em;
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
}

.client-card h3 {
    margin: 0 0 15px;
    font-size: 1.5em;
    color: var(--primary-color);
}

.client-testimonial {
    font-style: italic;
    color: var(--dark-gray);
    margin: 15px 0;
    line-height: 1.6;
}

.client-name {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .top-clients {
        padding: 40px 0;
    }
    
    .clients-container {
        padding: 10px;
    }
}

/* Dashboard Styles */
.dashboard-container {
    padding: 30px;
}

.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.profile-picture {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-profile-picture {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-profile-picture i {
    color: white;
    font-size: 16px;
}

.edit-profile-picture:hover {
    background: #2980b9;
}

/* Activity Cards */
.activity-cards {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.activity-header h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.activity-date {
    color: #6b7280;
    font-size: 0.875rem;
    white-space: nowrap;
}

.project-status,
.status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 4px;
}

.project-status.open,
.status.open {
    background: #dbeafe;
    color: #1d4ed8;
}

.project-status.in_progress,
.status.in_progress {
    background: #fef3c7;
    color: #d97706;
}

.project-status.completed,
.status.completed {
    background: #d1fae5;
    color: #065f46;
}

.project-status.funded,
.status.funded {
    background: #dcfce7;
    color: #166534;
}

.activity-content {
    margin-bottom: 15px;
}

.activity-description {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.activity-meta span {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    gap: 4px;
}

.budget,
.project-earnings {
    font-weight: 600;
    color: #059669;
}

.activity-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.skill-tag.more {
    background: #e5e7eb;
    color: #6b7280;
}

.activity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.funding-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 4px;
    background: #dcfce7;
    color: #166534;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.client-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.client-name {
    font-weight: 600;
    color: #1f2937;
}

/* Button Styles for Activity Cards */
.btn-fund {
    background: #059669;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-fund:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-complete {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-complete:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-review {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-review:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* Media Queries */
@media (max-width: 768px) {
    .profile-picture {
        width: 120px;
        height: 120px;
    }
    
    .edit-profile-picture {
        width: 32px;
        height: 32px;
    }
    
    .edit-profile-picture i {
        font-size: 14px;
    }

    /* Mobile Activity Cards */
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-header h4 {
        font-size: 1rem;
        min-width: auto;
        width: 100%;
    }

    .activity-date {
        align-self: flex-start;
    }

    .project-status,
    .status {
        margin-top: 8px;
        align-self: flex-start;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .activity-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-actions {
        flex-direction: column;
        gap: 8px;
    }

    .activity-actions .btn,
    .btn-fund,
    .btn-complete,
    .btn-cancel,
    .btn-review {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .client-info {
        align-items: flex-start;
        gap: 12px;
    }

    .client-photo {
        width: 36px;
        height: 36px;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    /* Mobile Status Container */
    .status-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 8px;
    }

    .project-status,
    .status,
    .funding-status {
        align-self: flex-start;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 0 auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Form styles specific to modals */
.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.modal .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

.modal p {
    text-align: center;
    margin: 16px 0 0 0;
    font-size: 14px;
}

.modal a {
    color: var(--secondary-color);
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal {
        padding: 10px 0;
    }
    
    .modal-content {
        margin: 0 auto;
        width: 95%;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal .form-group {
        margin-bottom: 14px;
    }
    
    .modal .form-control {
        padding: 10px;
        font-size: 16px;
    }
    
    .modal p {
        margin: 14px 0 0 0;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px 0;
    }
    
    .modal-content {
        width: 98%;
        max-height: calc(100vh - 10px);
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 12px 15px;
    }
    
    .modal .form-group {
        margin-bottom: 12px;
    }
    
    .modal .form-control {
        padding: 8px;
    }
    
    .modal p {
        margin: 12px 0 0 0;
    }
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2)), 
                linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                url('../images/Gigstar.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: -250px;
    width: calc(100% + 250px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 35rem;
    width: 100%;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 160px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        margin-left: 0;
        min-height: 60vh;
    }
    
    .btn {
        min-width: 140px;
        padding: 0.8rem 1.5rem;
    }
}

/* Profile Page Styles */
.profile-header {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-header h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.profile-header p {
    color: var(--dark-gray);
    margin: 0;
}

.profile-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
}

.pricing-tiers {
    margin-top: 30px;
}

.pricing-tiers h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.tier {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tier h5 {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    min-width: 120px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

@media (max-width: 768px) {
    .profile-header,
    .profile-content {
        padding: 20px;
        margin-bottom: 20px;
    }

    .profile-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Certificate Styles */
.certificate-upload {
    margin-top: 20px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.certificate-upload h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 6px;
    border: 2px dashed #ddd;
}

#selected-file {
    color: var(--dark-gray);
    font-size: 0.9em;
    flex: 1;
}

.upload-cert-btn {
    align-self: flex-end;
    min-width: 150px;
}

.certificates-list {
    margin-top: 30px;
}

.certificates-list h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2em;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.no-certificates {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border-radius: 8px;
    color: var(--dark-gray);
}

.no-certificates i {
    font-size: 3em;
    color: #bbb;
    margin-bottom: 15px;
}

.no-certificates p {
    margin: 0;
    font-size: 1.1em;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certificate-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.certificate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.certificate-icon {
    font-size: 2em;
    color: var(--secondary-color);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 40px;
}

.certificate-info {
    flex: 1;
}

.certificate-info h5 {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: 1.1em;
}

.certificate-info p {
    margin: 0 0 15px;
    font-size: 0.9em;
    color: var(--dark-gray);
    line-height: 1.5;
}

.certificate-actions {
    display: flex;
    gap: 10px;
}

.certificate-actions .btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.certificate-actions .btn-sm i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .upload-cert-btn {
        align-self: stretch;
    }
    
    #selected-file {
        text-align: center;
        margin-top: 10px;
    }
    
    .certificate-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .certificate-icon {
        width: auto;
        margin-bottom: 10px;
    }
    
    .certificate-actions {
        justify-content: center;
    }
}

.certificates-preview {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0 1.5rem;
}

.certificate-thumbnail {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.certificate-thumbnail:hover {
    transform: scale(10);
    z-index: 100;
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.certificate-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-title {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-budget {
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.client-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.client-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.client-details i {
    color: #6366f1;
    font-size: 1rem;
}

.project-description {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.project-meta-left {
    display: flex;
    gap: 1rem;
}

.project-meta-left span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apply-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #6366f1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.apply-button:hover {
    background: #4f46e5;
    text-decoration: none;
}

.no-projects {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .project-meta-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Apply Project Page Styles */
.apply-project-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project-details {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-details h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.project-info {
    color: #4b5563;
    line-height: 1.6;
}

.project-info p {
    margin-bottom: 1rem;
}

.project-info strong {
    color: #1f2937;
    font-weight: 600;
}

.proposal-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.proposal-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    resize: vertical;
    min-height: 150px;
}

.proposal-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

@media (max-width: 768px) {
    .apply-project-container {
        margin: 1rem auto;
    }

    .project-details,
    .proposal-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Bid-related styles */
.bids-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.bids-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.bid-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fafafa;
    transition: box-shadow 0.3s ease;
}

.bid-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bid-card:last-child {
    margin-bottom: 0;
}

.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bid-project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.bid-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
}

.freelancer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.freelancer-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.freelancer-details {
    flex: 1;
}

.freelancer-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.freelancer-skills {
    color: #6b7280;
    font-size: 0.875rem;
}

.bid-proposal {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 3px solid #6366f1;
}

.bid-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #6366f1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
}

.btn-view-profile:hover {
    background: #4f46e5;
    text-decoration: none;
    color: white;
}

.btn-accept {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
}

.btn-accept:hover {
    background: #059669;
}

.btn-reject {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
}

.btn-reject:hover {
    background: #dc2626;
}

.bid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.no-bids-message {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .bid-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .bid-actions {
        flex-direction: column;
    }

    .bid-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .freelancer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Google Authentication Styles */
.google-auth-section {
    margin-bottom: 1.5rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google img,
.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .btn-google {
        font-size: 0.8rem;
        padding: 0.625rem 0.875rem;
    }
    
    .btn-google img,
    .btn-google svg {
        width: 16px;
        height: 16px;
    }
}

/* Enhanced Mobile Responsive Styles */

/* Mobile Breadcrumb Navigation */
.mobile-breadcrumb {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb-container {
    padding: 0.75rem 1rem;
}

.breadcrumb-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.breadcrumb-toggle:hover {
    background: #4f46e5;
}

.breadcrumb-toggle i {
    font-size: 1rem;
}

.breadcrumb-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.breadcrumb-menu.active {
    left: 0;
}

.breadcrumb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.breadcrumb-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.breadcrumb-logo i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #007bff;
}

.breadcrumb-logo span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007bff;
    letter-spacing: 0.5px;
}

.breadcrumb-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.breadcrumb-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.breadcrumb-content {
    padding: 1rem 0;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.breadcrumb-link:hover {
    background: #f3f4f6;
    color: #6366f1;
}

.breadcrumb-link.active {
    background: #eef2ff;
    color: #6366f1;
    border-left-color: #6366f1;
}

.breadcrumb-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.breadcrumb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.breadcrumb-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.scroll-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.scroll-to-top:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

/* Enhanced Table Responsiveness */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.table-responsive th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* Enhanced Form Responsiveness */
@media (max-width: 768px) {
    .mobile-breadcrumb {
        display: block;
    }

    .top-bar {
        position: relative;
        z-index: 1001;
    }

    /* main-content rules handled by definitive layout above */

    .side-nav {
        display: none;
    }

    /* Enhanced container responsiveness */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Form improvements */
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
    }

    /* Button improvements */
    .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    /* Grid improvements */
    .features-grid,
    .clients-grid,
    .projects-grid,
    .freelancers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Card improvements */
    .feature-card,
    .client-card,
    .project-card,
    .freelancer-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Hero section improvements */
    .hero {
        padding: 0;
        min-height: auto;
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        background: none;
    }

    /* Hero image section */
    .hero::before {
        content: '';
        display: block;
        width: 100%;
        height: 40vh;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2)), 
                    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                    url('../images/Gigstar.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 0 0 1rem 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
        background: #f8f9fa;
        margin-top: 0;
    }

    .hero-text {
        text-align: center;
        color: #333;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        color: #333;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 0;
        color: #666;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 1rem;
        position: static;
        background: transparent;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* CTA Button mobile improvements */
    .cta-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
        max-width: 160px;
        margin: 0;
        flex: 0 1 auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    /* Mobile CTA button specific colors */
    .cta-buttons .btn-primary {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
    }

    .cta-buttons .btn-primary:hover {
        background: linear-gradient(135deg, #0056b3, #004085);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }

    .cta-buttons .btn-secondary {
        background: var(--white);
        color: var(--dark-gray);
        border: 2px solid var(--primary-color);
    }

    .cta-buttons .btn-secondary:hover {
        background: linear-gradient(135deg, #218838, #1e7e34);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

    /* Modal improvements */
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Dashboard improvements */
    .dashboard-container {
        padding: 1rem;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
    }

    /* Navigation improvements */
    .nav-links {
        padding: 0;
    }

    .nav-links a {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Project details improvements */
    .project-details,
    .apply-project-container,
    .post-project-container {
        padding: 1rem;
        margin: 1rem;
    }

    /* Bid cards improvements */
    .bid-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .bid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bid-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .bid-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Freelancer info improvements */
    .freelancer-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .freelancer-photo {
        margin: 0 auto;
    }

    /* Profile improvements */
    .profile-header,
    .profile-content,
    .profile-section {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Certificate improvements */
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .certificate-card {
        padding: 1rem;
    }

    /* Table improvements */
    .table-responsive {
        margin: 1rem 0;
        font-size: 0.875rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem;
    }

    /* Filter improvements */
    .filters-section {
        padding: 1rem;
        margin: 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .apply-filters {
        width: 100%;
        margin-top: 1rem;
    }

    /* Google auth button improvements */
    .btn-google {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .btn-google img,
    .btn-google svg {
        width: 16px;
        height: 16px;
    }

    /* Footer improvements */
    .footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    /* Text improvements */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }

    /* Spacing improvements */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    /* Image improvements */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Profile picture improvements */
    .profile-picture-section {
        margin: 1.5rem 0;
    }

    /* Certificate thumbnail improvements */
    .certificate-thumbnail {
        width: 100px;
        height: 100px;
    }

    /* Client info improvements */
    .client-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .client-photo {
        margin: 0 auto;
    }

    /* Project meta improvements */
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-meta-left {
        width: 100%;
    }

    /* Apply button improvements */
    .apply-button {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    /* main-content rules handled by definitive layout above */

    .container {
        padding: 0 0.75rem;
    }

    .form-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .hero {
        padding: 0;
        min-height: auto;
        background: none;
        flex-direction: column;
    }

    /* Hero image section for smaller screens */
    .hero::before {
        height: 30vh;
        border-radius: 0 0 0.75rem 0.75rem;
    }

    .hero-content {
        padding: 1.5rem 0.75rem;
        background: #f8f9fa;
        margin-top: 0;
    }

    .hero-text {
        text-align: center;
        color: #333;
        margin-bottom: 1.5rem;
        background: transparent;
        padding: 0;
        border-radius: 0;
        backdrop-filter: none;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .hero-text p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        color: #666;
    }

    .cta-buttons {
        margin-top: 1rem;
        position: static;
        background: transparent;
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-width: 130px;
        max-width: 150px;
        margin: 0;
        flex: 0 1 auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    /* Mobile CTA button specific colors for small devices */
    .cta-buttons .btn-primary {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
    }

    .cta-buttons .btn-primary:hover {
        background: linear-gradient(135deg, #0056b3, #004085);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }

    .cta-buttons .btn-secondary {
        background: var(--white);
        color: var(--dark-gray);
        border: 2px solid var(--primary-color);
    }

    .cta-buttons .btn-secondary:hover {
        background: linear-gradient(135deg, #218838, #1e7e34);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

    .feature-card,
    .client-card,
    .project-card {
        padding: 1rem;
    }

    .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .breadcrumb-menu {
        width: 250px;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.375rem;
    }
}

/* Landscape orientation improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
    }

    /* main-content rules handled by definitive layout above */
}

/* Print styles for better printing */
@media print {
    .mobile-breadcrumb,
    .scroll-to-top,
    .breadcrumb-overlay,
    .side-nav,
    .top-bar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

.container {
    max-width: 100% !important;
    padding: 15px !important;
}

/* Why Choose GigStar Section */
.why-choose-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.why-choose-section .container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.feature-card {
    background: var(--white);
    padding: 16px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
    width: 100%;
    min-width: 350px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(139, 38, 53, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: var(--white);
}

.feature-icon.secure-payments {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-icon.fast-matching {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.feature-icon.global-reach {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-icon.support {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.feature-icon.competitive-rates {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-icon.quick-turnaround {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Why Choose Section */
@media (max-width: 1024px) {
    .why-choose-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .features-grid {
        gap: 20px;
        margin-top: 60px;
    }
    
    .feature-card {
        padding: 14px 28px;
        min-height: 100px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 12px 20px;
        min-height: 90px;
        min-width: 200px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .feature-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .feature-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .why-choose-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }
    
    .feature-card {
        padding: 12px 16px;
        min-height: 80px;
        min-width: auto;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .feature-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .feature-description {
        font-size: 12px;
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background: #fafafa;
    position: relative;
}

.how-it-works-section .container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 24px;
}

.how-it-works-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.how-it-works-section .section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.how-it-works-section .section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 100px;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 80px;
    font-weight: 700;
    color: rgba(139, 38, 53, 0.15);
    line-height: 1;
    margin-bottom: -15px;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(139, 38, 53, 0.2);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 auto 20px;
    max-width: 280px;
}

.step-divider {
    width: 60px;
    height: 1px;
    background: var(--primary-color);
    margin: 0 auto 20px;
}

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

.step-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.step-stat .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.2;
}

.step-connector {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 60px;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 38, 53, 0.3) 0%, rgba(139, 38, 53, 0.1) 100%);
    position: relative;
}

.connector-dot {
    width: 16px;
    height: 16px;
    background: rgba(139, 38, 53, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



/* Responsive Design for How It Works */
@media (max-width: 1024px) {
    .how-it-works-section {
        padding: 80px 0;
    }
    
    .how-it-works-section .section-title {
        font-size: 40px;
    }
    
    .how-it-works-section .section-subtitle {
        font-size: 16px;
    }
    
    .steps-container {
        margin-bottom: 80px;
    }
    
    .step-number {
        font-size: 70px;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    .step-stat .stat-number {
        font-size: 24px;
    }
    
    .step-stat .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 60px 0;
    }
    
    .how-it-works-section .section-header {
        margin-bottom: 60px;
    }
    
    .how-it-works-section .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .how-it-works-section .section-subtitle {
        font-size: 15px;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 60px;
    }
    
    .step-item {
        margin-bottom: 40px;
    }
    
    .step-item:last-child {
        margin-bottom: 0;
    }
    
    .step-connector {
        flex-direction: column;
        height: 40px;
        width: 2px;
        margin: 0;
    }
    
    .connector-line {
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, rgba(139, 38, 53, 0.3) 0%, rgba(139, 38, 53, 0.1) 100%);
    }
    
    .step-number {
        font-size: 60px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .step-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .step-description {
        font-size: 13px;
        max-width: 320px;
    }
    
    .step-stat .stat-number {
        font-size: 22px;
    }
    
    .step-stat .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .how-it-works-section {
        padding: 40px 0;
    }
    
    .how-it-works-section .section-header {
        margin-bottom: 40px;
    }
    
    .how-it-works-section .section-title {
        font-size: 28px;
    }
    
    .how-it-works-section .section-subtitle {
        font-size: 14px;
    }
    
    .step-number {
        font-size: 50px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 18px;
    }
    
    .step-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .step-description {
        font-size: 12px;
        max-width: 280px;
    }
    
    .step-stat .stat-number {
        font-size: 20px;
    }
    
    .step-stat .stat-label {
        font-size: 12px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: #fdf2f8;
}

.testimonials-section .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.testimonials-section .section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.testimonials-section .section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.testimonial-card {
    background: var(--white);
    padding: 20px 32px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 32px;
    font-size: 24px;
    color: #ec4899;
}

.testimonial-card .rating {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
    padding-right: 24px;
}

.testimonial-card .rating i {
    color: #fbbf24;
    font-size: 16px;
    margin-left: 2px;
}

.testimonial-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-top: 4px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.user-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 4px 0;
}

.user-details p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.overall-rating {
    text-align: center;
    padding: 16px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 16px;
}

.rating-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-left: 8px;
}

.rating-separator {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
}

.review-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive Design for Testimonials */
@media (max-width: 1024px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonials-section .section-title {
        font-size: 40px;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 16px;
    }
    
    .testimonials-grid {
        gap: 32px;
        margin-bottom: 60px;
    }
    
    .testimonial-card {
        padding: 18px 24px 22px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .testimonial-card .rating {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-section .section-header {
        margin-bottom: 60px;
    }
    
    .testimonials-section .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 15px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 50px;
    }
    
    .testimonial-card {
        padding: 16px 20px 20px;
    }
    
    .quote-icon {
        top: 16px;
        left: 20px;
        font-size: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .user-info {
        padding-top: 12px;
    }
    
    .testimonial-card .rating {
        padding-right: 16px;
    }
    
    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .user-details h4 {
        font-size: 15px;
    }
    
    .user-details p {
        font-size: 13px;
    }
    
    .overall-rating {
        padding: 14px 20px;
        gap: 12px;
    }
    
    .rating-stars i {
        font-size: 14px;
    }
    
    .rating-score {
        font-size: 14px;
        margin-left: 6px;
    }
    
    .rating-separator {
        height: 20px;
    }
    
    .review-count {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-section .section-header {
        margin-bottom: 40px;
    }
    
    .testimonials-section .section-title {
        font-size: 28px;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 14px;
    }
    
    .testimonials-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .testimonial-card {
        padding: 16px 16px 20px;
    }
    
    .quote-icon {
        top: 14px;
        left: 16px;
        font-size: 18px;
    }
    
    .testimonial-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .user-info {
        gap: 12px;
        padding-top: 10px;
    }
    
    .testimonial-card .rating {
        padding-right: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .user-details h4 {
        font-size: 14px;
    }
    
    .user-details p {
        font-size: 12px;
    }
    
    .overall-rating {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .rating-stars {
        gap: 3px;
        margin-bottom: 0;
    }
    
    .rating-stars i {
        font-size: 12px;
    }
    
    .rating-score {
        font-size: 12px;
        margin-left: 4px;
    }
    
    .rating-separator {
        height: 16px;
    }
    
    .review-count {
        font-size: 11px;
    }
}

/* Call to Action Section */
.cta-section {
    background: var(--primary-color);
    padding: 80px 0 60px;
    color: var(--white);
}

.cta-section .container {
    padding-bottom: 0 !important;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--white);
}

.cta-description {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto 12px;
}

.feature-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.feature-item i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 32px;
}

.btn-cta-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    background: #f5f5f5;
    border: 2px solid var(--primary-color);
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    padding: 12px 24px;
    border: 2px solid var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.cta-trust {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin: 0 !important;
}

/* Responsive Design for CTA Section */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0 45px;
    }
    
    .cta-title {
        font-size: 30px;
        margin-bottom: 12px;
    }
    
    .cta-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 24px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 50px 0 35px;
    }
    
    .cta-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .cta-description {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .cta-features {
        margin-bottom: 10px;
    }
    
    .feature-item {
        font-size: 14px;
    }
    
    .feature-item i {
        font-size: 16px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cta-buttons {
        margin-top: 20px;
    }
    
    .cta-trust {
        font-size: 13px;
    }
}

/* Footer Section */
.footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 0;
    margin-top: -1px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.footer-contact {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #b0b0b0;
}

.contact-item i {
    color: #888;
    width: 16px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #444;
    border-radius: 8px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

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

.footer-legal a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-logo {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .footer-description {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .footer-contact {
        margin-bottom: 24px;
    }
    
    .contact-item {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
} 

/* FINAL OVERRIDE - DASHBOARD LAYOUT FIX */
/* Ensures all dashboard pages have consistent layout regardless of other CSS rules */
body {
    overflow-x: hidden;
}

.page-container {
    position: relative !important;
    min-height: 100vh !important;
}

.page-container .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
}

.page-container .side-nav {
    position: fixed !important;
    left: 0 !important;
    top: 60px !important;
    width: 250px !important;
    height: calc(100vh - 60px) !important;
    z-index: 1000 !important;
    background: var(--primary-color) !important;
    border-right: 1px solid #e5e7eb !important;
    overflow-y: auto !important;
}

/* Ensure navigation links are properly styled in dashboard pages */
.page-container .side-nav .nav-links a {
    color: white !important;
    text-decoration: none !important;
    display: block !important;
    padding: 12px 25px !important;
    transition: background-color 0.3s ease !important;
}

.page-container .side-nav .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
}

.page-container .side-nav .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.page-container .side-nav .nav-links a i {
    width: 20px !important;
    margin-right: 10px !important;
    text-align: center !important;
    color: white !important;
}

.page-container .main-content {
    margin-left: 250px !important;
    padding-top: 60px !important;
    min-height: 100vh !important;
    width: calc(100% - 250px) !important;
}

/* Mobile override for dashboard pages */
@media (max-width: 768px) {
    .page-container .side-nav {
        display: none !important;
    }
    
    .page-container .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 120px !important;
    }
} 