/* 233Labs Design System (Blue Dynamic Theme) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    /* Blue to Cyan Gradient */
    --secondary-color: #1e293b;
    /* Slate Dark */
    --heading-color: #0f172a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-color: #475569;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--heading-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    color: var(--heading-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 0 15px;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Auth Buttons and Avatar in Navbar */
#nav-auth-btn {
    border-radius: 50px;
    padding: 8px 24px;
    margin-left: 20px;
    font-size: 14px;
    border-width: 2px;
}

.nav-user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.nav-user-dropdown .dropdown-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
}

.nav-user-dropdown .dropdown-toggle::after {
    display: none;
}

.nav-avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    margin-top: 15px;
}

.nav-user-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.nav-user-dropdown .dropdown-item i {
    font-size: 18px;
    color: var(--primary-color);
}

.nav-user-dropdown .dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.nav-user-dropdown .dropdown-divider {
    margin: 8px 0;
    opacity: 0.05;
}


/* Buttons */
.btn {
    border-radius: 50px !important;
    /* Rounder (Pill) */
    padding: 10px 30px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.15);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent 40%);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: var(--heading-color);
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
    /* Simpler zoom */
}

.card-body {
    padding: 30px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.card-title a {
    color: var(--heading-color);
}

.card-title a:hover {
    color: var(--primary-color);
}

.project-tag {
    font-size: 11px;
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 50px;
    /* Pillow tags */
    margin-right: 6px;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: #0a0f1d;
    color: #cbd5e1;
    font-size: 14px;
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h5 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 25px;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.5px;
}

.footer-link {
    color: #cbd5e1;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-logo-wrapper {
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.footer-logo-wrapper:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.6);
}

.footer-logo-wrapper img {
    max-width: 120px;
    height: auto;
}

/* Refining standard sections */
section {
    position: relative;
}


.post-grid {
    display: grid;
    gap: 8px;
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.post-grid-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.post-grid-item:hover {
    opacity: 0.9;
}

/* Specific Grid Layouts */
.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
}

.grid-3 .post-grid-item:first-child {
    grid-row: span 2;
    height: 408px;
}

.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #1e293b;
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Mobile Navigation Refinements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 30px 0;
        text-align: center;
        background: #fff;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        padding-bottom: 20px;
    }

    .nav-item {
        margin-bottom: 8px;
    }

    .nav-link {
        padding: 12px 0 !important;
        font-size: 17px;
        /* Slightly larger for touch */
    }

    /* Auth Button Container */
    .navbar-collapse .d-flex {
        justify-content: center !important;
        width: 100%;
        padding: 0 40px;
    }

    #nav-auth-btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 280px;
        padding: 12px 0;
    }
}

/* How It Works Section Beautification */
.how-it-works-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.step-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 25px;
    font-size: 60px;
    font-weight: 900;
    font-family: 'Raleway', sans-serif;
    color: rgba(37, 99, 235, 0.05);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
}

.step-card:hover .step-number {
    color: rgba(37, 99, 235, 0.12);
}

.step-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 30px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.step-card:hover .step-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.step-connector {
    position: absolute;
    top: 50%;
    left: 12%;
    width: 76%;
    height: 2px;
    background: repeating-linear-gradient(to right, transparent, transparent 10px, rgba(37, 99, 235, 0.1) 10px, rgba(37, 99, 235, 0.1) 20px);
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .step-connector {
        display: none;
    }
}

/* Profile Redesign Styles */
.profile-header-bg {
    background: linear-gradient(135deg, var(--primary-color), #4dabff);
    height: 200px;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: -100px;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.avatar-edit-overlay {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.avatar-wrapper:hover .avatar-edit-overlay {
    opacity: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.nav-pills-custom {
    gap: 10px;
}

.nav-pills-custom .nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.nav-pills-custom .nav-link.active {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.nav-pills-custom .nav-link:hover:not(.active) {
    background: rgba(13, 110, 253, 0.05);
}

.settings-section-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section-title i {
    color: var(--primary-color);
}

.profile-stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8faff;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 767.98px) {
    .nav-pills-custom .nav-link {
        padding: 0.8rem 1.2rem !important;
    }
}

/* Projects page enhancements */
.projects-hero {
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.08), transparent 30%), radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.08), transparent 28%), linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.project-chip {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f172a;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.projects-stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.projects-stat-value {
    font-weight: 800;
    color: var(--heading-color);
}

.projects-stat-label {
    font-size: 13px;
    color: #64748b;
}
