/* ========================================
   MDV-Solve Website Styles
   Cloned from https://www.mdv-solve.com/
   ======================================== */

/* CSS Variables - Theme Colors */
:root {
    --color-primary: #1a2b6d;
    /* Dark blue */
    --color-secondary: #d41317;
    /* Red */
    --color-accent: #00adef;
    /* Light blue */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-light: #f2f2f2;
    --color-gray: #999997;
    --color-gray-dark: #727272;

    --font-heading: 'Spinnaker', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --header-height: 93px;
    --site-width: 980px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-primary);
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 35px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin-bottom: 1em;
}

.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 24px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

/* ========================================
   Header Styles
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Logo - shown in hero, not header (matching original site) */
.logo {
    display: none;
    /* Hidden in header to match original */
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    width: 200px;
    max-width: 100%;
}

/* Show logo in header if explicitly needed */
.header-with-logo .logo {
    display: block;
    flex-shrink: 0;
    margin-right: 30px;
}

.header-with-logo .header-container {
    justify-content: flex-start;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 10px 15px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
    transition: color 0.4s ease;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--color-secondary);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown>a::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--color-gray-light);
    color: var(--color-secondary);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3d7c 100%);
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/Electronic_20Chip_b95a40c0916b.9ccfd8810525.jpg") center/cover no-repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.hero-cta:hover {
    background-color: #b01115;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 19, 23, 0.4);
}

/* Hero Logo - Large logo in hero section like original site */
.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--color-white);
}

.section-gray {
    background-color: var(--color-gray-light);
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.service-card-content {
    padding: 25px;
}

.service-card-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card-content p {
    color: var(--color-gray-dark);
    font-size: 15px;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 14px;
}

.service-link:hover {
    color: var(--color-primary);
}

.service-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    color: var(--color-gray-dark);
    margin-bottom: 20px;
    font-size: 17px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3d7c 100%);
    color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info h2 {
    color: var(--color-white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: var(--color-accent);
    margin-top: 3px;
}

.contact-item h4 {
    color: var(--color-white);
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.contact-item a:hover {
    color: var(--color-accent);
}

/* Contact Form */
.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
}

.contact-form h3 {
    color: var(--color-primary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.btn-submit {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #b01115;
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-links ul li a::before {
    content: '›';
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* ========================================
   Page Headers
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3d7c 100%);
    padding: 60px 0 40px;
    margin-top: var(--header-height);
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #b01115;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .about-section {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu>li>a {
        padding: 15px 0;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3 {
        display: block;
    }
}

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Load animations for service cards */
.service-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mb-5 {
    margin-bottom: 50px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
/* ========================================
   Messages
   ======================================== */
.messages-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error, .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
