/* Variables & Reset */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #6c5ce7;
    --accent-hover: #5649c0;
    --card-bg: #161616;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-primary {
    background: white;
    color: black !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

.btn-primary:hover {
    background: var(--accent);
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.highlight {
    background: linear-gradient(to right, var(--accent), #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.btn-large {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-large:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Visual Element */
.hero-visual {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 800px;
    height: 800px;
    z-index: 1;
}

.sphere {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
    opacity: 0.2;
    filter: blur(80px);
}

/* Process Section */
.process {
    padding: 5rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #222;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.process-step h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Services */
.services {
    padding: 5rem 0;
    margin-top: 5rem;
}

.card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card .icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
}

/* Work */
.work {
    padding: 5rem 0;
}

.project-card {
    cursor: pointer;
}

.project-image {
    background: #222;
    height: 400px;
    width: 100%;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Placeholder gradients for demo */
.project-card:nth-child(1) .project-image {
    background: linear-gradient(45deg, #222, #333);
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(45deg, #1e1e1e, #2a2a2a);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(45deg, #252525, #111);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(45deg, #1a1a1a, #222);
}


.project-card:hover .project-image {
    transform: scale(0.98);
    filter: brightness(1.1);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
}

/* Contact */
.contact {
    padding: 10rem 0;
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #222;
    color: #444;
}

/* Mobile Menu Buttons */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Menu Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--accent);
}

/* Hero Buttons */
.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid white;
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

/* Process Section */
.process {
    padding: 10rem 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-color), #0f0f0f);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
}

.process-step h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Work Tabs */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.work-tabs {
    display: flex;
    gap: 1rem;
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 50px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--accent);
    color: white;
}

/* Testimonials */
.testimonials {
    padding: 10rem 0;
    background: linear-gradient(to top, var(--bg-color), #0e0e0e);
}

.testimonial-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author h4 {
    font-size: 1.1rem;
}

.author p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Improved Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .work-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .work-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact h2 {
        font-size: 2.5rem;
    }
}

/* Pricing Section */
.pricing {
    padding: 10rem 0;
    background: #0f0f0f;
}

.pricing-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: white;
}

.pricing-card ul {
    margin-bottom: 2rem;
    text-align: left;
    padding-left: 1rem;
}

.pricing-card li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 800;
}

/* Authentication Pages */
.auth-body {
    background: #000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.auth-left {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.auth-header {
    margin-bottom: 3rem;
}

.auth-header .logo {
    display: block;
    margin-bottom: 1.5rem;
    color: white;
}

.auth-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auth-right {
    flex: 1;
    background: url('../images/hero-bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.signup-bg {
    background: url('../images/project-3.png') no-repeat center center/cover;
}

.auth-image-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-image-overlay blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
}

.auth-image-overlay cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent);
    font-style: normal;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.full-width {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #333;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    flex: 1;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 280px;
    background: #111;
    border-right: 1px solid #222;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    margin-bottom: 4rem;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: var(--accent);
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
}

.main-content {
    flex: 1;
    padding: 2rem 4rem;
    overflow-y: auto;
    background: #0a0a0a;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.search-bar input {
    background: #111;
    border-color: #222;
    min-width: 300px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #111;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #222;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trend {
    font-size: 0.8rem;
}

.trend.up {
    color: #00b894;
}

.trend.down {
    color: #ff7675;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Enhanced Footer Styles (Global) */
.enhanced-footer {
    background: #111;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 3rem;
    gap: 4rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    flex: 2;
}

.footer-col h4 {
    color: #888;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-stats-area {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.footer-brand .icon {
    color: var(--primary-color);
}

.footer-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Mobile Adjustments for Expanded Footer */
@media (max-width: 900px) {
    .enhanced-footer {
        padding: 4rem 0 2rem;
    }

    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
        /* Row gap 2rem, Column gap 1rem */
    }

    .footer-col {
        margin-bottom: 0.5rem;
    }

    .footer-stats-area {
        align-items: flex-start;
        text-align: left;
        margin-top: 1rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .footer-stats {
        flex-direction: row;
        /* Keep stats side-by-side on mobile if possible */
        gap: 3rem;
        flex-wrap: wrap;
    }

    .footer-top {
        flex-direction: column-reverse;
        /* Put copyright below icons */
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    /* Reduce Section Gaps on Mobile */
    .hero {
        padding: 0 5%;
        height: auto;
        min-height: 100vh;
        padding-top: 6rem;
    }

    .process,
    .services,
    .work {
        padding: 3rem 0;
        margin-top: 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

.social-icons {
    justify-content: center;
}
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        /* Stack columns on very small screens */
        gap: 2rem;
    }

    .footer-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.chart-card,
.recent-projects {
    background: #111;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #222;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent), #a29bfe);
    border-radius: 5px 5px 0 0;
    opacity: 0.7;
    transition: var(--transition);
}

.bar:hover {
    opacity: 1;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green {
    background: #00b894;
}

.status-dot.yellow {
    background: #fdcb6e;
}

.status-dot.blue {
    background: #74b9ff;
}

/* Dashboard SPA Views */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Projects View */
.projects-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.filter-group {
    background: #111;
    padding: 0.3rem;
    border-radius: 10px;
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card-dash {
    background: #111;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #222;
    transition: var(--transition);
}

.project-card-dash:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.p-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.tag.design {
    background: rgba(108, 92, 231, 0.2);
    color: #6c5ce7;
}

.tag.dev {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.tag.marketing {
    background: rgba(253, 203, 110, 0.2);
    color: #fdcb6e;
}

.more-opts {
    color: var(--text-secondary);
    cursor: pointer;
}

.project-card-dash h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 6px;
    background: #222;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

.p-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatars {
    display: flex;
}

.av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #444;
    border: 2px solid #111;
    margin-left: -10px;
}

.av:first-child {
    margin-left: 0;
}

.date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Messages View (Chat UI) */
.chat-layout {
    display: flex;
    height: calc(100vh - 150px);
    background: #111;
    border-radius: 20px;
    border: 1px solid #222;
    overflow: hidden;
}

.chat-sidebar {
    width: 300px;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.chat-search {
    padding: 1rem;
    border-bottom: 1px solid #222;
}

.chat-search input {
    background: #0a0a0a;
    border: none;
}

.contact-list {
    flex: 1;
    overflow-y: auto;
}

.contact-item {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #1a1a1a;
}

.contact-item:hover,
.contact-item.active {
    background: #1a1a1a;
}

.contact-item .avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
}

.contact-item .avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #111;
}

.avatar.online::after {
    background: #00b894;
}

.avatar.offline::after {
    background: #636e72;
}

.avatar.busy::after {
    background: #ff7675;
}

.c-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.c-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f0f0f;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
}

.current-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.messages-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    max-width: 70%;
    padding: 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.msg.received {
    background: #1a1a1a;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}

.msg.sent {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.msg-time {
    display: block;
    font-size: 0.6rem;
    margin-top: 0.5rem;
    opacity: 0.7;
    text-align: right;
}

.chat-input-area {
    padding: 1rem;
    background: #111;
    border-top: 1px solid #222;
    display: flex;
    gap: 1rem;
}

.chat-input-area input {
    background: #0a0a0a;
    border: 1px solid #222;
}

.send-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Settings View */
.settings-container {
    display: grid;
    gap: 2rem;
}

.settings-card {
    background: #111;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #222;
}

.settings-card h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Responsive adjustments for new pages */
/* Responsive adjustments for new pages */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        margin: 2rem 0;
    }

    .auth-right {
        height: 300px;
        order: -1;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #222;
        /* Mobile Menu Properties */
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-right: 1px solid #222;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .chat-layout {
        flex-direction: column;
        height: auto;
    }

    .chat-sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .chat-window {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .auth-right {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Horizontal Scrolling for Mobile Cards */
    .grid-3,
    .grid-2 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        /* Space for scrollbar */
        padding-left: 1rem;
        /* Safety margin */
        padding-right: 1rem;
        margin-left: -1rem;
        /* Edge-to-edge feeling */
        margin-right: -1rem;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
    }

    .card,
    .project-card,
    .pricing-card,
    .testimonial-card {
        min-width: 85%;
        scroll-snap-align: center;
        margin-bottom: 0;
        /* Removing vertical margin if any */
    }

    /* Hide scrollbar for cleaner look (optional) */
    .grid-3::-webkit-scrollbar,
    .grid-2::-webkit-scrollbar {
        height: 4px;
    }

    .grid-3::-webkit-scrollbar-thumb,
    .grid-2::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 4px;
    }

    /* Landing Page Fixes */
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-btns .btn-large,
    .hero-btns .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Enhanced Footer Mobile Adjustments */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .card {
        padding: 2rem;
    }

    /* Dashboard Header Mobile */
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        min-width: 100%;
    }
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
}

/* Image Utilities */
.hero-img-container {
    border-radius: 50%;
    overflow: hidden;
    width: 600px;
    height: 600px;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}