/* --- Core Setup & Premium Theme --- */
:root {
    --bg-gradient: radial-gradient(circle at 50% 0%, #0b1528 0%, #030712 70%, #010409 100%);
    --accent-primary: #3b82f6;
    --accent-glow: #06b6d4;
    --accent-whatsapp: #22c55e;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --card-bg: rgba(10, 17, 34, 0.4);
    --card-border: rgba(59, 130, 246, 0.08);
    --card-border-hover: rgba(6, 182, 212, 0.3);
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
    --anim-timing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    background-color: #030712;
}

body {
    font-family: var(--font-stack);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030712;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- Loader Animation --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030712;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s var(--anim-timing), visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.loader-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    animation: pulse 2s infinite ease-in-out;
}

.progress-bar-container {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-glow));
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    animation: load-progress 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* --- Premium Header Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 100;
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s var(--anim-timing);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--anim-timing);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Structural Sections Layout --- */
main {
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 6rem 2rem;
    text-align: center;
}

.section-header-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 1rem;
    display: inline-block;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.section-desc {
    color: #64748b;
    max-width: 550px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* --- Hero Element Setups --- */
.hero-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent-whatsapp);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-whatsapp);
}

.main-title {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.05;
    margin-bottom: 1.75rem;
    animation: blueToWhiteLoop 6s infinite ease-in-out;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #94a3b8;
    max-width: 650px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.cta-primary, .cta-secondary {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    transition: all 0.3s var(--anim-timing);
}

.cta-primary {
    background: #ffffff;
    color: #030712;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}
.cta-primary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --- Reveal Configurations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--anim-timing), transform 1s var(--anim-timing);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Dynamic Adaptive Showcase Layout Grid --- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1240px;
    width: 100%;
    margin-top: 4rem;
}

.rich-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--anim-timing), 
                border-color 0.5s var(--anim-timing), 
                box-shadow 0.5s var(--anim-timing);
}

.rich-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(59, 130, 246, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.rich-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(6, 182, 212, 0.03);
}

.card-icon {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    width: 46px;
    height: 46px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s var(--anim-timing);
}

.rich-card:hover .card-icon {
    color: var(--accent-glow);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.rich-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    color: #f1f5f9;
}

.rich-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-footer-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s var(--anim-timing), transform 0.3s var(--anim-timing);
}
.rich-card:hover .card-footer-action {
    color: var(--accent-glow);
}
.rich-card:hover .card-footer-action i {
    transform: translateX(3px);
}

.card-extended-details {
    display: none;
}

.developer-status-line {
    color: var(--accent-glow);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Contact Gateway Elements --- */
.contact-container {
    background: rgba(10, 17, 34, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 4rem;
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 680px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.contact-container-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: all 0.4s var(--anim-timing);
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.contact-label {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-item i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.contact-value {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s var(--anim-timing);
}
.contact-item:hover .contact-value {
    color: var(--accent-glow);
}

.contact-item.wa-item:hover {
    background: rgba(34, 197, 94, 0.04);
    border-color: rgba(34, 197, 94, 0.2);
}
.contact-item.wa-item i {
    color: var(--accent-whatsapp);
}
.contact-item.wa-item:hover .contact-value {
    color: var(--accent-whatsapp);
}

.inline-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* --- Immersive View Overlay Shield System --- */
.immersive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 9, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--anim-timing), visibility 0.5s;
    padding: 2rem;
}

.immersive-overlay.active {
    opacity: 1;
    visibility: visible;
}

.immersive-modal-content {
    width: 100%;
    max-width: 1160px;
    height: 85%;
    background: #070d19;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.5s var(--anim-timing);
    text-align: left;
}

.immersive-overlay.active .immersive-modal-content {
    transform: scale(1);
}

.modal-header-bar {
    width: 100%;
    padding: 1.75rem 3.5rem;
    background: #070d19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    padding: 0.65rem 1.35rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--anim-timing);
}
.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.modal-body-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 3.5rem 3.5rem 5rem 3.5rem;
}

.modal-body-scroll h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #f8fafc;
}
.modal-body-scroll h2 i {
    color: var(--accent-primary);
    font-size: 1.75rem;
}

.modal-intro {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.modal-body-text {
    color: #cbd5e1;
}

/* --- Internal Nested Components --- */
.sub-projects-grid,
.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-sub-card,
.service-sub-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s var(--anim-timing);
}

.project-sub-card:hover,
.service-sub-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.sub-card-body {
    margin-bottom: 2rem;
}

.project-sub-card h4,
.service-sub-card h4 {
    font-size: 1.15rem;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-sub-card p,
.service-sub-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.project-btn,
.order-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s var(--anim-timing);
    width: 100%;
    cursor: pointer;
}

.order-now-btn {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.15);
}

.project-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(5b, 130, 246, 0.2);
}

.order-now-btn:hover {
    background: var(--accent-whatsapp);
    border-color: var(--accent-whatsapp);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.service-category-block {
    margin-bottom: 3.5rem;
}

.service-category-title {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* --- Minimal Footer --- */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #475569;
}

footer p {
    font-size: 0.8rem;
    color: #475569;
}

/* --- Core Keyframes --- */
@keyframes load-progress {
    0% { width: 0%; }
    40% { width: 60%; }
    80% { width: 88%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes blueToWhiteLoop {
    0%, 100% {
        color: #3b82f6;
        text-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    }
}

/* ==========================================================================
   CROSS-DEVICE MEDIA ENGINE Breakpoints
   ========================================================================== */
@media screen and (max-width: 1140px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sub-projects-grid, .sub-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .inline-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 1.25rem 1.5rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
    .showcase-grid, .sub-projects-grid, .sub-services-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 7rem 1.5rem 4rem 1.5rem;
    }
    .contact-container {
        padding: 2.5rem 1.5rem;
    }
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.25rem;
    }
    .contact-value {
        font-size: 0.9rem;
    }
    .immersive-overlay {
        padding: 1rem;
    }
    .immersive-modal-content {
        height: 90%;
        border-radius: 24px;
    }
    .modal-header-bar {
        padding: 1.25rem 1.5rem;
    }
    .modal-body-scroll {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        gap: 2rem;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .cta-primary, .cta-secondary {
        text-align: center;
        width: 100%;
    }
}