/* Global Styles & Variables */
:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-color: #e63946;
    /* Vibrant Red */
    --accent-hover: #c92a37;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

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

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 15px;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    text-align: center;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    backdrop-filter: blur(3px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: none;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    max-width: 200px;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.navbar.scrolled .logo {
    opacity: 1;
    pointer-events: auto;
}

.logo img {
    height: 50px;
    /* Constrain height to fit navbar */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Changed from height to min-height for flexible content */
    width: 100%;
    background: url('img/engine-bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    padding: 60px 0 100px;
    /* Reduced top padding, kept bottom for balance */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    /* Reduced from 100px */
}

.business-card {
    background: transparent;
    padding: 20px;
    border-radius: 0;
    border: none;
    text-align: center;
    max-width: 1000px;
    box-shadow: none;
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: visible;
}

/* Remove glow */
.business-card::before {
    display: none;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 30px;
    line-height: 1;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-weight: 800;
}

.highlight-red {
    color: #e63946;
}

.hero-phone-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.phone-icon {
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 0 #000;
    border: 2px solid white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #000;
}

.hero-phone-big {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    line-height: 1;
}

.hero-divider {
    height: 2px;
    background-color: white;
    width: 80%;
    margin: 0 auto 30px;
    box-shadow: 0 2px 0 #000;
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    font-family: var(--font-heading);
}

.service-item {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-item i {
    color: white;
}



.hero-phone i {
    transform: rotate(90deg);
    /* Adjust icon if needed */
}

/* 3D Social Icons */
.hero-socials {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
    background: #333;
    /* Fallback */
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

.social-icon.fb {
    background: radial-gradient(circle at 30% 30%, #4e69a2, #3b5998);
}

.social-icon.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.wa {
    background: radial-gradient(circle at 30% 30%, #4cc65a, #25D366);
}

.social-icon i {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
    border: 1px solid #333;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #222;
    border-color: var(--accent-color);
}

/* Slideshow Gallery */
.slideshow-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.slideshow-container img.fade-out {
    opacity: 0;
}

.icon-box {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: var(--text-muted);
}

/* Specialization Section */
.specialization {
    background-color: #151515;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.highlight-text {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-style: italic;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--accent-color);
}

.image-box {
    width: 100%;
    height: 400px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed #444;
}

.big-icon {
    font-size: 100px;
    color: #444;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-form-box {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

input,
select,
textarea {
    padding: 12px;
    background-color: white;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    font-family: var(--font-main);
    width: 100%;
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.btn-full {
    width: 100%;
    background-color: var(--accent-color);
    border: none;
    margin-top: 10px;
}

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

/* Footer */
footer {
    background-color: black;
    padding: 30px 0;
    border-top: 1px solid #222;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: white;
    font-size: 1.2rem;
}

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

/* Responsive */
/* Location Section */
.location {
    background-color: #151515;
    padding-bottom: 40px;
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.address-card {
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.address-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.address-header .icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.address-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #111;
}

.address-details {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.company-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.address-features p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.address-features i {
    color: var(--accent-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Info Tiles */
.location-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.info-tile {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    color: #333;
    transition: transform 0.3s ease;
}

.info-tile:hover {
    transform: translateY(-5px);
}

.tile-icon {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.tile-icon.filled-icon {
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
}

.info-tile h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #111;
}

.info-tile p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.highlight-text-red {
    color: var(--accent-color) !important;
    font-weight: 700;
}

/* Responsive Design */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-phone-big {
        font-size: 3.5rem;
    }

    .phone-icon {
        font-size: 2.5rem;
    }

    .location-container {
        gap: 30px;
    }
}

/* Tablet (iPad Portrait) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-phone-big {
        font-size: 3.5rem;
    }

    .split-container {
        gap: 30px;
    }

    .image-box {
        height: 300px;
    }
}

/* Mobile & Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

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

    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        height: calc(100vh - var(--nav-height));
        background-color: #0d0d0d;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        width: 100%;
        transition: right 0.3s ease-in-out;
        border-top: 1px solid #333;
    }

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

    .hamburger {
        display: block;
    }

    .hero-content {
        margin-top: 60px;
        /* Reduced top margin for mobile */
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero-phone-container {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .hero-phone-big {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0 #000;
    }

    .phone-icon {
        font-size: 2rem;
        padding: 8px 12px;
    }

    .hero-services {
        flex-direction: column;
        gap: 15px;
    }

    .service-item {
        font-size: 1.2rem;
        text-shadow: 2px 2px 0 #000;
    }

    .business-card {
        padding: 0 10px;
        width: 100%;
        /* Ensure full width */
    }

    .split-container,
    .contact-wrapper,
    .location-container,
    .location-tiles {
        grid-template-columns: 1fr;
    }

    .image-box {
        display: none;
    }

    .map-container {
        min-height: 300px;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-phone-big {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-actions {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Mobile Landscape */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }

    .nav-links {
        overflow-y: auto;
    }

    .hero-content {
        margin-top: 40px;
    }
}

/* Mobile Landscape Slider Logic */
.services-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(230, 57, 70, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(230, 57, 70, 1);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Landscape Mode (Mobile/Tablet) */
@media (max-width: 900px) and (orientation: landscape),
(max-width: 768px) {
    .services-wrapper {
        padding: 0 40px;
        /* Space for buttons */
    }

    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 20px;
        padding-bottom: 20px;
        /* Space for scrollbar if visible */
        width: 100%;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        grid-template-columns: none;
        /* Reset grid */
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 300px;
        /* Fixed width for cards in slider */
        width: 300px;
        min-width: 300px;
    }

    .slider-btn {
        display: flex;
    }
}