/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    /* Color Palette - Updated to match original KeepNeye logo (Red & Navy/Dark Blue) */
    --color-primary: #e62b1e;
    /* Bold Red */
    --color-primary-dark: #cc1b0f;
    --color-secondary: #0a1f44;
    /* Navy Dark Blue */
    --color-secondary-light: #182e55;
    --color-accent: #2e68c0;
    /* Lighter Blue Accent */

    --color-bg-main: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #0a1f44;

    --color-text-main: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #f8fafc;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Layout */
    --container-width: 1200px;
    --section-padding: 5rem 0;
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.text-white {
    color: var(--color-text-light);
}

.text-center {
    text-align: center;
}

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */
.highlight {
    color: var(--color-primary);
}

.section-title-wrap {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title.light {
    color: var(--color-text-light);
}

.section-title span {
    color: var(--color-primary);
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.underline.center {
    margin: 0 auto;
}

.underline.light {
    background-color: var(--color-text-light);
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-heading);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary-light);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-ghost {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
}

.btn-ghost:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-block {
    width: 100%;
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
}

.nav-link:not(.btn-ghost)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover:not(.btn-ghost)::after,
.nav-link.active:not(.btn-ghost)::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-secondary);
    cursor: pointer;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100%;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text-box {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Mockup CSS art instead of static image */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.mockup-header {
    background: rgba(241, 245, 249, 0.8);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ef4444;
}

.dot.yellow {
    background-color: #f59e0b;
}

.dot.green {
    background-color: #10b981;
}

.mockup-body {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.main-icon {
    font-size: 5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.mockup-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.status-active {
    color: var(--color-primary);
    font-weight: 600;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    animation: pulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.feature-list i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 1px;
    /* gradient border */
}

.shield-graphic {
    background: var(--color-secondary);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-left: 4px solid var(--color-primary);
}

.floating-badge h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.floating-badge p {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* =========================================================================
   SERVICES SECTION (IMAGE-BASED MODERN CARDS)
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
    /* Zoom effect on hover */
}

/* Image overlay gradient */
.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 31, 68, 0.8), transparent);
}

.service-icon-overlay {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 12px;
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon-overlay {
    background: var(--color-secondary);
    transform: translateY(-5px);
}

.service-content {
    padding: 2.5rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Specific styling for the CTA card */
.cta-card {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    text-align: left;
}

.cta-card::before {
    display: none;
}

.cta-card .service-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-card .service-desc {
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* =========================================================================
   WHY CHOOSE US
   ========================================================================= */
.why-us {
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.03)"/></svg>') repeat, var(--color-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.stat-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stat-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.contact-info {
    background: var(--color-secondary);
    color: #fff;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

.contact-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-details li {
    display: flex;
    gap: 1.5rem;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact-details h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--color-primary);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.contact-form-wrap {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    transition: all var(--transition-fast);
    color: var(--color-text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: #fff;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: #020617;
    color: #94a3b8;
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: #fff;
    margin-bottom: 1rem;
}

.links-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.links-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-col a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* =========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST APPROACH IN REVERSE HERE FOR SIMPLICITY)
   ========================================================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-subtitle {
        margin: 1.5rem auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-pattern {
        width: 100vw;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        margin: 0 auto 2rem;
        max-width: 500px;
        width: 100%;
    }

    .section-title-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .links-col h4 {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-list.show {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form-wrap,
    .contact-info {
        padding: 2rem;
    }
}