:root {
    /* Brand Colors: Sundaweb Midnight & Gold */
    --primary: #ffcc00;
    /* Golden Yellow */
    --primary-hover: #e6b800;
    --secondary: #00d2ff;
    /* Cyan from logo */
    --secondary-hover: #00b8e6;
    --dark: #001a33;
    --darker: #000d1a;
    --light: #f1f5f9;
    --gray: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Semantic Theme Variables (Midnight Blue Theme) */
    --bg-body: #001a3a;
    /* Deep Midnight Blue */
    --bg-sidebar: #00112a;
    /* Deeper Navy */
    --bg-card: rgba(0, 30, 60, 0.6);
    --bg-input: rgba(0, 0, 0, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-main: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(0, 17, 42, 0.8);
    --logo-filter: brightness(0) invert(1);

    --glass: var(--bg-card);
    --glass-border: var(--border-main);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme {
    /* Semantic Theme Variables (Light/Clean) */
    --bg-body: #f1f5f9;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-main: rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --logo-filter: none;

    --light: #0f172a;
    /* Override light variable to be dark text */
    --gray: #64748b;
    --glass: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-main);
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    background: rgba(0, 30, 60, 0.8);
    border-color: rgba(255, 204, 0, 0.2);
}

@media (max-width: 640px) {
    .glass-card {
        padding: 1.25rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--darker);
    /* Dark text for better contrast on yellow */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 204, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray);
}

.nav-links a:hover {
    color: var(--light);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: 0.5rem;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--light);
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.lang-code {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--gray);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 170px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.5rem;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 0.15s ease;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.6rem 0.875rem;
    border-radius: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    justify-content: space-between;
    text-decoration: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
}

.lang-option.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.lang-option span:first-child {
    font-size: 1.1rem;
}

.lang-option>span:nth-child(2) {
    flex: 1;
}

/* RTL support */
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .footer-link:hover {
    transform: translateX(-6px);
}

[dir="rtl"] .footer-link-dot {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .footer-inner {
    direction: rtl;
}

[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 1rem 0;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(10px);
    }

    .logo img {
        height: 32px !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1100;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 0.5rem;
        padding: 0.6rem;
        transition: var(--transition);
        color: white;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        padding: 2rem;
        display: flex;
        /* Essential to keep flex but positioned off-screen */
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-links.active {
        right: 0;
        height: 100vh;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        width: auto;
        padding: 0.5rem 0;
        border-bottom: none;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for links */
    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active .nav-actions {
        transition-delay: 0.3s;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Grid adjustments */
    .grid-1-mobile {
        grid-template-columns: 1fr !important;
    }

    .flex-stack-mobile {
        flex-direction: column !important;
    }

    .flex-stack-mobile .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hide-mobile {
        display: none !important;
    }

    .section-padding {
        padding: 4rem 0 !important;
    }

    .hero-padding {
        padding: 8rem 0 4rem !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Admin Utilities */
    .grid-admin-stats {
        grid-template-columns: 1fr !important;
    }

    .grid-2-1 {
        grid-template-columns: 1fr !important;
    }

    .flex-responsive {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .form-row-responsive {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .btn-responsive {
        width: 100% !important;
        justify-content: center !important;
    }

    .table-responsive {
        border: 0;
    }

    .table-responsive table thead {
        display: none;
    }

    .table-responsive table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--glass-border);
        border-radius: 0.75rem;
        padding: 1rem;
    }

    .table-responsive table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.875rem;
        text-align: right !important;
    }

    .table-responsive table td:last-child {
        border-bottom: 0;
    }

    .table-responsive table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.75rem;
        text-align: left;
    }
}

/* ============================
   PREMIUM FOOTER
   ============================ */

/* ============================
   MINIMALIST FOOTER
   ============================ */

/* ============================
   MINIMALIST FOOTER
   ============================ */

.site-footer {
    position: relative;
    margin-top: 6rem;
    padding: 4rem 0 0;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--gray);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.6fr;
    /* Adjusted for larger contact cards */
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-col h4,
.footer-col h5 {
    color: var(--light);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24 0%, #22d3ee 100%);
    /* Yellow to Cyan gradient */
    border-radius: 2px;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1rem 0 2rem;
    max-width: 300px;
    color: var(--gray);
}

/* Blog list in footer */
.footer-blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-blog-list li {
    margin-bottom: 1rem;
}

.footer-blog-list a {
    color: var(--gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    line-height: 1.4;
    font-weight: 500;
}

.footer-blog-list a:hover {
    color: var(--light);
    transform: translateX(4px);
}

/* Menu links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.875rem;
}

.footer-link {
    color: var(--gray);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--light);
    padding-left: 4px;
}

/* Contact Cards (Yellow Style) */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Match user screenshot subtle border */
    border-radius: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.3);
    /* Subtle yellow hover */
    transform: translateY(-2px);
}

.fcc-icon {
    width: 48px;
    height: 48px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    /* Solid Yellow accent */
    flex-shrink: 0;
    transition: var(--transition);
}

.footer-contact-card:hover .fcc-icon {
    background: #fbbf24;
    color: #020617;
}

.fcc-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.fcc-value {
    display: block;
    color: var(--light);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-all;
}

/* Social links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social .social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
}

.footer-social .social-icon:hover {
    background: #fbbf24;
    color: #020617;
    border-color: #fbbf24;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.2);
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--gray);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
}

.footer-bottom-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--light);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.1);
}

.footer-made {
    font-size: 0.8125rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}


/* Responsive */
@media (max-width: 1024px) {
    .footer-inner {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}



/* social-links base (used in nav too) */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--gray);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}


/* Portfolio Slider */
.portfolio-slider {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.8) !important;
    color: white !important;
    border: 1px solid var(--glass-border) !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer;
    z-index: 10;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    padding: 0 !important;
}

.portfolio-slider:hover .sw-slider-btn {
    opacity: 1;
}

.sw-btn-prev {
    left: 1rem;
}

.sw-btn-next {
    right: 1rem;
}

.sw-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.sw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sw-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}