/* ============================================================
   Tekintegro — redesigned stylesheet
   Palette drawn from the brand logo (deep navy) + cyan/green ops accents
   ============================================================ */

:root {
    --navy-950: #071A2B;
    --navy-900: #0A2239;
    --navy-800: #0C2740;
    --navy-700: #123354;
    --cyan: #38BDF8;
    --cyan-strong: #0EA5E9;
    --green: #34D399;
    --ink: #10243A;
    --ink-soft: #46607A;
    --paper: #FFFFFF;
    --paper-dim: #F2F6FA;
    --line: #DCE7F0;
    --line-dark: rgba(148, 196, 232, 0.16);
    --text-on-dark: #E2ECF5;
    --muted-on-dark: #9DBAD2;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --radius: 14px;
    --shadow-card: 0 10px 30px rgba(7, 26, 43, 0.08);
    --shadow-card-dark: 0 14px 36px rgba(2, 12, 22, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
    width: min(1160px, 100% - 3rem);
    margin-inline: auto;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--cyan-strong);
    color: #fff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { background: #0B94D1; }
.btn-ghost {
    color: var(--text-on-dark);
    border-color: rgba(226, 236, 245, 0.35);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-accent {
    background: var(--green);
    color: var(--navy-950);
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(52, 211, 153, 0.35);
    white-space: nowrap;
}
.btn-accent:hover { background: #2BC08A; }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}
.eyebrow.accent { color: var(--cyan-strong); }

.pulse-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.13rem; color: var(--ink-soft); }
.section-head.light h2 { color: var(--text-on-dark); }
.section-head.light .section-lead { color: var(--muted-on-dark); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 26, 43, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.8rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}
.brand img { height: 40px; width: 40px; border-radius: 9px; object-fit: cover; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}
.site-nav a {
    color: var(--muted-on-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
    transition: color 0.15s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a.nav-cta { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
        radial-gradient(800px 500px at 90% 110%, rgba(52, 211, 153, 0.10), transparent 60%),
        var(--navy-950);
    color: var(--text-on-dark);
    padding: 5.5rem 0 5rem;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 1.17rem;
    color: var(--muted-on-dark);
    max-width: 34rem;
    margin-bottom: 2.2rem;
}
.hero-sub strong { color: var(--text-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    color: var(--muted-on-dark);
    font-size: 0.94rem;
}
.hero-ticks li { display: flex; align-items: center; gap: 0.5rem; }
.hero-ticks li::before {
    content: "";
    width: 16px; height: 16px;
    flex-shrink: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2334D399" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/contain no-repeat;
}
.hero-visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(2, 12, 22, 0.5));
}

/* ---------- Production Ops (flagship, dark) ---------- */
.ops-section {
    background:
        radial-gradient(1000px 600px at 85% 0%, rgba(56, 189, 248, 0.10), transparent 55%),
        var(--navy-900);
    color: var(--text-on-dark);
    padding: 5.5rem 0;
}

.ops-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 3.2rem;
}
.stat {
    background: var(--navy-800);
    padding: 1.6rem 1.4rem;
    text-align: center;
}
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.9rem; color: var(--muted-on-dark); }

.ops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-bottom: 4rem;
}
.ops-card {
    background: var(--navy-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ops-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: var(--shadow-card-dark);
}
.ops-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.ops-icon svg { width: 24px; height: 24px; }
.ops-card h3 { font-size: 1.18rem; margin-bottom: 0.65rem; color: var(--text-on-dark); }
.ops-card p { font-size: 0.98rem; color: var(--muted-on-dark); }

.ops-process { margin-bottom: 4rem; }
.process-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2.2rem;
    color: var(--text-on-dark);
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    list-style: none;
    counter-reset: step;
}
.process-steps li {
    position: relative;
    background: var(--navy-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
}
.process-steps li::after {
    content: "→";
    position: absolute;
    right: -1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 1.2rem;
    z-index: 1;
}
.process-steps li:last-child::after { content: none; }
.step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--green);
    letter-spacing: 0.1em;
}
.process-steps h4 { font-size: 1.15rem; margin: 0.5rem 0 0.5rem; color: var(--text-on-dark); }
.process-steps p { font-size: 0.93rem; color: var(--muted-on-dark); }

.ops-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(120deg, var(--navy-700), var(--navy-800));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 2.2rem 2.4rem;
}
.ops-cta h3 { font-size: 1.45rem; margin-bottom: 0.6rem; color: var(--text-on-dark); }
.ops-cta p { color: var(--muted-on-dark); max-width: 38rem; }

/* ---------- Development services (light) ---------- */
.services-section { background: var(--paper); padding: 5.5rem 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(7, 26, 43, 0.12);
}
.service-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--cyan-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 0.65rem; }
.service-card p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- About ---------- */
.about-section { background: var(--paper-dim); padding: 5.5rem 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}
.about-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }
.about-section p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.check-list { list-style: none; margin: 1.4rem 0 2rem; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-block: 0.4rem;
    font-weight: 500;
    color: var(--ink);
}
.check-list li::before {
    content: "";
    width: 20px; height: 20px;
    flex-shrink: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230EA5E9" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>') center/contain no-repeat;
}
.about-panel {
    background: var(--navy-900);
    border-radius: 18px;
    padding: 2.4rem;
    color: var(--text-on-dark);
    box-shadow: var(--shadow-card-dark);
}
.about-quote { margin-bottom: 2rem; }
.quote-mark {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--cyan);
    display: block;
}
.about-quote p {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-on-dark);
    margin: 0.4rem 0 1rem;
}
.quote-attr { font-size: 0.9rem; color: var(--muted-on-dark); }
.about-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.mini-badge {
    background: var(--navy-800);
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
}
.mini-badge strong { display: block; font-size: 0.88rem; color: var(--text-on-dark); }
.mini-badge span { font-size: 0.76rem; color: var(--muted-on-dark); }

/* ---------- Portfolio ---------- */
.portfolio-section { background: var(--paper); padding: 5.5rem 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 480px)); gap: 1.6rem; justify-content: center; }
.portfolio-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--paper);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7, 26, 43, 0.12); }
.portfolio-media {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 1.5rem 2rem;
}
.portfolio-media img { width: 100%; height: auto; }
.ops-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy-900);
    color: var(--text-on-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, 0.5);
    margin-bottom: 0.9rem;
}
.portfolio-body { padding: 1.6rem; }
.portfolio-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.portfolio-body p { color: var(--ink-soft); margin-bottom: 1rem; }
.text-link {
    color: var(--cyan-strong);
    font-weight: 600;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Testimonial ---------- */
.testimonial-section { background: var(--paper-dim); padding: 5rem 0; }
.testimonial {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.quote-icon { width: 40px; height: 40px; color: var(--cyan-strong); opacity: 0.5; margin: 0 auto 1.4rem; }
.testimonial blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    color: var(--ink);
    margin-bottom: 1.6rem;
}
.attr-name { font-weight: 700; }
.attr-role { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-section {
    background:
        radial-gradient(800px 480px at 90% -20%, rgba(56, 189, 248, 0.12), transparent 60%),
        var(--navy-950);
    color: var(--text-on-dark);
    padding: 5.5rem 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}
.contact-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
.contact-copy p { color: var(--muted-on-dark); margin-bottom: 1.6rem; }
.contact-email {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cyan);
    text-decoration: none;
}
.contact-email:hover { text-decoration: underline; }

.contact-form-wrap {
    background: var(--navy-800);
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
#contactForm input,
#contactForm textarea {
    width: 100%;
    background: var(--navy-950);
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    color: var(--text-on-dark);
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: border-color 0.15s ease;
}
#contactForm input::placeholder,
#contactForm textarea::placeholder { color: rgba(157, 186, 210, 0.65); }
#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--cyan);
}
#contactForm textarea {
    min-height: 160px;
    resize: vertical;
    margin-bottom: 1.2rem;
}

/* ---------- Modals (kept from original behavior) ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    inset: 0;
    background-color: rgba(7, 26, 43, 0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: #fff;
    color: var(--ink);
    margin: 18vh auto 0;
    padding: 1.8rem 2rem;
    border-radius: var(--radius);
    width: min(440px, calc(100% - 2rem));
    box-shadow: 0 24px 60px rgba(7, 26, 43, 0.35);
    font-weight: 500;
}
.close-button {
    color: var(--ink-soft);
    float: right;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: var(--muted-on-dark);
    border-top: 1px solid var(--line-dark);
    padding: 3.5rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand { margin-bottom: 0.9rem; }
.site-footer p { font-size: 0.95rem; max-width: 26rem; }
.site-footer h3 {
    color: var(--text-on-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul a {
    color: var(--muted-on-dark);
    text-decoration: none;
    font-size: 0.95rem;
}
.site-footer ul a:hover { color: var(--cyan); }
.footer-bottom {
    border-top: 1px solid var(--line-dark);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero { padding: 4rem 0; }
    .hero-visual { max-width: 620px; }
    .ops-grid { grid-template-columns: repeat(2, 1fr); }
    .ops-stats { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps li::after { content: none; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        background: var(--navy-950);
        border-bottom: 1px solid var(--line-dark);
        padding: 1rem 1.5rem 1.4rem;
    }
    .nav-open .site-nav { display: flex; }
    .site-nav a { padding: 0.5rem 0; font-size: 1.05rem; }
    .site-nav a.nav-cta { margin-top: 0.5rem; }
}

@media (max-width: 720px) {
    .ops-grid, .services-grid, .process-steps, .ops-stats { grid-template-columns: 1fr; }
    .ops-cta { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-ticks { flex-direction: column; gap: 0.6rem; }
}
