/* Variables & Reset */
:root {
    --primary-color: #003366;
    /* Professional Deep Blue */
    --secondary-color: #00509E;
    /* Lighter Vibrant Blue */
    --accent-color: #FF5722;
    /* Vibrant Orange */
    --text-light: #E0E0E0;
    --text-dark: #222222;
    --white: #ffffff;
    --grey-light: #F4F7F6;
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --whatsapp-color: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.nav-links .btn-primary {
    padding: 8px 20px;
    margin-left: 10px;
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 35, 71, 0.8), rgba(0, 35, 71, 0.8)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-color), #FFD54F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-center {
    text-align: center;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.placeholder-img {
    width: 100%;
    height: 450px;
    background-image: url('about-bg.png');
    background-size: cover;
    background-position: center;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 600;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Services Section */
.services {
    background-color: var(--grey-light);
}

.section-header p {
    color: #666;
    margin-bottom: 60px;
    margin-top: 20px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 80, 158, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
    font-size: 1rem;
}

/* Process Section */
.process {
    background-color: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
    position: relative;
    z-index: 2;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
}

/* Arrow connectors for desktop */
@media (min-width: 992px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 45px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: repeating-linear-gradient(to right, var(--accent-color) 0, var(--accent-color) 5px, transparent 5px, transparent 10px);
        z-index: 1;
    }
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    color: var(--white);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item .counter {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-item span {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-item p {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-wrapper {
    background-color: var(--white);
}

.centered-contact {
    max-width: 900px;
    margin: 0 auto;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.contact-option-card {
    flex: 1;
    min-width: 220px;
    background-color: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.option-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 51, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-option-card:hover .option-icon {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.contact-option-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #002347;
    /* Darker than primary */
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
}

.copyright {
    color: #8892b0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Floating Actions */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    animation: none;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    width: 65px;
    height: 65px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 2px solid var(--white);
}

.chat-toggle:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 360px;
    height: 500px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.chat-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.close-chat {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: 0.3s;
}

.close-chat:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bot-message {
    background-color: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #eee;
}

.user-message {
    background-color: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background-color: var(--white);
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.chat-input button:hover {
    background-color: var(--accent-color);
    transform: rotate(15deg);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 30px;
    }

    .contact-form {
        padding: 30px;
    }

    .chat-window {
        width: 300px;
        align-items: center;
    }

}

/* Injection Machine Animation */
.machine-section {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
}

/* Machine Parts */
/* Machine Container Styles */
.machine-container {
    width: 100%;
    height: 300px;
    margin: 0 auto;
    position: relative;
    background-color: rgba(0, 51, 102, 0.05);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.machine-wrapper {
    position: relative;
    width: 600px;
    height: 200px;
    display: flex;
    align-items: center;
}

.machine-container.small-scale .machine-wrapper {
    transform: scale(0.65);
    transform-origin: center;
}

@media (max-width: 768px) {
    .machine-container.small-scale .machine-wrapper {
        transform: scale(0.45);
    }

    .machine-container {
        height: 250px;
    }
}

.injector-unit {
    width: 200px;
    height: 60px;
    background: linear-gradient(to bottom, #555, #333);
    border-radius: 5px;
    position: relative;
    z-index: 2;
}

.injector-nozzle {
    width: 30px;
    height: 20px;
    background-color: #777;
    position: absolute;
    right: -30px;
    top: 20px;
    border-radius: 0 5px 5px 0;
}

.hopper {
    width: 60px;
    height: 80px;
    background: linear-gradient(to right, var(--accent-color), #D84315);
    position: absolute;
    top: -80px;
    left: 40px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.mold-unit-stationary {
    width: 20px;
    height: 120px;
    background-color: #444;
    position: absolute;
    left: 230px;
    border-radius: 5px;
    z-index: 2;
}

.mold-unit-moving {
    width: 80px;
    height: 120px;
    background-color: #555;
    position: absolute;
    left: 350px;
    /* Start position (open) */
    border-radius: 5px;
    z-index: 2;
    animation: mold-cycle 4s infinite ease-in-out;
}

.mold-cavity {
    width: 10px;
    height: 60px;
    background-color: #333;
    position: absolute;
    left: 0;
    top: 30px;
    border-radius: 0 5px 5px 0;
}

.guide-bars {
    width: 400px;
    height: 10px;
    background-color: #222;
    position: absolute;
    top: 95px;
    left: 200px;
    z-index: 1;
    border-radius: 5px;
}

/* Plastic Flow Animation */
.plastic-flow {
    width: 0;
    height: 10px;
    background-color: var(--accent-color);
    position: absolute;
    left: 230px;
    top: 95px;
    z-index: 3;
    opacity: 0;
    animation: inject-plastic 4s infinite linear;
}

/* Product Drop Animation */
.product {
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    position: absolute;
    left: 300px;
    top: 100px;
    border-radius: 5px;
    opacity: 0;
    animation: drop-product 4s infinite ease-in;
}

@keyframes mold-cycle {

    0%,
    10% {
        left: 350px;
    }

    /* Open */
    20%,
    60% {
        left: 250px;
    }

    /* Closed */
    70%,
    100% {
        left: 350px;
    }

    /* Open */
}

@keyframes inject-plastic {

    0%,
    20% {
        width: 0;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    30%,
    55% {
        width: 100px;
        opacity: 1;
    }

    /* Filling mold */
    60%,
    100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes drop-product {

    0%,
    70% {
        opacity: 0;
        top: 100px;
        transform: rotate(0deg);
    }

    75% {
        opacity: 1;
        top: 100px;
    }

    85% {
        top: 250px;
        transform: rotate(180deg);
        opacity: 1;
    }

    90%,
    100% {
        top: 250px;
        opacity: 0;
    }
}

.machine-label {
    position: absolute;
    bottom: 20px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Logo Styles */
.site-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .site-logo {
        height: 80px;
    }
}