:root {
    --primary: #03A9F4;
    --primary-light: #4FC3F7;
    --primary-dark: #01579B;
    --accent-red: #E53935;
    --accent-red-light: #EF5350;
    --accent-red-dark: #C62828;
    --white: #ffffff;
    --black: #121212;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --text-color: #333;
    --bg-gradient: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 50%, #03A9F4 100%);
    --bg-gradient-red: linear-gradient(135deg, #EF5350 0%, #E53935 50%, #C62828 100%);
    --bg-hero: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('images/hero_door.png');
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

section {
    position: relative;
    overflow: hidden;
}

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

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

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

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

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

/* Animations & Transitions */

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.active {
    opacity: 1;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(3, 169, 244, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(3, 169, 244, 0.4);
}

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

.btn-outline:hover {
    background: var(--bg-gradient-red);
    color: white;
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.3);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Navigation */

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--primary);
    font-weight: 400;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(3, 169, 244, 0.3));
}

#main-nav.scrolled .logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--primary) 100%);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section High Motion */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 96px;
    /* Added 16px for better UX spacing */
    overflow: hidden;
}

.hero-bg-motion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(229, 57, 53, 0.08) 0%, transparent 40%),
        radial-gradient(circle at center, rgba(79, 195, 247, 0.1) 0%, rgba(255, 255, 255, 1) 70%);
}

.door-animation-container {
    position: absolute;
    right: -180px;
    /* Shifted further right to clear text area */
    top: 50%;
    transform: translateY(-50%);
    width: 65%;
    height: 80%;
    perspective: 2000px;
    opacity: 1;
    z-index: 1;
    /* Behind text if they ever meet */
}

.industrial-door-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border: 15px solid #e0e0e0;
    border-bottom: none;
    border-top: 5px solid var(--accent-red-light);
    border-radius: 10px 10px 0 0;
    background: #fff;
    box-shadow:
        20px 40px 60px rgba(0, 0, 0, 0.1),
        0 -5px 20px rgba(229, 57, 53, 0.15);
    transform: rotateY(-15deg);
    overflow: hidden;
}

.door-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.door-shutter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(#eee,
            #eee 40px,
            #ddd 40px,
            #ddd 80px);
    border-bottom: 5px solid #999;
    z-index: 2;
    transition: transform 4s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translateY(0);
}

.hero.active .door-shutter {
    transform: translateY(-95%);
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-left: -2rem;
    /* Shifting text specifically to the left */
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 550px;
    /* Narrower to stay on the left */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
    /* Narrower to stay on the left */
    color: var(--gray);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.gradient-text {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: fit-content;
    animation: revealUp 1s ease-out 0.8s backwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:nth-child(2) .stat-number {
    background: var(--bg-gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

/* Services */

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--primary) 50%, var(--primary-light) 100%);
    margin: 0 auto;
    border-radius: 5px;
}

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

.service-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
}

.service-card:nth-child(2):hover,
.service-card:nth-child(5):hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(229, 57, 53, 0.12);
    border-color: var(--accent-red-light);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(5) .service-icon {
    filter: drop-shadow(0 0 8px rgba(229, 57, 53, 0.3));
}

.service-card:nth-child(2):hover .service-icon,
.service-card:nth-child(5):hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(229, 57, 53, 0.5));
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Products */

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #eee;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-btn:hover:not(.active) {
    border-color: var(--accent-red-light);
    color: var(--accent-red);
    transform: translateY(-2px);
}

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

.product-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.product-item:nth-child(2):hover,
.product-item:nth-child(4):hover {
    border-color: var(--accent-red-light);
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.15);
}

.product-item img,
.placeholder-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ced4da;
    font-size: 2rem;
}

.product-info {
    padding: 1.5rem;
}

.category-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.summary-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.summary-item:nth-child(2) {
    border-left-color: var(--accent-red);
}

.summary-item:hover {
    transform: translateX(10px);
    box-shadow: -5px 10px 25px rgba(0, 0, 0, 0.08);
}

/* About & Color BG */

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

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.value-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.value-item:nth-child(2) {
    border-color: rgba(229, 57, 53, 0.4);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

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

/* Project Logos */

.logos-slider {
    overflow: hidden;
    padding: 2rem 0;
    margin: 3rem 0;
    background: #fff;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 5rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.client-name {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ccc;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.client-name:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Projects List */
.projects-list {
    margin-top: 3rem;
}

.projects-list h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.projects-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.projects-list li {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.projects-list li:nth-child(even) {
    border-left-color: var(--accent-red);
}

.projects-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Contact */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links span {
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.social-links span:hover {
    color: var(--accent-red);
    transform: translateY(-3px);
}

/* Pulse animation for urgency service */
@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(229, 57, 53, 0);
    }
}

.service-card:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

/* Base Responsive */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .door-animation-container {
        opacity: 0.3;
        width: 100%;
        right: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-stats {
        gap: 1.5rem;
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
    }

    .nav-links {
        display: none;
    }
}