/* KSN TECHZONE - Brand Theme */
:root {
    --sandal: #E8D4B8;
    --sandal-light: #F5EBD9;
    --sandal-dark: #D4BC96;
    --navy: #0B1E3D;
    --navy-mid: #1A3A6B;
    --blue: #1E6FD9;
    --cyan: #00B4D8;
    --orange: #F59E0B;
    --orange-dark: #D97706;
    --white: #FFFFFF;
    --text: #1A2744;
    --text-muted: #4A5568;
    --shadow: 0 4px 24px rgba(11, 30, 61, 0.1);
    --shadow-lg: 0 12px 40px rgba(11, 30, 61, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--sandal);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--orange);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.02em;
}

.logo-text .accent {
    color: var(--cyan);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.btn-nav {
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
}

.btn-nav.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark)) !important;
    color: var(--white) !important;
}

.btn-nav.btn-primary:hover {
    filter: brightness(1.1);
    color: var(--white) !important;
}

.btn-nav.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.header-call {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white) !important;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-call:hover {
    filter: brightness(1.08);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Flash messages */
.flash-container {
    padding-top: 1rem;
}

.flash {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.flash-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.flash-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

/* Hero */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sandal-light) 0%, var(--sandal) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 20% 50%, var(--cyan) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--blue) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 820px;
}

.hero-badge {
    display: inline-block;
    background: var(--navy);
    color: var(--cyan);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--cyan), var(--orange), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sandal-dark);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white) !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover:not(:active) {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    color: var(--white) !important;
}

.btn-secondary {
    background: var(--navy);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background: var(--navy-mid);
    color: var(--white) !important;
}

.btn-outline {
    background: transparent;
    color: var(--navy) !important;
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white) !important;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* Sections */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--sandal-light);
}

.section-label {
    display: block;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.text-center {
    text-align: center;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.content-block h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.content-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
    margin-top: 1rem;
}

.check-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--text);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

.highlight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--orange);
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.spec-tags span {
    background: var(--sandal-light);
    color: var(--navy);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--sandal-dark);
}

.link-arrow {
    font-weight: 600;
    color: var(--blue);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:not(.tilt-3d):hover,
.feature-card.tilt-3d:not(:hover) {
    box-shadow: var(--shadow-lg);
}

.feature-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sandal-dark);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-top: 3px solid transparent;
}

.service-card:hover {
    border-top-color: var(--cyan);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA */
.cta-section {
    padding: 3rem 0 5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-box .btn-outline {
    border-color: var(--white);
    color: var(--white) !important;
}

.cta-box .btn-outline:hover {
    background: var(--white);
    color: var(--navy) !important;
}

/* Page hero */
.page-hero {
    padding: 3.5rem 0 2rem;
    background: linear-gradient(180deg, var(--sandal-light), var(--sandal));
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.page-hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About */
.about-image-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.about-image-card img {
    max-height: 180px;
    margin-bottom: 1rem;
}

.about-image-card .tagline {
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.05em;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mission-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.mission-card h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.process-step h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-card {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card h4 {
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.info-card p,
.info-card a {
    font-size: 0.95rem;
}

.info-highlight {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.info-highlight p {
    margin-bottom: 0.75rem;
}

.contact-form-wrap {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.map-section .map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--sandal-dark);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--sandal-light);
    color: var(--text);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Auth */
.auth-section {
    padding: 3rem 0 5rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-card-wide {
    max-width: 560px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 72px;
    margin-bottom: 1rem;
}

.auth-header h1 {
    color: var(--navy);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.dash-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.dashboard-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-social a svg {
    width: 16px;
    height: 16px;
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: #fff;
}

.footer-social a.social-youtube:hover  { background: #ff0000; border-color: #ff0000; }
.footer-social a.social-instagram:hover { background: #e1306c; border-color: #e1306c; }
.footer-social a.social-twitter:hover  { background: #1da1f2; border-color: #1da1f2; }
.footer-social a.social-tiktok:hover   { background: #010101; border-color: #69c9d0; }
.footer-social a.social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer-social a.social-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0;
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--cyan);
}

.footer-contact a {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Floating call */
.floating-call {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
    z-index: 999;
    transition: transform var(--transition);
}

.floating-call:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
    .two-col,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-mid);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .header-call {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

/* Base fade — extended in animations.css */
.fade-in {
    animation: fadeInUp3d 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
