/* --- Design System Variables --- */
:root {
    /* Colors: Industrial Tech Palette */
    --color-primary: #0f172a;
    /* Slate 900: Deep Navy/Black */
    --color-secondary: #334155;
    /* Slate 700: Industrial Grey */
    --color-accent: #f59e0b;
    /* Amber 500: Safety Orange/Gold */
    --color-accent-hover: #d97706;
    /* Amber 600 */
    --color-text-main: #1e293b;
    /* Slate 800 */
    --color-text-light: #f8fafc;
    /* Slate 50 */
    --color-bg-body: #f1f5f9;
    /* Slate 100 */
    --color-bg-white: #ffffff;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Roboto', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 4px;
    /* Industrial look is slightly sharper */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

/* --- Navigation --- */
.navbar {
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.95);
    /* Dark semi-transparent */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--color-accent);
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.dropdown-content li a:hover {
    background-color: var(--color-secondary);
    color: var(--color-accent);
}

/* Get Support Button */
.btn-support {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-support:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('assets/Server_rach_service.png') center/cover no-repeat;
    /* Default fallback */
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-text-light);
}

.hero-text {
    max-width: 800px;
}

.tagline {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* --- Section Utilities --- */
.section-padding {
    padding: 80px 0;
}

.mb-5 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    transform: rotate(2deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 4px solid var(--color-accent);
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.card-content p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.link-arrow {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.link-arrow:hover {
    color: var(--color-accent-hover);
}

/* --- Trust Section --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.trust-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* --- Contact Section --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--color-text-light);
    opacity: 0.8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--color-text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #f8fafc;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea {
    outline: 2px solid var(--color-accent);
    border-color: transparent;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {

    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    /* Image on top on mobile */
    .about-image img {
        transform: none;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-primary);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}