/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonturi Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

/* Culori */

:root {
    /* Culori principale */
    --primary-color: #FF7F11;      /* Portocaliu intens */
    --secondary-color: #F6AE2D;    /* Galben-portocaliu */
    --dark-color: #222;           /* Gri-închis (folosit pentru nav) */
    --light-bg: #f0f2f5;          /* Fundal general */
    --text-color: #333;           /* Text general */
    --light-text: #fff;           /* Text pe fundal închis */
    --accent-color: #e4b109;      /* Auriu/deschis pentru hover */
    --dark-accent-color: #c87f06; /* Variantă mai întunecată pentru accent */
    --hover-color: #FFC107;       /* Galben pentru hover */
    /* Culori principale */
    --orange: #ff6b00;
    --orange-light: #ff8534;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #333333;

    /* Alte culori (opțional) */
    --dark-gray: #2e2e2e;
    --light-gray: #f2f2f2;

    /* Tipografii */
    --font-primary: Arial, sans-serif;

    /* Timp de tranziție & border radius */
    --transition-speed: 0.4s;
    --radius: 8px;
    /* Culori adiționale */
    --gray: #888888;              /* Gri pentru texturi subtile */
    --dark-gray: #2e2e2e;         /* Gri-închis */
    --light-gray: #e0e0e0;        /* Gri deschis */
    --footer-bg: #181818;         /* Fundal pentru footer */
    --footer-text: #bbbbbb;       /* Text în footer */

    /* Dimensiuni */
    --radius: 10px;               /* Pentru border-radius */
    --small-radius: 5px;          /* Border-radius mic */
    --transition-speed: 0.4s;     /* Timp de tranziție */
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Umbre subtile */
    --light-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Umbre ușoare */

    /* Dimensiuni text */
    --font-small: 0.9rem;         /* Text mic */
    --font-normal: 1rem;          /* Text normal */
    --font-large: 1.25rem;        /* Text mare */

    /* Fonturi */
    --font-primary: 'Open Sans', Arial, sans-serif; /* Font principal */
    --font-heading: 'Montserrat', sans-serif;      /* Font pentru titluri */

    /* Efecte */
    --hover-transform: scale(1.05); /* Transformare la hover */
    --hero-overlay: rgba(0, 0, 0, 0.6); /* Overlay întunecat pentru secțiuni */
}

/* Stiluri generale */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: white;
    line-height: 1.6;
    background-color: #181818;
    background-size: cover;
    background-attachment: fixed;
}

/* Container de bază */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


nav {
    background-color: var(--dark-color);
    display: flex;
    padding: 1% 6%;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: var(--box-shadow);
}

nav img {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul {
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.nav-links ul li a:hover {
    color: var(--secondary-color);
}

/* Efect de subliniere la hover */
.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    display: block;
    margin: auto;
    transition: width var(--transition-speed);
}

.nav-links ul li:hover::after {
    width: 100%;
}

nav .fa {
    display: none;
}
/* Responsivitate Nav și Header Text */
@media(max-width: 700px) {
    .text-box h1 {
        font-size: 50px;
    }
    .nav-links ul li {
        display: block;
    }
    .nav-links {
        position: fixed;
        background: var(--dark-color);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa {
        display: block;
        color: var(--light-text);
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul {
        padding: 30px;
    }
}


/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(230, 126, 34, 0.7), rgba(230, 126, 34, 0.7)), url('../assets/mjy15.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    background-attachment: fixed; /* Parallax */
    animation: fadeInUp 1s ease-in forwards;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    background-image: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero .btn:hover {
    background-image: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-3px);
}

/* About Us */
.about-us {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
    animation: fadeInUp 1s ease-in forwards;
}

.about-us h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.about-us p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* Machines Section */
.machines {
    padding: 4rem 0;
    background-color: black;
    animation: fadeInUp 1s ease-in forwards;
}

.machines h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 2rem;
}

.machine-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.machine-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.machine-item:hover .machine-image {
    transform: scale(1.1);
}

.machine-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.machine-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.machine-item p {
    font-size: 1rem;
    margin: 0 1rem 1.5rem;
    text-align: justify;
    position: relative;
}

/* Primă literă mai mare */
.machine-item p::first-letter {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #fff;
    animation: fadeInUp 1s ease-in forwards;
}

.contact h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--dark-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.contact-form button {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    background-image: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-form button:hover {
    background-image: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-3px);
}

  /* ===================== FOOTER ===================== */
        footer {
            background-color: var(--dark-gray);
            padding: 3rem 2rem;
            text-align: left;
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: space-between;
        }
        .footer-brand {
            flex: 1 1 220px;
            min-width: 200px;
        }
        .footer-brand h3 {
            color: var(--orange);
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }
        .footer-brand p {
            font-size: 0.95rem;
            line-height: 1.5;
            color: var(--white);
            opacity: 0.85;
        }
        .footer-links {
            flex: 1 1 180px;
            min-width: 180px;
        }
        .footer-links h4 {
            color: var(--white);
            margin-bottom: 1rem;
            font-size: 1.1rem;
            text-transform: uppercase;
        }
        .footer-links ul {
            list-style: none;
            padding: 0;
        }
        .footer-links ul li {
            margin-bottom: 0.5rem;
        }
        .footer-links a {
            color: var(--white);
            text-decoration: none;
            transition: color var(--transition-speed);
            font-size: 0.95rem;
            opacity: 0.85;
        }
        .footer-links a:hover {
            color: var(--orange);
            opacity: 1;
        }
        .footer-contact {
            flex: 1 1 240px;
            min-width: 200px;
        }
        .footer-contact h4 {
            color: var(--white);
            margin-bottom: 1rem;
            font-size: 1.1rem;
            text-transform: uppercase;
        }
        .footer-contact .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            color: var(--white);
            opacity: 0.85;
            font-size: 0.95rem;
            gap: 0.5rem;
        }
        .footer-contact .contact-item i {
            font-size: 1.1rem;
            color: var(--orange);
        }
        .footer-social {
            flex: 1 1 180px;
            min-width: 180px;
            text-align: center;
        }
        .footer-social h4 {
            color: var(--white);
            margin-bottom: 1rem;
            font-size: 1.1rem;
            text-transform: uppercase;
        }
        .social-icons {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
        }
        .social-icons a {
            color: var(--white);
            font-size: 1.2rem;
            transition: color var(--transition-speed);
        }
        .social-icons a:hover {
            color: var(--orange);
        }
        .footer-bottom {
            width: 100%;
            text-align: center;
            color: var(--white);
            opacity: 0.6;
            margin-top: 1rem;
            font-size: 0.8rem;
        }
        @media(max-width: 768px) {
            footer {
                flex-direction: column;
                align-items: flex-start;
            }
            .footer-social {
                text-align: left;
            }
        }


/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}

.scroll-top.active {
    display: flex;
    animation: bounceIn 0.5s ease;
}

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Carusel (opțional) */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.carousel-nav button {
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    padding: 1rem;
    cursor: pointer;
}

.carousel-nav button:hover {
    background-color: rgba(0,0,0,0.7);
}

/* Animații Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Titluri cu liniuță decorativă sub ele (opțional) */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 25%;
}

/* Responsivitate suplimentară */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .machine-item h3 {
        font-size: 1.3rem;
    }
    .machine-item p {
        font-size: 0.9rem;
    }
}

.btn-machine {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-machine:hover {
    background-color: #d35400; /* Efect hover, ușor mai închis */
    transform: translateY(-3px);
}



/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

/* Imaginea logo-ului */
.logo-image {
    height: 50px; /* Ajustează dimensiunea imaginii logo */
    width: auto;
    margin-right: 10px; /* Spațiu între imagine și text */
}

/* Textul logo-ului */
.logo-text {
    display: inline-block;
    font-size: 1.2rem;
    color: #fff;
}
