/* 
   KPI2x3 Design System
   Premium Dark Mode aesthetic with vibrant highlights
*/

:root {
    /* Color Palette */
    --bg-main: #0a0a0f;
    --bg-secondary: #12121c;
    --text-main: #ffffff;
    --text-muted: #a0a0b8;
    
    /* Vibrant Gradients & Accents */
    --accent-1: #00f0ff;
    --accent-2: #7000ff;
    --accent-3: #ff007b;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-1) 0%, #00a8d6 100%);
    --gradient-text: linear-gradient(to right, var(--accent-1), var(--accent-2));
    
    /* Glassmorphism */
    --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.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

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

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(112,0,255,0.3) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0,240,255,0.2) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Containers & Layouts */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* Glass Components */
.glass {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5);
}

.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow:hover::before {
    opacity: 0.5;
    filter: blur(15px);
}

/* Utilities */
.text-gradient {
    color: var(--accent-1);
}

.link-gradient {
    color: var(--accent-1);
    font-weight: 500;
}

.link-gradient:hover {
    color: var(--accent-2);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(112, 0, 255, 0.2);
    border: 1px solid rgba(112, 0, 255, 0.4);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    height: 80px;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.logo .highlight {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-1);
}

.btn-nav {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 8px;
}

.btn-nav:hover {
    background: var(--gradient-primary);
    border-color: transparent !important;
    color: white !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px; height: 2px;
    background: white;
    transition: 0.3s;
}

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

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Brand Image */
.hero-brand-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    padding: 0;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
    background: var(--glass-bg);
    width: 80px; height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-text {
    color: var(--text-muted);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover .card-image {
    transform: scale(1.05);
}

.card-image {
    height: 200px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.5s ease;
}

.bg-blue { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.bg-purple { background: linear-gradient(135deg, #141e30, #243b55); }
.bg-teal { background: linear-gradient(135deg, #1d2b64, #f8cdda); }

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.7);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-image h3 {
    font-size: 1.4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,1);
}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 20px;
}

.play-link {
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}



@keyframes zoomIn {
    from {transform:scale(0.95)} 
    to {transform:scale(1)}
}

/* Contact form */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(0,0,0,0.4);
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-success {
    color: #00ff88;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
}

.border-top {
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .features-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px; left: 0; width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 40px 0;
        clip-path: circle(0 at 100% 0);
        transition: clip-path 0.5s ease-out;
    }
    
    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }
    
    .hamburger { display: flex; }
    
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-cta { justify-content: center; }
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .phone-mockup { display: none; }
}
