/* ======================================= */
/* 1. THEME TOGGLE BUTTON STYLES           */
/* ======================================= */
/* --- Design 1: Animated Rotating Button --- */
/* --- Design 2: Sliding Switch with JELLY SLIDE EFFECT --- */
/* --- iOS Style Toggle Switch --- */

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    /* Isse button hamesha right end par chala jayega (agar flex container mein hai) */
    margin-left: auto; 
}

/* Hide the default checkbox */
#theme-toggle-input {
    display: none;
}

/* Style the track (the capsule background) */
.theme-switch-track {
    position: relative;
    width: 60px; /* === MODIFIED: Width thodi badha di hai icons ke liye === */
    height: 34px;
    background-color: #76c0f8; /* Light mode track color (sky blue) */
    border-radius: 17px;
    transition: background-color 0.4s ease;
    /* === ADDED: Flexbox to position icons === */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

/* === ADDED: Icon styles === */
.sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.sun-icon {
    color: #f39c12; /* Sun color */
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    color: #f1c40f; /* Moon color */
    opacity: 0;
    transform: rotate(90deg);
}

/* Style the thumb (the sliding circle) */
.theme-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}


/* --- THE "ON" (DARK MODE) STATE --- */

/* 1. Change track color when toggled */
#theme-toggle-input:checked + .theme-switch-track {
    background-color: #2c3e50; /* Dark mode track color (dark blue/grey) */
}

/* 2. Slide the thumb to the right when toggled */
#theme-toggle-input:checked + .theme-switch-track .theme-switch-thumb {
    transform: translateX(26px); /* Move distance: track_width - thumb_width - (2 * left_padding) */
}

/* 3. === ADDED: Animate icons on toggle === */
#theme-toggle-input:checked + .theme-switch-track .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

#theme-toggle-input:checked + .theme-switch-track .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}   
/* ======================================= */
/* 2. LIGHT THEME (DEFAULT)                */
/* ======================================= */

/* --- Basic Reset & Common Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9; /* bg-slate-100 */
    color: #334155; /* text-slate-700 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* ADDED: Smooth transition for theme change */
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Common Keyframes & Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mobileMoveLeft {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(-15deg); }
    to   { opacity: 1; transform: translate(-100%, -140%) scale(1) rotate(12deg); }
}
@keyframes mobileMoveRight {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(15deg); }
    to   { opacity: 1; transform: translate(0%, 40%) scale(1) rotate(-12deg); }
}
@keyframes desktopMoveUp {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(-15deg); }
    to   { opacity: 1; transform: translate(-100%, -140%) scale(1) rotate(12deg); }
}
@keyframes desktopMoveDown {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(15deg); }
    to   { opacity: 1; transform: translate(0%, 40%) scale(1) rotate(-12deg); }
}
@keyframes fadeInBadge {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes draw-line { to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes fade-in-up { to { opacity: 1; transform: translateY(0); } }
@keyframes scale-up { to { opacity: 1; transform: scale(1); } }
@keyframes slide-in-left { to { opacity: 1; transform: translateX(0); } }
@keyframes slide-in-right { to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } }

.animate-fade-in-down { animation: fadeInDown 0.6s ease-out forwards; opacity: 0; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.start-animation-up { animation: mobileMoveLeft 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards; }
.start-animation-down { animation: mobileMoveRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards; }
.start-animation-badge { animation: fadeInBadge 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards; }
@media (min-width: 1024px) {
    .start-animation-up { animation-name: desktopMoveUp; }
    .start-animation-down { animation-name: desktopMoveDown; }
}

/* --- Common Layout & Container --- */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .container { max-width: 640px; padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* --- Light Theme Specific Styles --- */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}
.logo span{
    color: #6A40E5;
}
@media (min-width: 1024px) { .logo { font-size: 1.5rem; } 
    
#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px; /* Thoda padding adjust kiya */
    margin-left: 7rem;
    position: relative;
    width: 40px;
    height: 40px;
}
}
.desktop-menu { display: none; align-items: center; }
.desktop-menu a {
    position: relative;
    color: #475569;
    transition: color 0.3s;
    margin-left: 2rem;
    padding-bottom: 4px;
}
.desktop-menu a:hover { color: #6366f1; }
.desktop-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #6366f1;
    transition: width 0.3s ease-out;
}
.desktop-menu a:hover::after { width: 100%; }
.desktop-menu .btn-get-started {
    background-image: linear-gradient(to right, #6366f1, #4f46e5);
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.desktop-menu .btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.desktop-menu .btn-get-started::after { display: none; }
@media (min-width: 768px) {
    .desktop-menu { display: flex; }
    .mobile-menu-button-wrapper { display: none; }
}
.hamburger {
    position: relative;
    z-index: 50;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    margin-left:1rem;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #334155;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}
.hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 20rem;
    background-color: rgba(241, 245, 249, 0.9);
    backdrop-filter: blur(10px);
    z-index: 40;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6rem;
    height: 100%;
}
.mobile-menu-nav a { font-size: 1.5rem; color: #1e293b; margin-bottom: 2.5rem; }
.mobile-menu-nav .btn-get-started {
    background-color: #6366f1;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 7rem;
}
.hero-background-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.1; }
.hero-overlay { position: absolute; inset: 0; }
.hero-content-grid { position: relative; z-index: 10; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .hero-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.hero-text-content { text-align: center; }
@media (min-width: 1024px) { .hero-text-content { text-align: left; } }
.hero-subtitle { color: #6366f1; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-description {
    font-size: 1.125rem;
    color: #475569;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1024px) { .hero-description { margin-left: 0; } }
.key-features { margin-top: 2rem; text-align: center; }
@media (min-width: 1024px) { .key-features { text-align: left; } }
.key-features ul { list-style: none; padding: 0; display: inline-block; }
@media (min-width: 1024px) { .key-features ul { display: block; } }
.key-features li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: #475569; }
.key-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}
.hero-cta-buttons {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom:50px;
}
@media (min-width: 640px) { .hero-cta-buttons { flex-direction: row; } }
@media (min-width: 1024px) { .hero-cta-buttons { justify-content: flex-start; } }
.btn {
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.btn:hover { transform: translateY(-0.25rem); }
.btn-primary { background-color: #6366f1; color: #ffffff; }
.btn-primary:hover { background-color: #818cf8; }
.btn-secondary { background-color: #e2e8f0; color: #334155; }
.btn-secondary:hover { background-color: #cbd5e1; }
.perspective-container { position: relative; height: 20rem; display: flex; justify-content: center; align-items: center; margin-top: 2rem; perspective: 1000px; }
@media (min-width: 1024px) { .perspective-container { height: 24rem; margin-top: 0; } }
#image-container { position: relative; width: 100%; height: 100%; transition: transform 0.3s ease-out; transform-style: preserve-3d; }
.animated-circle { position: absolute; left: 50%; top: 50%; border-radius: 9999px; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
.circle-freelancer { width: 8rem; height: 8rem; }
.circle-client { width: 7rem; height: 7rem; }
@media (min-width: 1024px) {
    .circle-freelancer { width: 12rem; height: 12rem; }
    .circle-client { width: 10rem; height: 10rem; }
}
.circle-gradient-border { position: absolute; inset: 0; border-radius: 9999px; padding: 4px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); }
.freelancer-border { background-image: linear-gradient(to bottom right, #6366f1, #a78bfa); }
.client-border { background-image: linear-gradient(to top left, #6366f1, #a78bfa); }
.circle-inner { background-color: #ffffff; width: 100%; height: 100%; border-radius: 9999px; overflow: hidden; }
.circle-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fee-badge { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
@media (min-width: 1024px) { .fee-badge { width: 7.5rem; height: 7.5rem; } }
.fee-badge-inner {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    text-align: center;
}
.fee-badge-percent { font-size: 1.25rem; font-weight: 900; color: #1e293b; }
@media (min-width: 1024px) { .fee-badge-percent { font-size: 2.25rem; } }
.fee-badge-percent span { color: #6366f1; }
.fee-badge-text { font-size: 0.75rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.1em; }
.how-it-works-timeline { font-family: 'Poppins', sans-serif; padding: 60px 20px; position: relative; overflow: hidden; background: transparent; }
.how-it-works-timeline .background-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.how-it-works-timeline .background-shapes svg { width: 100%; height: 100%; filter: blur(100px); }
.how-it-works-timeline .container { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.how-it-works-timeline .section-header { text-align: center; margin-bottom: 50px; }
.how-it-works-timeline .section-header h2 { font-size: 2.5rem; font-weight: 700; color: #6366f1; margin-bottom: 10px; }
.how-it-works-timeline .section-header p { font-size: 1.1rem; color: #475569; max-width: 700px; margin: 0 auto; }
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #cbd5e1;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.timeline-item:nth-child(odd) { left: 0; transform: translateX(-30px); }
.timeline-item:nth-child(even) { left: 50%; transform: translateX(30px); }
.timeline-item.is-visible { opacity: 1; transform: translateX(0); }
.timeline-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.1);
}
.timeline-content.step-1 { border-top: 4px solid #3498db; }
.timeline-content.step-2 { border-top: 4px solid #f39c12; }
.timeline-content.step-3 { border-top: 4px solid #9b59b6; }
.timeline-content.step-4 { border-top: 4px solid #2ecc71; }
.timeline-icon { font-size: 2.5rem; }
.timeline-text h3 { margin: 0 0 5px 0; font-size: 1.3rem; color: #1e293b; }
.timeline-text p { margin: 0; font-size: 0.9rem; color: #475569; }
.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    background-color: #f1f5f9;
    border: 4px solid #6366f1;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 2;
}
.timeline-item:nth-child(even)::after { left: -9px; }
@media screen and (max-width: 820px) {
    .timeline-container::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 15px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; transform: translateX(-30px); }
    .timeline-item.is-visible { transform: translateX(0); }
    .timeline-item::after { left: 18px; }
    .timeline-item:nth-child(even)::after { left: 19px; }
}
.platform-features-section {
    padding: 100px 20px;
    font-family: 'Inter', 'Poppins', sans-serif;
    background-image: url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.platform-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(241, 245, 249, 0.6);
}
.platform-features-section .container { max-width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.platform-features-section .section-title { font-size: 2.8rem; font-weight: 700; color: #1e293b; margin-bottom: 20px; text-shadow: none; }
.platform-features-section .section-subtitle { font-size: 1.2rem; color: #334155; max-width: 700px; margin: 0 auto 80px auto; text-shadow: none; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px; padding-top: 40px; }
.feature-card {
    position: relative;
    margin-top: 40px;
    padding: 60px 30px 35px 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover { transform: translateY(-12px); background: rgba(255, 255, 255, 0.7); }
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    color: #6366f1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover .feature-icon-wrapper { transform: translate(-50%, -50%) scale(1.1) rotate(10deg); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3); }
.feature-title { font-size: 1.4rem; font-weight: 600; color: #1e293b; margin-bottom: 12px; }
.feature-description { font-size: 1rem; color: #475569; line-height: 1.6; }
.soon-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: #6366f1;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}
.why-choose-us-advanced {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}
.why-choose-us-advanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0.7;
}
.section-header-advanced, .hub-core, .feature-point { opacity: 0; }
.section-header-advanced { transform: translateY(-20px); }
.hub-core { transform: scale(0.8); }
.hub-lines path { stroke-dasharray: 500; stroke-dashoffset: 500; }
.why-choose-us-advanced.start-animation .section-header-advanced { animation: fade-in-up 0.8s ease-out 0.3s forwards; }
.why-choose-us-advanced.start-animation .hub-core { animation: scale-up 0.6s ease-out 0.6s forwards; }
.why-choose-us-advanced.start-animation .hub-core-icon { animation: pulse 1.5s infinite alternate; }
.why-choose-us-advanced.start-animation .point-1 { animation: slide-in-left 0.7s ease-out 0.8s forwards; }
.why-choose-us-advanced.start-animation .point-2 { animation: slide-in-right 0.7s ease-out 1.0s forwards; }
.why-choose-us-advanced.start-animation .point-3 { animation: slide-in-left 0.7s ease-out 1.2s forwards; }
.why-choose-us-advanced.start-animation .point-4 { animation: slide-in-right 0.7s ease-out 1.4s forwards; }
.why-choose-us-advanced.start-animation .hub-lines .line-1 { animation: draw-line 1s ease-out 0.7s forwards; }
.why-choose-us-advanced.start-animation .hub-lines .line-2 { animation: draw-line 1s ease-out 0.9s forwards; }
.why-choose-us-advanced.start-animation .hub-lines .line-3 { animation: draw-line 1s ease-out 1.1s forwards; }
.why-choose-us-advanced.start-animation .hub-lines .line-4 { animation: draw-line 1s ease-out 1.3s forwards; }
.section-header-advanced { text-align: center; margin-bottom: 80px; position: relative; z-index: 5; }
.section-header-advanced .subtitle { display: inline-block; color: #6366f1; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; font-size: 0.875rem; }
.section-header-advanced h2 { font-size: 2.8rem; font-weight: 800; color: #1e293b; margin-bottom: 16px; text-shadow: none; }
.section-header-advanced p { max-width: 600px; margin: 0 auto; color: #475569; font-size: 1.125rem; line-height: 1.6; }
.features-hub { position: relative; width: 100%; max-width: 800px; height: 500px; margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.hub-core {
    position: relative;
    z-index: 10;
    width: 160px;
    height: 160px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.2), inset 0 0 15px rgba(99, 102, 241, 0.1);
    transition: transform 0.3s ease;
}
.hub-core:hover { transform: scale(1.05); }
.hub-core-icon { font-size: 3rem; }
.hub-core-text { font-size: 1.25rem; font-weight: 700; color: #6366f1; margin-top: 5px; }
.features-grid-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.feature-point { position: absolute; z-index: 5; width: 220px; }
.point-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, #6366f1, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 auto 15px auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.point-title { color: #1e293b; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.point-description { color: #475569; font-size: 0.95rem; line-height: 1.5; }
.point-1 { top: 0; left: 0px; text-align: right; }
.point-2 { top: 0; right: 0; text-align: left; }
.point-3 { bottom: 0; left: 0; text-align: right; }
.point-4 { bottom: 0; right: 0; text-align: left; }
.point-1 .point-icon, .point-3 .point-icon { margin-left: auto; margin-right: 0;}
.point-2 .point-icon, .point-4 .point-icon { margin-left: 0; margin-right: auto;}
.hub-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; stroke: rgba(203, 213, 225, 0.8); fill: none; }
@media (max-width: 768px) {
    .features-hub { max-width: 850px; height: 550px; }
    .hub-core { width: 130px; height: 130px; }
    .hub-core-icon { font-size: 2.5rem; }
    .hub-core-text { font-size: 1.1rem; }
    .point-1 { top: 0; left: -25px; width:179px; }
    .point-2 { top: 0; right: -26px; width:152px; }
    .point-3 { bottom: 0; left: -36px; width:170px; }
    .point-4 { bottom: 0; right: -40px; width:179px; }
}
.site-footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 80px 0 0 0;
    font-size: 0.95rem;
    border-top: 1px solid #334155;
}
.footer-cta { text-align: center; padding-bottom: 60px; border-bottom: 1px solid #334155; margin-bottom: 60px; }
.footer-cta-title { color: #ffffff; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.footer-cta-subtitle { max-width: 500px; margin: 0 auto 2rem auto; line-height: 1.6; }
.newsletter-form { display: flex; justify-content: center; gap: 0.5rem; max-width: 450px; margin: 0 auto; }
.newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.newsletter-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}
.newsletter-form button {
    background-image: linear-gradient(to right, #6366f1, #4f46e5);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25); }
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 60px; }
.footer-heading { color: #ffffff; font-size: 1.125rem; font-weight: 600; margin-bottom: 1.5rem; }
.footer-column p { line-height: 1.7; padding-right: 1rem; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column ul a { color: #cbd5e1; text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-column ul a:hover { color: #6366f1; padding-left: 5px; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}
.social-links a:hover { background-color: #6366f1; transform: translateY(-3px); }
.social-links svg { width: 20px; height: 20px; fill: #ffffff; }
.footer-bottom { padding: 1.5rem 0; border-top: 1px solid #334155; text-align: center; font-size: 0.875rem; }


/* ======================================= */
/* 3. DARK THEME (OVERRIDE STYLES)         */
/* ======================================= */

body.dark-theme {
    background-color: #0f172a;
    color: #d1d5db;
}

/* --- Toggle Button in Dark Mode --- */
body.dark-theme #theme-toggle-btn {
    color: #9ca3af; /* text-gray-400 */
}
body.dark-theme #theme-toggle-btn:hover {
    background-color: #1e293b; /* Darker hover */
}
body.dark-theme #theme-toggle-btn .sun-icon {
    display: none;
}
body.dark-theme #theme-toggle-btn .moon-icon {
    display: block;
}


/* --- Dark Theme Overrides --- */
body.dark-theme .main-header.scrolled {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
body.dark-theme .logo {
    color: #ffffff;
}
body.dark-theme .desktop-menu a {
    color: #d1d5db;
}
body.dark-theme .desktop-menu a:hover {
    color: #ffffff;
}
body.dark-theme .desktop-menu a::after {
    background-color: #22d3ee;
}
body.dark-theme .desktop-menu .btn-get-started {
    background-image: linear-gradient(to right, #22d3ee, #06b6d4);
    color: #ffffff;
}
body.dark-theme .desktop-menu .btn-get-started:hover {
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}
body.dark-theme .hamburger span {
    background-color: white;
}
body.dark-theme .mobile-menu {
    background-color: rgba(15, 23, 42, 0.9);
}
body.dark-theme .mobile-menu-nav a {
    color: white;
}
body.dark-theme .mobile-menu-nav .btn-get-started {
    background-color: #22d3ee;
    color: #0f172a;
}
body.dark-theme .hero-background-image {
    opacity: 0.2;
}
body.dark-theme .hero-overlay {
    background-color: rgba(15, 23, 42, 0.75);
}
body.dark-theme .hero-subtitle {
    color: #22d3ee;
}
body.dark-theme .hero-title {
    color: white;
    text-shadow: 0px 2px 15px rgba(0, 255, 255, 0.2);
}
body.dark-theme .hero-description {
    color: #d1d5db;
}
body.dark-theme .key-features li {
    color: #d1d5db;
}
body.dark-theme .key-features li::before {
    color: #22d3ee;
}
body.dark-theme .btn-primary {
    background-color: #22d3ee;
    color: #0f172a;
}
body.dark-theme .btn-primary:hover {
    background-color: #67e8f9;
}
body.dark-theme .btn-secondary {
    background-color: #334155;
    color: white;
}
body.dark-theme .btn-secondary:hover {
    background-color: #475569;
}
body.dark-theme .circle-gradient-border {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
body.dark-theme .freelancer-border {
    background-image: linear-gradient(to bottom right, #22d3ee, #8b5cf6);
}
body.dark-theme .client-border {
    background-image: linear-gradient(to top left, #22d3ee, #8b5cf6);
}
body.dark-theme .circle-inner {
    background-color: #1e293b;
}
body.dark-theme .fee-badge-inner {
    background-color: rgba(51, 65, 85, 0.5);
    border: 1px solid #475569;
}
body.dark-theme .fee-badge-percent {
    color: white;
}
body.dark-theme .fee-badge-percent span {
    color: #22d3ee;
}
body.dark-theme .fee-badge-text {
    color: #d1d5db;
}
body.dark-theme .how-it-works-timeline .section-header h2 {
    color: #22d3ee;
}
body.dark-theme .how-it-works-timeline .section-header p {
    color: whitesmoke;
}
body.dark-theme .timeline-container::after {
    background-color: #d8dde2;
}
body.dark-theme .timeline-content {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}
body.dark-theme .timeline-text h3 {
    color: #e5e7eb;
}
body.dark-theme .timeline-text p {
    color: #d1d5db;
}
body.dark-theme .timeline-item::after {
    background-color: #0f172a;
    border: 4px solid #b0c4de;
}
body.dark-theme .platform-features-section::before {
    background-color: rgba(0, 0, 0, 0.2);
}
body.dark-theme .platform-features-section .section-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
body.dark-theme .platform-features-section .section-subtitle {
    color: #f0f0f0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
body.dark-theme .feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}
body.dark-theme .feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
}
body.dark-theme .feature-icon-wrapper {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
body.dark-theme .feature-card:hover .feature-icon-wrapper {
    box-shadow: 0 8px 30px rgba(47, 129, 247, 0.3);
}
body.dark-theme .feature-title {
    color: #ffffff;
}
body.dark-theme .feature-description {
    color: #e0e0e0;
}
body.dark-theme .soon-badge {
    background: #2f81f7;
    color: #ffffff;
}
body.dark-theme .why-choose-us-advanced {
    background-color: #0f172a;
}
body.dark-theme .why-choose-us-advanced::before {
    background-image: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 60%);
    opacity: 0.5;
}
body.dark-theme .section-header-advanced .subtitle {
    color: #22d3ee;
}
body.dark-theme .section-header-advanced h2 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}
body.dark-theme .section-header-advanced p {
    color: #d1d5db;
}
body.dark-theme .hub-core {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid #334155;
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.3), inset 0 0 15px rgba(34, 211, 238, 0.2);
}
body.dark-theme .hub-core-text {
    color: #22d3ee;
}
body.dark-theme .point-icon {
    background-image: linear-gradient(135deg, #22d3ee, #8b5cf6);
}
body.dark-theme .point-title {
    color: #ffffff;
}
body.dark-theme .point-description {
    color: #d1d5db;
}
body.dark-theme .hub-lines {
    stroke: rgba(51, 65, 85, 0.7);
}
body.dark-theme .site-footer {
    background-color: #111827;
    color: #9ca3af;
    border-top: 1px solid #374151;
}
body.dark-theme .footer-cta {
    border-bottom: 1px solid #374151;
}
body.dark-theme .footer-cta-title {
    color: #ffffff;
}
body.dark-theme .newsletter-form input {
    background-color: #1f2937;
    border: 1px solid #4b5563;
    color: #ffffff;
}
body.dark-theme .newsletter-form input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
body.dark-theme .newsletter-form button {
    background-image: linear-gradient(to right, #22d3ee, #06b6d4);
}
body.dark-theme .newsletter-form button:hover {
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.25);
}
body.dark-theme .footer-column ul a {
    color: #9ca3af;
}
body.dark-theme .footer-column ul a:hover {
    color: #22d3ee;
}
body.dark-theme .social-links a {
    background-color: #374151;
}
body.dark-theme .social-links a:hover {
    background-color: #22d3ee;
}
body.dark-theme .footer-bottom {
    border-top: 1px solid #374151;
}