/* Modern Premium Dark Theme CSS */
:root {
    --bg-main: #050508;
    --bg-secondary: #0a0a10;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    
    --primary-color: #6366f1; /* Indigo */
    --accent-color: #8b5cf6; /* Violet */
    --accent-glow: rgba(139, 92, 246, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --gradient-text: linear-gradient(to right, #818cf8, #c084fc);
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-hover: linear-gradient(135deg, #818cf8, #a78bfa);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Typography Enhancements */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center { text-align: center; }

/* Background Orbs & Noise */
.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.2);
}

.orb-2 {
    bottom: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.15);
    animation-delay: -10s;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: rgba(10, 10, 16, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
}

.brand-logo img { 
    height: 48px; 
    width: 48px; 
    object-fit: contain; 
    mix-blend-mode: screen;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-text span { 
    color: var(--primary-color); 
    font-weight: 400; 
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn {
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.lang-btn:hover {
    opacity: 1;
    color: white;
}

.lang-btn.active {
    opacity: 1;
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.badge-accent {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c084fc;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset navbar */
    position: relative;
    overflow: hidden;
    background: #000000;
}

.hero::after {
    display: none;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 550px;
}

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

/* Hero Abstract Graphics */
.hero-graphics {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-3d-art {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    animation: floating-hero 8s infinite ease-in-out;
}

@keyframes floating-hero {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(2deg) scale(1.02); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

/* Section Globals */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header.center {
    margin: 0 auto 4rem auto;
}

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

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

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

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.service-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Portfolio Highlight (3dmodel.work) */
.portfolio-highlight {
    background: radial-gradient(circle at center, rgba(30, 20, 50, 0.5) 0%, transparent 70%);
}

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

.highlight-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.highlight-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.preview-container {
    padding: 1rem;
}

.browser-mockup {
    border-radius: 16px;
    overflow: hidden;
    background: #0f0f15;
    border: 1px solid rgba(255,255,255,0.1);
}

.browser-header {
    height: 40px;
    background: #1a1a24;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.browser-url {
    margin-left: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #888;
    flex: 1;
    text-align: center;
}

.browser-body {
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a24, #0a0a0f);
}

.goliva-highlight {
    background:
        radial-gradient(circle at 82% 45%, rgba(145, 255, 46, 0.16) 0%, transparent 36%),
        linear-gradient(180deg, rgba(2, 31, 18, 0.55), rgba(5, 5, 8, 0));
}

.goliva-badge {
    background: rgba(157, 255, 63, 0.12);
    border: 1px solid rgba(157, 255, 63, 0.34);
    color: #a7ff5d;
}

.goliva-button {
    background: linear-gradient(135deg, #a0ff3d, #46d96f);
    border: 0;
    box-shadow: 0 14px 38px rgba(118, 255, 57, 0.2);
    color: #062114;
}

.goliva-button:hover {
    box-shadow: 0 18px 48px rgba(118, 255, 57, 0.3);
    transform: translateY(-2px);
}

.goliva-promo-frame {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(146, 255, 82, 0.26);
    border-radius: 22px;
    background: #03180f;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), 0 0 55px rgba(93, 255, 61, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.goliva-promo-frame:hover {
    border-color: rgba(146, 255, 82, 0.48);
    transform: translateY(-4px);
}

.goliva-promo-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.mesh-placeholder {
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
    animation: pulse 4s infinite;
}

.abstract-ring {
    position: absolute;
    width: 150px; height: 150px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
    animation: rotate 10s linear infinite;
    z-index: 1;
}

.datingapp-highlight {
    background:
        radial-gradient(circle at 25% 40%, rgba(255, 216, 77, 0.18) 0%, transparent 36%),
        radial-gradient(circle at 80% 50%, rgba(255, 95, 126, 0.12) 0%, transparent 34%);
}

.datingapp-badge {
    background: rgba(255, 216, 77, 0.12);
    border-color: rgba(255, 216, 77, 0.34);
    color: #ffd84d;
}

.datingapp-button {
    background: linear-gradient(135deg, #ffd84d, #ff5f7e);
    border: none;
    box-shadow: 0 0 26px rgba(255, 216, 77, 0.22);
    color: #111111;
}

.datingapp-preview {
    padding: 1rem;
}

.datingapp-browser-header {
    background: #101010;
}

.datingapp-browser-body {
    background: #ffd84d;
    color: #15120a;
    min-height: 350px;
    overflow: hidden;
    padding: 1.4rem;
    position: relative;
}

.datingapp-browser-body::after {
    background: rgba(21, 18, 10, 0.08);
    border: 4px solid #15120a;
    border-radius: 32px;
    content: "";
    height: 220px;
    position: absolute;
    right: -38px;
    top: 74px;
    transform: rotate(-7deg);
    width: 145px;
}

.datingapp-mini-nav,
.datingapp-mini-hero,
.datingapp-mini-cards {
    position: relative;
    z-index: 2;
}

.datingapp-mini-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.datingapp-mini-nav strong {
    font-size: 1rem;
}

.datingapp-mini-nav span,
.datingapp-mini-nav small {
    background: #111111;
    border-radius: 999px;
    color: #ffd84d;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
}

.datingapp-mini-hero h3 {
    font-size: 2.4rem;
    line-height: 0.98;
    max-width: 330px;
}

.datingapp-mini-hero p {
    color: rgba(21, 18, 10, 0.72);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1rem 0 1.4rem;
}

.datingapp-mini-cards {
    display: flex;
    gap: 0.7rem;
}

.datingapp-mini-cards span {
    background: #111111;
    border-radius: 16px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 82px;
    min-width: 78px;
    padding: 0.7rem;
    align-items: flex-end;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Apps */
.mobile-apps {
    background: linear-gradient(180deg, rgba(40, 30, 60, 0.4) 0%, rgba(5, 5, 8, 1) 100%);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.app-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.app-card:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}

.app-icon-wrapper {
    flex-shrink: 0;
}

.app-icon {
    width: 70px; height: 70px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden; /* Hide overflow from image */
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* the icons are squared usually */
    border-radius: 16px; 
}

.gradient-bg-1 { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.gradient-bg-2 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-bg-3 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.app-details { min-width: 0; }

.app-details h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.app-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.app-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.app-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 42px;
    flex: 1 0 auto;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: background 0.2s;
}

.store-badge:hover {
    background: rgba(255,255,255,0.1);
}

/* CTA */
.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    z-index: -1;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
    background: #030305;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-column a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.link-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* Utilities for JS Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 900px) {
    .highlight-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title { font-size: 3rem; }
    .hero-graphics { display: none; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 2rem 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    
    .footer-content {
        flex-direction: column;
    }
}

/* Featured project artwork */
.asokit-browser-body {
    background: radial-gradient(circle at center, #33204b, #100b1b);
}
.asokit-browser-body img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}
@media (min-width: 901px) {
    #portfolio .highlight-visual { grid-column: 1; grid-row: 1; }
    #portfolio .highlight-content { grid-column: 2; grid-row: 1; }
}
