/* =========================================
   TDK Sarana Informatika - Design System
   ========================================= */

   :root {
    /* Colors */
    --bg-base: #030816;
    --bg-dark: #0a1128;
    --primary: #00e5ff; /* Cyan */
    --primary-glow: rgba(0, 229, 255, 0.4);
    --secondary: #4800ff; /* Purple */
    --secondary-glow: rgba(72, 0, 255, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Surface */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Typography Utility */
.text-center { text-align: center; }

h2.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2.section-title span {
    background: linear-gradient(135deg, var(--primary), #8a2be2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* =========================================
   Background Canvas & Animations
   ========================================= */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background: radial-gradient(circle at 50% 50%, var(--bg-dark) 0%, var(--bg-base) 100%);
}

.decorative-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

.blur-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary-glow);
}

.blur-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* =========================================
   Navbar (Glassmorphism)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 8, 22, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

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

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active {
    color: #fff;
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for navbar */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Card Component (Code Snippet) */
.glass-card {
    background: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.5;
}

code .keyword { color: #ff7b72; }
code .string { color: #a5d6ff; }
code .method { color: #d2a8ff; }

.status-bar {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.fill-green { color: #27c93f; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* =========================================
   Services Section
   ========================================= */
.services {
    padding: 8rem 0;
    position: relative;
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    border-color: rgba(0, 229, 255, 0.3);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--primary-glow);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: #000;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.learn-more i {
    transition: transform var(--transition-fast);
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* =========================================
   Products Section
   ========================================= */
.products {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 17, 40, 0.8), transparent);
}

.products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
}

.product-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.product-item:hover {
    background: var(--card-hover);
    border-color: rgba(72, 0, 255, 0.4);
    transform: scale(1.02);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    background: rgba(72, 0, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

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



/* =========================================
   Partners Marquee
   ========================================= */
.partners {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.partners-label {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.marquee-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half its width containing duplicated items */
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-muted);
    padding: 0 4rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.partner-logo:hover {
    opacity: 1;
    color: #fff;
}

.partner-logo i {
    font-size: 2rem;
    color: var(--primary);
}

/* =========================================
   Contact & Map Section
   ========================================= */
.contact {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info .section-title {
    margin-bottom: 1.5rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-details .icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

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

.contact-map {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}

.contact-map iframe {
    filter: grayscale(100%) invert(90%) contrast(1.2) sepia(10%) hue-rotate(180deg);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: rgba(3, 8, 22, 0.8);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links h4, .footer-social h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

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

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

/* =========================================
   Animations & Transitions
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Delay modifiers */
[style*="--delay"] {
    transition-delay: var(--delay);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .products-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }


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

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(3, 8, 22, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        clip-path: circle(0% at 100% 0);
        transition: all 0.4s ease-in-out;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .mobile-toggle {
        display: block;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
