:root {
    --primary: #8cc53f;
    /* V.BuildCC Green */
    --primary-hover: #7db335;
    --secondary: #0976ff;
    /* V.BuildCC Blue */
    --secondary-hover: #0764db;
    --bg-dark: #0f1115;
    --bg-darker: #0a0b0d;
    --bg-card: #1a1d24;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(15, 17, 21, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Mode Theme Variables */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-darker: #ffffff;
    --bg-card: #f1f5f9;
    --text-main: #111827;
    --text-muted: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button Styles */
.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.theme-btn:hover {
    color: var(--primary);
}
body.light-mode .moon-icon { display: none !important; }
body.light-mode .sun-icon { display: block !important; }

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Battambang', 'Khmer OS Battambang', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Battambang', 'Khmer OS Battambang', 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
}

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

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn-primary,
.btn-primary-small,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary-small {
    padding: 0.6rem 1.2rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-darker);
}

.btn-primary:hover,
.btn-primary-small:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(140, 198, 63, 0.2);
}

.btn-primary-small {
    background-color: var(--primary);
    color: var(--bg-darker);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 113, 252, 0.2);
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-darker);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-small) {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-small):hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--bg-darker);
}

.lang-btn:hover:not(.active) {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Battambang', 'Khmer OS Battambang', 'Inter', sans-serif;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 11, 13, 0.9) 0%, rgba(10, 11, 13, 0.4) 100%);
    transition: var(--transition);
}

body.light-mode .hero-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(140, 198, 63, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio */
.dark-section {
    background-color: var(--bg-darker);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    cursor: pointer;
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 13, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

body.light-mode .portfolio-overlay {
    background: rgba(255, 255, 255, 0.85);
}

body.light-mode .view-project-btn {
    color: var(--text-main);
    border-color: var(--text-main);
}
body.light-mode .view-project-btn:hover {
    color: #fff;
    border-color: var(--primary);
}

.portfolio-item:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.view-project-btn {
    color: #fff;
    font-weight: 500;
    border: 1px solid #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transform: translateY(20px);
    transition: var(--transition);
}

.view-project-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item:hover .view-project-btn {
    transform: translateY(0);
}

.portfolio-info {
    padding: 1.5rem 0;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-info span {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 8px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: rgba(0, 113, 252, 0.15);
    line-height: 1;
}

.quote {
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

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

.client-avatar {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
}

.client-info span {
    font-weight: 500;
    color: var(--primary);
}

/* CTA Section Premium */
.cta-premium-wrapper {
    padding: 8rem 0;
    position: relative;
}

.cta-premium-card {
    background: linear-gradient(135deg, rgba(140, 198, 63, 0.1), rgba(0, 113, 252, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

body.light-mode .cta-premium-card {
    background: linear-gradient(135deg, rgba(140, 198, 63, 0.15), rgba(0, 113, 252, 0.15));
    box-shadow: 0 25px 50px rgba(0,0,0,0.05);
}

.cta-premium-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(140, 198, 63, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cta-btn-large {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-contact-info a {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.cta-contact-info a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .cta-premium-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--bg-darker);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Header */
.page-header {
    padding: 10rem 0 4rem;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Battambang', 'Khmer OS Battambang', 'Inter', sans-serif;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--bg-darker);
    border-color: var(--primary);
}

.pt-2 {
    padding-top: 2rem;
}

/* Project Hero */
.project-hero {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.project-hero-content {
    position: relative;
    z-index: 2;
}

.project-hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.category-label {
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Project Info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
}

.info-item {
    margin-bottom: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.info-main h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-main p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Project Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    backdrop-filter: blur(2px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-hero h1 {
        font-size: 3rem;
    }
}

/* Solid CTA */
.cta-solid {
    background: var(--primary);
}

.cta-solid h2 {
    color: var(--bg-darker);
}

.cta-solid .cta-btn {
    background-color: var(--bg-darker);
    color: #fff;
    border: none;
}

body.light-mode .cta-solid .cta-btn {
    color: #000;
}

.cta-solid .cta-btn:hover {
    background-color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Blog Article Layout */
.article-header {
    padding-top: 10rem;
    padding-bottom: 3rem;
}

.article-meta {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.article-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.article-hero {
    margin-bottom: 4rem;
}

.hero-img {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

.img-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content .lead-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 500;
}

.article-content h3 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pull-quote {
    border-left: 4px solid var(--primary);
    padding-left: 2rem;
    margin: 3rem 0;
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 300;
    font-family: 'Playfair Display', 'Battambang', serif;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }

    .article-subtitle {
        font-size: 1.2rem;
    }

    .article-content .lead-text {
        font-size: 1.2rem;
    }

    .pull-quote {
        font-size: 1.4rem;
        padding-left: 1rem;
    }
}

/* Authentication Page */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: url('assets/images/home.png') center/cover;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-mode .auth-wrapper::before {
    background: rgba(255, 255, 255, 0.85);
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

body.light-mode .auth-card {
    box-shadow: 0 25px 50px rgba(0,0,0,0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--glass-border);
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--primary);
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.1);
}

.auth-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.alert-success {
    background: rgba(140, 198, 63, 0.2);
    color: var(--primary);
    border: 1px solid rgba(140, 198, 63, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Premium Styles */
.dash-section {
    padding-top: 120px;
    min-height: 85vh;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dash-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.dash-role-badge {
    display: inline-block;
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.dash-role-badge span {
    font-weight: 800;
}

.logout-btn, .dash-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
}

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

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dash-card.full-width {
    grid-column: 1 / -1;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-card-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    color: var(--primary);
}

/* Dashboard Tables */
.table-responsive {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th, .dash-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.dash-table th {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

body.light-mode .dash-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-approved {
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.action-links {
    display: flex;
    gap: 10px;
}

.action-approve, .action-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    transition: var(--transition);
}

.action-approve {
    background: rgba(140, 198, 63, 0.1);
    color: var(--primary);
}

.action-approve:hover {
    background: var(--primary);
    color: #000;
}

.action-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.action-delete:hover {
    background: #ef4444;
    color: #fff;
}

/* Dashboard Forms */
.dash-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.dash-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.1);
}

.w-100 {
    width: 100%;
}

@media (max-width: 768px) {
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .dash-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .dash-card {
        padding: 1.2rem;
    }
    .dash-section {
        padding-top: 100px;
    }
    .container {
        padding: 0 1rem;
    }
    .dash-table th, .dash-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Lightbox Custom Styles */
.lightbox-trigger {
    cursor: zoom-in;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 13, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.show {
    opacity: 1;
}

.lightbox-container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-img-wrapper {
    flex: 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.lightbox-content.slide-out-left {
    transform: translateX(-50px);
    opacity: 0;
}

.lightbox-content.slide-out-right {
    transform: translateX(50px);
    opacity: 0;
}

.lightbox-content.slide-in-right {
    transform: translateX(50px);
    opacity: 0;
    transition: none; /* Instantly move here before sliding in */
}

.lightbox-content.slide-in-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: none; /* Instantly move here before sliding in */
}

.lightbox-sidebar {
    display: none;
}



.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10000;
}

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

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    color: #000;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 900px) {
    .lightbox-container {
        height: 80vh;
        width: 95%;
    }
    .lightbox-img-wrapper {
        height: 100%;
    }
    .lightbox-prev, .lightbox-next {
        display: none;
    }
}

/* Blog Page Enhancements */
.blog-hero-container {
    margin-bottom: 4rem;
}

.blog-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.blog-hero-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.blog-hero-img {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.blog-hero-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-hero-content .article-meta {
    margin-bottom: 1rem;
}

.blog-hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.blog-hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .blog-hero-card {
        grid-template-columns: 1fr;
    }
    .blog-hero-img {
        height: 350px;
    }
    .blog-hero-content {
        padding: 2.5rem;
    }
    .blog-hero-content h2 {
        font-size: 2.2rem;
    }
}

.sub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}


/* News/Article Layout Enhancements */
.article-header {
    padding: 8rem 0 3rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Playfair Display', serif;
}

.article-hero {
    margin-bottom: 4rem;
}

.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content-render {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-main);
}

.post-content-render p {
    margin-bottom: 2rem;
}

/* Premium Pull Quote */
.pull-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    color: var(--text-main);
    border-left: 5px solid var(--primary);
    padding-left: 2.5rem;
    margin: 4rem 0;
    position: relative;
    line-height: 1.4;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
}

.read-more-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.read-more-box h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.read-more-box p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.8rem;
    }
    .hero-img {
        height: 400px;
    }
    .pull-quote {
        font-size: 1.6rem;
        padding-left: 1.5rem;
    }
    .read-more-box {
        flex-direction: column;
        text-align: center;
    }
}