/* ===========================
   GENERAL STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===========================
   NAVIGATION BAR
   =========================== */

.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #0066cc;
    gap: 8px;
}

.logo i {
    font-size: 2rem;
}

/* DevLancer Professional Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0 10px;
}

.logo-container:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.logo-svg {
    width: 280px;
    height: 80px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 102, 255, 0.15));
}

/* Tablet responsiveness for logo */
@media (max-width: 1024px) {
    .logo-svg {
        width: 240px;
        height: 68px;
    }
}

/* Mobile responsiveness for logo */
@media (max-width: 768px) {
    .logo-svg {
        width: 200px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        width: 160px;
        height: 45px;
    }
    
    .logo-container {
        padding: 0 5px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login,
.btn-signup {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-login:hover {
    background-color: #0066cc;
    color: white;
}

.btn-signup {
    background-color: #0066cc;
    color: white;
}

.btn-signup:hover {
    background-color: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-search {
    padding: 1rem 2rem;
    background-color: #ff6b35;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #ff5a1f;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    opacity: 0.9;
    font-size: 1rem;
}

/* ===========================
   CATEGORIES SECTION
   =========================== */

.categories {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.categories h2,
.how-it-works h2,
.sellers h2,
.testimonials h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.category-link {
    color: #0066cc;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-link i {
    transform: translateX(5px);
}

/* ===========================
   HOW IT WORKS SECTION
   =========================== */

.how-it-works {
    padding: 80px 0;
    background-color: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #0066cc;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background-color: #ddd;
    right: -1rem;
    top: 60px;
    transform: translateX(calc(-50% + 1px));
}

/* ===========================
   SELLERS SECTION
   =========================== */

.sellers {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.seller-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.seller-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.seller-image {
    margin-bottom: 1.5rem;
}

.seller-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #0066cc;
    object-fit: cover;
}

.seller-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.seller-title {
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.rating {
    color: #ff9800;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.rating span {
    color: #666;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.seller-bio {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-contact {
    background-color: #0066cc;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-contact:hover {
    background-color: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ===========================
   PROFILE PAGE STYLES
   (Added to ensure seller profile pages load with intended styling)
   =========================== */

.profile-grid{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:30px;
    align-items:start;
    margin-top:8px;
}

.profile-left{
    background:white;
    padding:22px;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,0.06);
    text-align:center;
}

.profile-photo{position:relative;margin-bottom:12px}
.profile-photo img{
    width:220px;
    height:220px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #0066cc;
}

.availability{display:inline-flex;align-items:center;gap:8px;margin-top:10px;color:#16a34a;font-weight:700}
.availability span{display:inline-block;width:10px;height:10px;background:#16a34a;border-radius:50%}

.profile-left h2{margin-top:8px;margin-bottom:6px}
.profile-role{color:#0066cc;font-weight:700;margin-bottom:12px}

.profile-stats{display:flex;justify-content:space-between;gap:8px;margin:12px 0}
.profile-stats div{flex:1;text-align:center}
.profile-stats strong{display:block;font-size:1.15rem}
.profile-meta{color:#555;font-size:0.95rem;margin-top:6px}
.profile-meta p{margin:6px 0}

.profile-actions{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.profile-actions a{display:inline-block}
.profile-actions .btn-primary{padding:12px 18px}
.profile-actions .btn-outline{padding:10px 14px;border:1px solid #ddd}

.profile-right{
    background:white;
    padding:22px;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,0.04);
}

.profile-right section{margin-bottom:18px}
.profile-right h3{margin-bottom:8px;color:#222}

.skills-list{display:flex;flex-wrap:wrap;gap:8px}
.skill-badge{background:#f1f5f9;color:#0066cc;padding:6px 10px;border-radius:999px;font-weight:700;font-size:0.9rem}

.portfolio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.portfolio-grid img{width:100%;height:200px;object-fit:cover;border-radius:8px}

.review{background:#f9f9f9;padding:12px;border-radius:8px;margin-bottom:10px}
.review .author{font-weight:700;color:#333;margin-bottom:6px}
.review .meta{color:#666;font-weight:600;margin-left:8px}

.contact-info a{color:#0066cc}

@media (max-width:900px){
    .profile-grid{grid-template-columns:1fr}
    .profile-left{display:flex;gap:14px;align-items:center;text-align:left;padding:16px}
    .profile-photo img{width:120px;height:120px;border-width:3px}
    .profile-actions{flex-direction:row}
    .profile-actions a{flex:1}
}

@media (max-width:480px){
    .profile-photo img{width:100px;height:100px}
    .portfolio-grid img{height:140px}
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */

.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #ff9800;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-text {
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: #333;
    font-size: 1rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.85rem;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta {
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #ff6b35;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ff5a1f;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: #0066cc;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0066cc;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

.notification {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 3000;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===========================
   AUTH MODAL
   =========================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

.modal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tab {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.modal-tab.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.modal-body {
    display: grid;
}

.auth-form {
    display: none;
    gap: 1rem;
}

.auth-form.active {
    display: grid;
}

.auth-form h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #222;
}

.auth-form label {
    font-size: 0.95rem;
    color: #555;
}

.auth-form input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
}

.auth-form input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.modal-submit {
    padding: 1rem;
    background: #0066cc;
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-submit:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input {
        border-radius: 5px 5px 0 0;
    }

    .btn-search {
        border-radius: 0 0 5px 5px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 0;
    }

    .categories,
    .how-it-works,
    .sellers,
    .testimonials,
    .cta {
        padding: 60px 0;
    }

    .categories h2,
    .how-it-works h2,
    .sellers h2,
    .testimonials h2,
    .cta h2 {
        font-size: 2rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-login,
    .btn-signup {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-box {
        margin: 0 auto 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 0.8rem;
    }

    .categories-grid,
    .sellers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .seller-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .hero {
        padding: 40px 0;
    }

    .categories h2,
    .how-it-works h2,
    .sellers h2,
    .testimonials h2,
    .cta h2 {
        font-size: 1.5rem;
    }
}

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 0;
    }

    .categories,
    .how-it-works,
    .sellers,
    .testimonials,
    .cta {
        padding: 60px 0;
    }

    .categories h2,
    .how-it-works h2,
    .sellers h2,
    .testimonials h2,
    .cta h2 {
        font-size: 2rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-login,
    .btn-signup {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-box {
        margin: 0 auto 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 0.8rem;
    }

    .categories-grid,
    .sellers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .seller-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .hero {
        padding: 40px 0;
    }

    .categories h2,
    .how-it-works h2,
    .sellers h2,
    .testimonials h2,
    .cta h2 {
        font-size: 1.5rem;
    }
}
