/* Loka Yazılım - Custom Styling CSS
   Designed for ultimate high-tech digital experience
*/

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #8a8f98;
    --accent-green: #00ff66;
    --accent-green-rgb: 0, 255, 102;
    --accent-green-dim: rgba(0, 255, 102, 0.1);
    --accent-green-glow: rgba(0, 255, 102, 0.25);
    
    --glass-bg: rgba(10, 10, 10, 0.5);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(0, 255, 102, 0.3);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: initial; /* Lenis handles smooth scroll */
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader-content {
    max-width: 450px;
    width: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Smooth black background integration */
}

body.loading {
    overflow: hidden;
    height: 100vh;
}

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

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scroll Container */
.scroll-container {
    position: relative;
    width: 100%;
}

/* Fixed Background Video Controller */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #000;
    overflow: hidden;
    pointer-events: none;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.bg-video.active {
    opacity: 0.55; /* Dimmed slightly for text readability */
}

.overlay-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(5, 5, 5, 0.9) 85%),
                linear-gradient(to bottom, rgba(5, 5, 5, 1) 0%, transparent 15%, transparent 85%, rgba(5, 5, 5, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Header & Logo */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loka-logo-svg {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.glowing-dot {
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    0% { filter: drop-shadow(0 0 2px #00ff66); }
    100% { filter: drop-shadow(0 0 8px #00ff66); }
}

/* Floating Bottom Navigation Menu */
.floating-nav-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    animation: fade-in-up-anim 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.floating-nav-inner {
    display: flex;
    gap: 4px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 100px;
    padding: 6px 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0, 255, 102, 0.1);
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-heading);
    padding: 10px 18px;
    border-radius: 100px;
    transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

/* Layout System */
.sections-wrapper {
    position: relative;
    width: 100%;
}

.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 40px;
    overflow: hidden;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    z-index: 2;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 102, 0.08);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.06) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Glass Card Embedded Videos */
.hud-inner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35; /* Subtle blend so text is perfectly readable */
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.glass-card:hover .hud-inner-video {
    opacity: 0.6; /* Brightens and glows on hover */
    transform: scale(1.02); /* Subtle zoom depth */
}

/* Ensure HUD headers stay above the video */
.hud-header {
    position: relative;
    z-index: 1;
}

/* Glass Card Embedded Images */
.hud-inner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35; /* Subtle blend so text is readable */
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.glass-card:hover .hud-inner-image {
    opacity: 0.6; /* Brightens and glows on hover */
    transform: scale(1.02); /* Subtle zoom depth */
}

/* HUD elements */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.hud-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.hud-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 16px 30px;
    border-radius: 100px;
    transition: var(--transition-fast);
    border: 1px solid #ffffff;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 30px var(--accent-green-glow);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff66;
    display: inline-block;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 16px 30px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Tech Tags */
.tech-tag {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-green);
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

/* Hero Elements */
.main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 300;
    max-width: 600px;
}

.particle-caption-box {
    align-self: flex-end;
    margin-left: auto;
    max-width: 320px;
    padding: 25px;
    border-color: rgba(0, 255, 102, 0.15);
}

.caption-num {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent-green);
    display: block;
    margin-bottom: 10px;
}

.particle-caption-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.particle-caption-box p {
    font-size: 13px;
    line-height: 1.5;
}

/* Bullet list for features */
.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.bullet-item {
    display: flex;
    gap: 20px;
}

.bullet-icon {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bullet-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.bullet-text p {
    font-size: 14px;
    max-width: 500px;
}

/* Stats Card in Section 2 */
.tech-stats-card {
    border-color: rgba(0, 255, 102, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Neural Network Card (AI) */
.ai-neural-card {
    height: 300px;
    display: flex;
    flex-direction: column;
}

.neural-visual {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 255, 102, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
}

.glowing-core {
    width: 40px;
    height: 40px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-green), 0 0 60px var(--accent-green-glow);
    animation: core-pulse 3s infinite alternate;
}

@keyframes core-pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 20px var(--accent-green); }
    100% { transform: scale(1.15); box-shadow: 0 0 45px var(--accent-green), 0 0 90px rgba(0, 255, 102, 0.4); }
}

/* Feature grid small */
.features-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature-item-small h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-item-small p {
    font-size: 14px;
}

/* Web3 Hash Card */
.web3-hash-card {
    padding: 30px;
}

.hash-block {
    margin-bottom: 20px;
}

.hash-block:last-child {
    margin-bottom: 0;
}

.hash-label {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--accent-green);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.hash-value {
    font-family: monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    white-space: nowrap;
}

/* Face Scan Card */
.face-scan-card {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-color: rgba(0, 255, 102, 0.1);
}

.scan-frame {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(0, 255, 102, 0.2);
}

.scan-frame::before, .scan-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-green);
    border-style: solid;
}

.scan-frame::before {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.scan-frame::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

.hud-scan-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.target-label {
    color: var(--accent-green);
    font-weight: 700;
}

/* CRM Card */
.crm-nodes-card {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-svg {
    filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.3));
}

/* Social reach card */
.social-reach-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    background: radial-gradient(circle at center, rgba(0, 255, 102, 0.05) 0%, transparent 70%);
}

.reach-metrics {
    text-align: center;
}

.reach-num {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 30px rgba(0, 255, 102, 0.3);
}

.reach-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

/* About Intro */
.about-intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.max-w-xl {
    max-width: 700px;
}

/* Interactive Tech Grid Layout */
.tech-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-col-1 {
    grid-column: span 1;
}

.grid-col-2 {
    grid-column: span 2;
}

.tech-grid-layout h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #ffffff;
}

.tech-grid-layout p {
    font-size: 14px;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
}

.detail-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Styles */
.contact-form {
    border-color: rgba(255, 255, 255, 0.05);
}

.form-row {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px 18px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
}

.w-full {
    width: 100%;
}

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

/* Footer */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 80px 40px 140px 40px; /* Space at bottom for floating nav */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    max-width: 250px;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Animations Trigger classes (GSAP) */
.reveal-content {
    opacity: 0;
    transform: translateY(30px);
}

/* Keyframes for layout entrance */
@keyframes fade-in-up-anim {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

.animate-pulse {
    animation: pulse-glow 1.5s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.4); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px 4px rgba(0, 255, 102, 0.7); }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-right {
        display: none;
    }
    
    .tech-grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-col-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .scroll-section {
        padding: 80px 20px;
    }
    
    .main-header {
        padding: 15px 20px;
    }
    
    .floating-nav-bar {
        display: none; /* Hide bottom nav on mobile to avoid overcrowding */
    }
    
    .tech-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links-grid {
        gap: 40px;
    }
}
