/* CSS Reset & Variables */
:root {
    --bg-color: #0a0a0a;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary-color: #3b82f6; /* Technical Blue */
    --primary-hover: #2563eb;
    --border-color: #27272a;
    --card-bg: #18181b;
    --card-hover: #27272a;
    --nav-bg: rgba(10, 10, 10, 0.85);
    
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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


body > * {
    position: relative;
    z-index: 1;
}

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

/* Typography */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 2rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: 0.5rem; }
.highlight { color: var(--primary-color); }
.section-title { text-align: center; }

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}
.btn-large { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover { border-color: var(--text-muted); }

/* Contact modal page */
.modal-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(10, 10, 10, 0.9));
}

.modal-backdrop {
    width: min(100%, 760px);
    padding: 1.5rem;
}

.modal-container {
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.8rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.7);
}

.contact-form {
    padding: 1.5rem;
    display: grid;
    gap: 1.1rem;
}

.form-row {
    display: grid;
    gap: 0.45rem;
}

.form-row label {
    color: var(--text-main);
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    padding: 0.9rem 1rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-row textarea {
    resize: vertical;
    min-height: 140px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
.logo { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.75rem; }
.logo-icon {
    width: 44px;
    height: 44px;
    object-fit: cover;
    /*border-radius: 10px;*/
    display: block;
    /*border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.25);*/
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--primary-color); }
.nav-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lang-select { 
    background: var(--card-bg); 
    color: var(--text-main); 
    border: 1px solid var(--border-color); 
    padding: 0.25rem; 
    border-radius: 4px; 
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    margin-top: 80px; /* offset for fixed nav */
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin-left: auto; margin-right: auto;
    gap: 4rem;
    background-color: #000000;
}
.hero-content { flex: 1; }
.hero-content p { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--text-muted); margin: 1.5rem 0 2rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { flex: 1; border-radius: 12px; overflow: hidden; border: 0px solid var(--border-color); }
.hero-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Bento Grid */
.bento-section {
    position: relative;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('../img/fNukumm.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(10, 10, 10, 0.9);
}

.bento-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 0;
}

.bento-section > * {
    position: relative;
    z-index: 1;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
}
.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}
.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}
.card-large { grid-column: span 2; }
.card-content { z-index: 2; position: relative; }
.card-content p { color: var(--text-muted); margin-bottom: 1rem; }
.feature-list { list-style: none; margin-top: 1rem; }
.feature-list li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); }

/* Placeholder backgrounds for bento cards */
.card-image-bg {
    position: absolute; right: 0; bottom: 0; top: 0; width: 50%;
    background-size: cover; background-position: right center; opacity: 0.3; z-index: 1;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}
.bg-design { background-color: #1e3a8a; } /* Simulated image color */
.bg-program { background-color: #064e3b; width: 100%; top: 50%; mask-image: linear-gradient(to top, transparent, black); }
.bg-deploy { background-color: #701a75; width: 100%; top: 50%; mask-image: linear-gradient(to top, transparent, black); }

/* Tech/Features Grid */
.tech-section {
    position: relative;
    padding: 5rem 2rem;
    background-image: url('../img/fNukumm.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-top: 1px solid var(--border-color);
}

.tech-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 0;
}

.tech-section > * {
    position: relative;
    z-index: 1;
}

.tech-header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.tech-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.tech-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.45);
}

.carousel-track {
    position: relative;
    height: 360px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
    filter: saturate(0.7) brightness(0.7) blur(2px);
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    filter: saturate(1) brightness(1) blur(0);
}

.slide-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(2.0);
    transition: transform 1.5s ease;
}

.carousel-slide.active .slide-media {
    transform: scale(0.88);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.64) 35%, rgba(15, 23, 42, 0.2) 100%);
}

.slide-content {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    max-width: 540px;
    z-index: 1;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    color: #dbeafe;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.slide-content h3 {
    font-size: clamp(1.7rem, 2.5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 0.7rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.slide-content p {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem 1.1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.8);
    transform: translateY(-1px);
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex: 1;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

.tech-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem;
}
.tech-item {
    padding: 1.5rem; border-radius: 8px; background-color: var(--bg-color); border: 1px solid var(--border-color);
}
.tech-icon { font-size: 2rem; margin-bottom: 1rem; }
.tech-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem;}

.company-section {
    position: relative;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('../img/fNukumm.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.company-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 0;
}

.company-section > * {
    position: relative;
    z-index: 1;
}

.company-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    background: rgba(24, 24, 27, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.company-copy h2 {
    margin-bottom: 1rem;
}

.company-copy p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.eyebrow {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.company-stats {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.stat-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-box strong {
    font-size: 2rem;
    color: var(--text-main);
}

.stat-box span {
    color: var(--text-muted);
}

.contact-section {
    position: relative;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('../img/fNukumm.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 0;
}

.contact-section > * {
    position: relative;
    z-index: 1;
}

.contact-wrap {
    background: rgba(24, 24, 27, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    line-height: 1;
}

.mail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #f5f7fa 0%, #dfe7f2 100%);
    color: #0f172a;
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #2ad15f 0%, #1ebc57 100%);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.28);
}

.whatsapp-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: #ffffff;
}

.tiktok-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #000000 0%, #1f2937 35%, #111827 100%);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    transform: rotate(-8deg);
}

.youtube-icon {
    display: inline-block;
    width: 2.3rem;
    height: 1.7rem;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #ff2d2d 0%, #d90416 100%);
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.youtube-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    width: 0;
    height: 0;
    border-left: 0.7rem solid #ffffff;
    border-top: 0.42rem solid transparent;
    border-bottom: 0.42rem solid transparent;
}

.contact-label {
    font-weight: 700;
    font-size: 1rem;
}

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

.privacy-section {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.privacy-section.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.privacy-wrap {
    position: relative;
    width: min(1100px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.privacy-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.privacy-title {
    text-align: left;
    margin-bottom: 0;
}

.privacy-close {
    appearance: none;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    color: var(--text-main);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.privacy-close:hover {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(59, 130, 246, 0.12);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.privacy-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
}

.privacy-card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.15rem;
}

.privacy-card p,
.privacy-note p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.privacy-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    background-color: var(--card-bg);
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-brand p { color: var(--text-muted); margin-top: 0.5rem; }
.footer-links h4 { margin-bottom: 1rem; color: white; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-color); }

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 0.85rem 1rem; position: sticky; top: 0; }
    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        background: rgba(17, 17, 17, 0.97);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: flex; }
    .hero { flex-direction: column; text-align: center; margin-top: 30px; padding-top: 3rem; }
    .hero-content p { margin: 1.5rem auto; }
    .hero-buttons { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-large { grid-column: span 1; }
    .company-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .navbar { gap: 0.5rem; }
    .logo { font-size: 1rem; }
    .logo-icon { width: 34px; height: 34px; }
    .nav-actions { justify-content: center; }
    .btn, .btn-large { width: 100%; }
    .hero { padding-left: 1rem; padding-right: 1rem; }
    .hero-buttons { width: 100%; }
    .bento-section, .tech-section, .company-section, .contact-section, .footer { padding-left: 1rem; padding-right: 1rem; }
    .tech-item, .bento-card, .company-content, .contact-wrap { padding: 1.2rem; }
}
