@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #A83232;
    /* Deep Professional Red */
    --secondary-red: #c94040;
    --dark-red: #7f2525;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --bg-light: #FFFFFF;
    --bg-off-white: #F9FAFB;
    --bg-dark: #111827;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    /* Force scrollbar to prevent layout shift */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-red);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-off-white {
    background-color: var(--bg-off-white);
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--primary-red);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

header.scrolled nav {
    height: 70px;
    /* Shrink on scroll smoothly */
}

/* Ensure Logo text aligns perfectly */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
    /* Full height to align */
}

.logo-img {
    height: 50px;
    /* Slightly smaller for better proportion */
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

header.scrolled .logo-img {
    height: 40px;
    /* Shrink logo on scroll */
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    padding-top: 4px;
    /* Optical alignment */
}

/* Nav Links - Button Style */
.nav-links {
    display: flex;
    gap: 0.2rem;
    /* Reduced gap further */
    /* Reduced gap to fit all items */
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping of list items */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    /* Dark text by default */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    /* Reduced font size significantly to fit */
    padding: 0.4rem 0.5rem;
    /* Reduced horizontal padding */
    border-radius: 5px;
    background-color: transparent;
    white-space: nowrap;
    /* FORCE single line */
}

/* Red Background on Hover & Active */
.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-red);
    color: var(--white) !important;
    /* Force white text */
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Remove old underline effect logic if present */
.nav-links a::after {
    display: none;
}

/* Hero Section */
#main {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%), url('../images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Hero Section - Full Screen Revamp */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 60px;
    /* Account for fixed header */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    /* Increased from 700px */
    padding: 0;
    /* Removed card styles for cleaner "Full" look */
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
}

.hero-title {
    font-size: 4.5rem;
    /* Larger title */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    /* Reduced from 50% */
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, rgba(220, 38, 38, 0.08) 100%);
    /* Softer gradient */
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    /* Adjusted angle */
    z-index: 1;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
        /* Relax height constraint */
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        margin-left: 0 !important;
        justify-content: center;
    }

    .hero-cta a {
        width: 100%;
        margin-left: 0 !important;
    }

    .hero-shape {
        width: 100%;
        opacity: 0.1;
        clip-path: none;
        height: 50%;
        /* limit height on mobile */
    }
}

/* Profile Section */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-red);
}

/* Service/Solution Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-red);
    transition: height 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-card:hover::before {
    height: 100%;
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

/* Gallery Section - Slider */
.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(168, 50, 50, 0.8);
    /* Primary Red */
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.fade-in-slide {
    animation: fadeIn 0.5s ease;
}

/* Customer Section - Marquee */
.customer-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.marquee-content {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    /* Original speed: 30s */
    gap: 4rem;
    /* Spacing between logos */
}

.customer-logo-img {
    height: 120px;
    /* Increased size */
    width: auto;
    object-fit: contain;
    /* Removed grayscale and opacity for full color */
    transition: transform 0.3s ease;
}

.customer-logo-img:hover {
    transform: scale(1.1);
    /* Zoom effect instead of color change */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half width because we duplicated content */
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(168, 50, 50, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-red);
    font-size: 1.25rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Prompt', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu todo */
    }

    .profile-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-shape {
        display: none;
    }
}

/* --- Login Page Styles --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    /* Adjust as needed */
    padding: 2rem 0;
}

.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border-top: 5px solid var(--primary-red);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
    accent-color: var(--primary-red);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
}

.login-note {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1.5rem;
    background: #f3f4f6;
    padding: 0.8rem;
    border-radius: 0.5rem;
}

/* =========================================
   MOBILE MENU FIXES
   ========================================= */

/* Mobile Menu Button - Initially hidden on desktop */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s;
    margin-left: auto;
    /* Push to right if needed */
    padding-right: 1rem;
}

.mobile-menu-btn:hover {
    color: var(--primary-red);
}

/* Responsive Navigation Override */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 90px;
        /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid var(--primary-red);
        z-index: 50;
        animation: slideDown 0.3s ease-out;
    }

    /* This class is toggled by JS */
    .nav-links[style*="display: flex"] {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: block;
        /* Show hamburger on mobile */
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #f3f4f6;
        text-align: center;
        border-radius: 0;
        background-color: transparent !important;
        color: var(--text-secondary) !important;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-red) !important;
        background-color: #f9fafb !important;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}