/* OmniCore Maintenance - Main Stylesheet */

:root {
    /* Color Palette */
    --color-bg-dark: #0B0F14;
    --color-accent: #1F9E9A;
    /* Teal */
    --color-text-gray: #A1A1AA;
    --color-bg-light: #F4F4F5;
    --color-text-dark: #0B0F14;
    --color-white: #FFFFFF;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 110px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-gray);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-white {
    color: var(--color-white);
}

.text-accent {
    color: var(--color-accent);
}

.text-gray {
    color: var(--color-text-gray);
}

.text-dark {
    color: var(--color-text-dark);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.bg-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.bg-accent {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-accent);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-gray);
}

.form-input {
    width: 100%;
    padding: 12px;
    background-color: var(--color-white);
    border: 1px solid #E4E4E7;
    border-radius: 4px;
    color: var(--color-text-dark);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Navigation Creative Design */
header {
    height: var(--header-height);
    background-color: rgba(11, 15, 20, 0.85);
    /* Semi-transparent dark */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    transition: all 0.3s ease;
    /* Performance Optimization */
    transform: translateZ(0);
    will-change: transform;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-gray);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

/* Creative Hover Effect - Growing Underline */
.nav-link:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(31, 158, 154, 0.6);
    /* Glow effect */
}

.nav-link:not(.btn-nav):hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-white);
}

/* Contact Us Button in Menu */
.nav-link.btn-nav {
    padding: 10px 24px;
    background: rgba(31, 158, 154, 0.1);
    /* Subtle teal bg */
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.btn-nav:hover {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    box-shadow: 0 0 15px rgba(31, 158, 154, 0.4);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        position: relative;
        /* Context for absolute positioning */
        justify-content: center;
        /* Helper */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        /* Ensure above menu if needed, though menu is fixed */
    }

    .hamburger {
        margin-left: auto;
        /* Push hamburger to right explicitly if flex behavior changes */
        position: absolute;
        /* Or keep it flex but careful with logo */
        right: 1rem;
        /* Adjust as needed */
    }
}

/* Responsive Creative Hamburger */
@media (max-width: 1024px) {

    /* Creative Hamburger Icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
        /* Above menu */
        position: relative;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-white);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        /* Bouncy transition */
    }

    /* Hamburger Animation to 'X' */
    .hamburger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--color-accent);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
        background-color: var(--color-accent);
    }
}

/* Responsive Menu - Glassmorphic Drawer */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 320px;
        /* Slightly wider */
        background: rgba(11, 15, 20, 0.95);
        /* Darker background */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: 8rem 2rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        /* Ease out quart */
        z-index: 900;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    }

    /* Cyberpunk gradient hint */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 100% 0%, rgba(31, 158, 154, 0.15), transparent 50%);
        pointer-events: none;
        z-index: -1;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Staggered Animation for Links */
    .nav-link {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    /* Delays for stagger */
    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.25s;
    }
}

/* --- Home Page Specific Styles --- */

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    /* Top padding accounts for fixed header */
    background: linear-gradient(rgba(11, 15, 20, 0.8), rgba(11, 15, 20, 0.8)), url('../../assets/images/hero-bg.jpg');
    /* Placeholder BG */
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Fallback if no image */
.hero-section {
    background-color: var(--color-bg-dark);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--color-text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Services Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--color-text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    /* padding: 2rem; REMOVED for full-bleed image */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    /* content styling moved to .card-content */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #374151;
}

/* Why OmniCore Section */
.why-grid {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.why-text {
    max-width: 800px;
    font-size: 1.1rem;
}

/* Expectations Section */
/* Creative Expectations Section */
.expect-layout {
    display: block;
    /* Changed from flex to block to allow full width grid */
    text-align: center;
}

.expect-content {
    max-width: 1000px;
    margin: 0 auto;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.expect-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.expect-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.expect-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(11, 15, 20, 0.15);
    /* Improved visibility */
    /* Subtle dark number */
    position: absolute;
    top: -10px;
    right: 10px;
    transition: all 0.4s ease;
    line-height: 1;
}

.expect-card:hover .expect-number {
    color: rgba(31, 158, 154, 0.1);
    /* Teal on hover */
    transform: scale(1.2) rotate(-5deg);
}

.expect-card h3 {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 1.25rem;
    z-index: 1;
    position: relative;
}

/* Add a bottom indicator line */
.expect-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.expect-card:hover::after {
    width: 100%;
}

/* Contact Section Creative Redesign - Animated Tech Grid */
.contact-creative-bg {
    background-color: var(--color-bg-dark);
    /* Animated Grid Background */
    background-image:
        linear-gradient(rgba(31, 158, 154, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 158, 154, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Optimize Grid Animation: Use transform if possible, but for repeating BG, we stick to bg-pos with hint */
    animation: gridMove 20s linear infinite;
    position: relative;
    overflow: hidden;
    will-change: background-position;
    transform: translateZ(0);
    /* Force GPU */
}

/* Moving Grid Animation */
@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* Scanning Line Effect - Optimized with Transform */
.contact-creative-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(31, 158, 154, 0.08), transparent 60%);
    animation: rotateGlow 15s linear infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    /* Force Hardware Acceleration */
    transform: translateZ(0);
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Digital Pulse Overlay - Optimized to remove background-position repaint */
.contact-creative-bg::after {
    content: '';
    position: absolute;
    top: -100%;
    /* Start above */
    left: 0;
    width: 100%;
    height: 200%;
    /* Double height for seamless loop */
    background: linear-gradient(180deg, transparent 0%, rgba(31, 158, 154, 0.02) 50%, transparent 100%);
    animation: scanLine 4s linear infinite;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes scanLine {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50%);
    }
}



.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Give form slightly more space */
    gap: 5rem;
    align-items: start;
}

/* Creative Text Styling */
.contact-info h2,
.creative-heading-main {
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(31, 158, 154, 0.2));
    letter-spacing: -1px;
}

.contact-item {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(31, 158, 154, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-left-color: var(--color-accent);
    padding-left: 25px;
}

.contact-item h4 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Courier New', Courier, monospace;
    /* Tech vibe */
    text-shadow: 0 0 10px rgba(31, 158, 154, 0.4);
    display: flex;
    align-items: center;
}

/* Tech Blinker */
.contact-item h4::after {
    content: '_';
    display: inline-block;
    margin-left: 5px;
    animation: blinkCursor 1s infinite;
    opacity: 1;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.contact-item p,
.contact-item a {
    color: var(--color-text-gray);
    font-size: 1.15rem;
    transition: all 0.3s ease;
    font-weight: 400;
}

.contact-item a:hover {
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    padding-left: 5px;
    /* Slide effect */
}

/* Transparent Form Wrapper */
/* Glass Form Card */
.contact-form-wrapper.transparent,
/* For backward compatibility if strictly needed */
.glass-form-card {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 16px;
    /* Modern rounding */
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Deep shadow for depth */
    transform: translateZ(0);
}

/* Mobile Adjustment for Card */
@media (max-width: 768px) {
    .glass-form-card {
        padding: 1.5rem;
    }
}

.form-label {
    color: var(--color-text-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-input {
    background-color: var(--color-white);
    /* Keep white as requested */
    border: 1px solid transparent;
    /* Clean border */
    color: var(--color-text-dark);
    padding: 14px 18px;
    border-radius: 6px;
    /* Modern Soft Rounding */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    outline: none;
    border-color: var(--color-accent);
    /* Simple accent on focus */
}

/* Creative Gradient Button for Form */
.contact-form .btn {
    background: linear-gradient(135deg, var(--color-accent), #157A76);
    color: var(--color-white);
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(31, 158, 154, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #157A76, var(--color-accent));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.contact-form .btn:hover::before {
    opacity: 1;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(31, 158, 154, 0.4);
}

/* Privacy Text Styling */
.privacy-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll artifacts */
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    /* Style the 'Contact Us' button in mobile menu as a simple link */
    .nav-link.btn-nav {
        background: transparent;
        color: var(--color-text-gray);
        border: 1px solid rgba(255, 255, 255, 0.1);
        /* Slight border for separation */
        padding: 12px 20px;
        box-shadow: none !important;
        border-radius: 4px;
        width: 100%;
        text-align: center;
        /* Center text */
    }

    /* Remove glow and underline effect on mobile nav links for cleaner look */
    .nav-link::after,
    .nav-link:hover::after {
        display: none;
        box-shadow: none !important;
    }

    .nav-link.btn-nav:hover {
        background: transparent;
        color: var(--color-white);
        transform: none;
        box-shadow: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Reduce shadow intensity on mobile to prevent artifacts */
    .service-card {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .service-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
}

/* Contrast Fixes */
.why-section p,
.why-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    /* Ensure readability on dark bg */
    position: relative;
    z-index: 2;
}

.service-card p {
    color: #374151;
    /* Darker gray for better contrast on white */
}

/* --- Animations & Refinements --- */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements of services */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Enhanced Service Cards */
.service-card {
    background-color: var(--color-white);
    border: 1px solid transparent;
    /* Prepare for border transition */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Ensuring no padding on the main card */
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(31, 158, 154, 0.3);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 158, 154, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* Refined Typography Spacing */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
    /* Tighter headings for modern look */
}

p {
    line-height: 1.7;
    /* Increased readability */
}

/* Hero Text Animation */
.hero-content h1 {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-text {
    opacity: 0;
    /* Starr hidden */
    animation: fadeInUp 1s ease-out 0.3s forwards;
    /* Delay */
}

.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}