:root {
    /* --- Colors (Dark Mode Default) --- */
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-muted: #f1f1f1;
    --accent-blue: #00f0ff;
    --accent-purple: #7000ff;
    --accent-cyan: #00ffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* --- Fonts --- */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* --- Spacing --- */
    --container-width: 1200px;
    --section-padding: 100px;

    /* --- Aurora Variables --- */
    --aurora-white-grad: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
    --aurora-dark-grad: repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);
    --aurora-color-grad: repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
    --aurora-color-grad-dark: repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);

    /* Dynamic Aurora Strip (Black in Dark Mode, White in Light Mode) */
    --aurora-stripes: var(--aurora-dark-grad);
}

/* --- Light Mode Variables --- */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --accent-blue: #0066ff;
    /* Darker blue for light bg */
    --accent-purple: #6200ea;
    --accent-cyan: #00acc1;
    /* Darker cyan */
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);

    --aurora-stripes: var(--aurora-white-grad);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient span {
    background: inherit;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.decrypted-text-container {
    display: inline-block;
}

.reveal-on-scroll {
    opacity: 0;
    filter: blur(12px);
    transition: opacity 1.5s ease-out, filter 1.5s ease-out;
    will-change: opacity, filter;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    filter: blur(0);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: white;
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover {
    color: black;
    border-color: white;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: white;
    border: none;
    color: black;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* =========================================
   COMPONENTS
   ========================================= */

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

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

/* HEADER LOGO */
.site-logo {
    height: 70px;
    width: 80px;
    display: block;
}

/* FOOTER LOGO */
.footer-logo .site-logo {
    height: 150px;
    width: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: var(--accent-blue);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hamburger */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Theme Toggle Buttons */
/* Mobile theme button - visible only on mobile */
#theme-toggle {
    display: none;
}

/* Desktop theme button - visible only on desktop */
#theme-toggle-desktop {
    display: flex;
}

.nav-item-theme {
    display: flex;
    align-items: center;
}


/* --- Hero Section & Aurora --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05), transparent 60%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Aurora Animation */
@keyframes aurora {
    from {
        background-position: 50% 50%, 50% 50%;
    }

    to {
        background-position: 350% 50%, 350% 50%;
    }
}

.aurora-container {
    position: absolute;
    inset: -10px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    background-image: var(--aurora-stripes), var(--aurora-color-grad);
    background-size: 300% 200%;
    background-position: 50% 50%, 50% 50%;
    filter: blur(10px);
}

.aurora-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--aurora-stripes), var(--aurora-color-grad);
    background-size: 200% 100%;
    background-attachment: fixed;
    mix-blend-mode: normal;
    opacity: 0.7;
    animation: aurora 60s linear infinite;
}

/* --- Why Weblution (Container Scroll) --- */
.scroll-container {
    position: relative;
    perspective: 1200px;
    padding-top: 150px;
    padding-bottom: 250px;
    overflow: hidden;
}

.sparkles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.scroll-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 80px;
}

.scroll-card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

.scroll-card {
    background: #1a1a1a;
    border: 3px solid #333;
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    will-change: transform;
}

.scroll-card-content {
    background: #0a0a0a;
    border-radius: 25px;
    overflow: hidden;
    padding: 60px;
    height: 100%;
}

.why-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.why-text-content h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.why-text-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.why-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin-top: 30px;
}

.why-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    padding: 150px 0;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* --- Footer --- */
.footer {
    background: #050505;
    padding-top: 80px;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-brand {
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #111;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* spacing between contact items */
}

.footer-contact h4 {
    margin-bottom: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    /* fixes multi-line alignment */
    gap: 10px;
    /* space between emoji and text */
}

.contact-item .icon {
    flex-shrink: 0;
    line-height: 1.6;
}

.contact-item .text {
    line-height: 1.6;
}

.contact-item .address {
    max-width: 260px;
    /* controls line wrapping */
    line-height: 1.5;
}

/* =========================================
   INNER PAGES (Common Styles)
   ========================================= */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.page-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-muted);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    border-top: 3px solid var(--accent-purple);
    text-align: justify;
}

.mv-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: justify;
}

/* Portfolio Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

.footer-logo .site-logo {
    height: 34px;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-overlay p {
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.view-project {
    display: inline-block;
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent-blue);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group select {
    color: #a0a0a0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-bottom-color: var(--accent-blue);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.contact-info {
    padding: 20px;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h3 {
    color: var(--accent-purple);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.map-placeholder {
    width: 100%;
    margin-top: 30px;
    border-radius: 14px;
    overflow: hidden;
    filter: none;
}


/* =========================================
   SERVICES
   ========================================= */
.services-full {
    padding-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;

}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    text-align: left;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* =========================================
   MEDIA QUERIES (Responsive)
   ========================================= */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .scroll-card-content {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    /* Show mobile theme button, hide desktop theme button */
    #theme-toggle {
        display: flex;
        z-index: 1001;
        margin-left: auto;
        margin-right: 15px;
    }

    .nav-item-theme {
        display: none;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-container,
    .why-container,
    .footer-container,
    .about-grid,
    .mv-grid,
    .contact-container,
    .portfolio-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title,
    .page-title {
        font-size: 3rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==============================
   LOGO THEME SWITCHING
   ============================== */

/* Default = DARK THEME */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

/* LIGHT THEME */
[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="dark"] .site-logo {
    filter: drop-shadow(0 2px 10px rgba(0, 240, 255, 0.35));
}

.aurora-container {
    opacity: 0.6;
    /* was 0.8 */
}

.navbar {
    backdrop-filter: blur(6px);
}

.site-logo {
    animation: logoFade 1.2s ease forwards;
}

@keyframes logoFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   LIGHT MODE OVERRIDES (Placed at End)
   ========================================= */
/* Navbar */
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hero */
[data-theme="light"] .hero::after {
    background: linear-gradient(to bottom, transparent, #ffffff);
}

[data-theme="light"] .hero-title {
    text-shadow: none;
}

/* Scroll Card & Why Section */
[data-theme="light"] .scroll-card {
    background: #ffffff;
    border-color: #eee;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-card-content {
    background: #f9f9f9;
}

[data-theme="light"] .why-list li {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .why-list li:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Buttons */
[data-theme="light"] .btn {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

[data-theme="light"] .btn::before {
    background: var(--accent-blue);
}

[data-theme="light"] .btn:hover {
    color: white;
}

/* Inner Pages & Footer Overrides */
[data-theme="light"] .footer {
    background: #f8f8f8;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-bottom {
    background: #eeeeee;
    color: #555;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .mv-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .form-group select {
    color: #555;
}

[data-theme="light"] .map-placeholder {
    filter: none;
    /* Standard colors for light mode */
}

/* Mobile Menu Light Mode */
@media (max-width: 768px) {
    [data-theme="light"] .nav-menu {
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .bar {
        background-color: #333;
    }
}

/* Service Cards Light Mode */
[data-theme="light"] .service-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

[data-theme="light"] .service-card h3 {
    color: var(--text-primary);
}