/* 
  Eti Tech Maroc - Premium Custom CSS
  Color Palette:
  - Deep Navy Blue (Primary): #0A192F
  - Gold/Copper (Accent): #D4AF37
  - Clean White: #FFFFFF
  - Light Grey (Backgrounds): #F8F9FA
  - Dark Grey (Text): #333333
*/

:root {
    --primary-color: #0A192F;
    --accent-color: #D4AF37;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --green-accent: #8dc63f; /* Added green from reference for the banner */
    --transition: all 0.3s ease-in-out;
}

.text-green {
    color: var(--green-accent);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

/* Typography & Utilities */
.lead {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 20px;
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--white);
    transition: var(--transition);
    cursor: pointer;
    margin-left: 15px;
}

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

.btn-white {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.logo h1 {
    color: var(--white);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo h1 span {
    color: var(--accent-color);
}

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

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.contact-nav-btn {
    margin-left: 10px;
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* Services Grid (6 Cards) */
.services-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.card-img-top {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-top img {
    transform: scale(1.05);
}

.card-body {
    padding: 30px 25px;
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--accent-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--accent-color);
    color: var(--white);
}

.card-body h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card-body p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-list li {
    margin-bottom: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.service-list i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.85rem;
}

/* Promotional Banner */
.promo-banner {
    background-color: var(--green-accent);
    padding: 60px 0;
    color: var(--white);
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.promo-text {
    flex: 1;
    min-width: 300px;
}

.promo-text h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2rem;
}

.promo-text p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.promo-text .contact-info {
    font-size: 1.2rem;
    margin-top: 15px;
}

.promo-action {
    flex-shrink: 0;
}

/* Sectors Section */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.sector-item {
    background: var(--white);
    padding: 30px 15px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.sector-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.sector-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.sector-item h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
    transition: var(--transition);
}

.sector-item:hover i, .sector-item:hover h4 {
    color: var(--white);
}

/* Footer */
.footer {
    background-color: #051020;
    color: #a0aabf;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-col ul li i {
    color: var(--accent-color);
    margin-right: 15px;
    width: 15px;
    text-align: center;
}

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

.magazine-widget h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 10px;
}

.magazine-widget p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

.footer-links {
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links a {
    margin: 0 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.social-icons a {
    color: #a0aabf;
    margin-left: 15px;
    font-size: 1.1rem;
}

.social-icons a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }

    .contact-nav-btn {
        margin-left: 0 !important;
        margin-top: 15px;
        display: flex !important;
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border: none;
        padding: 0;
        display: none;
        transform: none;
        visibility: visible;
        opacity: 1;
        margin-top: 10px;
    }

    .dropdown-menu li a {
        color: var(--white) !important;
        justify-content: center;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .services-grid-6 {
        grid-template-columns: 1fr;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 4px solid var(--green-accent);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    color: var(--text-dark) !important;
    padding: 12px 25px !important;
    display: flex !important;
    align-items: center;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(141, 198, 63, 0.05);
    color: var(--green-accent) !important;
    padding-left: 32px !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

/* Page Headers (Internal Pages) */
.page-header {
    padding: 150px 0 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.page-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}

.page-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Custom Lists */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.custom-list li:last-child {
    border-bottom: none;
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* ==============================================================
   PREMIUM GLOBAL COMPONENTS (Glassmorphism, Animations, Premium Cards)
   ============================================================== */

.premium-page {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #1a1a2e;
    overflow: hidden;
}

/* Hero Section */
.hero-premium {
    position: relative;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: subtleZoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.6) 100%);
    z-index: 1;
}

.hero-content-premium {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards ease-out 0.3s;
}

.hero-content-premium h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 15px 30px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-content-premium h1 span {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-content-premium h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    z-index: -1;
}

.hero-content-premium p {
    font-size: 1.35rem;
    font-weight: 300;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Section */
.content-premium {
    padding: 120px 0 140px;
    position: relative;
    z-index: 10;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(10,25,47,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
}

.intro-box {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 90px;
}

.intro-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.intro-box h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), #f3e5ab);
    border-radius: 5px;
}

.intro-box p {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.9;
}

/* Product Cards */
.cards-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.card-premium {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 25, 47, 0.05);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    text-decoration: none;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-color), #f3e5ab);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
}

.card-premium:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 80px rgba(10, 25, 47, 0.12);
    border-color: transparent;
}

.card-premium:hover::before {
    transform: scaleX(1);
}

.card-premium-img {
    height: 240px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.card-premium-img::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all 0.6s ease;
}

.card-premium:hover .card-premium-img::after {
    transform: translate(-50%, -50%) scale(1.3);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
}

.card-premium-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.card-premium:hover .card-premium-img img {
    transform: scale(1.15) rotate(-3deg);
}

.card-premium-body {
    padding: 30px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-premium-body h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.card-premium-body p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-premium-action {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s ease;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-premium-action i {
    background: rgba(212, 175, 55, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.card-premium:hover .card-premium-action {
    color: var(--primary-color);
    gap: 20px;
}

.card-premium:hover .card-premium-action i {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

/* Features Strip */
.features-strip {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 15px 35px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.1);
    border-color: var(--accent-color);
}

.feature-item i {
    font-size: 1.6rem;
    color: var(--accent-color);
}

.feature-item span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Animations Keyframes */
@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 768px) {
    .hero-content-premium h1 { font-size: 2.2rem; }
    .hero-premium { height: 50vh; }
    .cards-premium-grid { grid-template-columns: 1fr; }
    .feature-item { width: 100%; justify-content: center; border-radius: 15px; }
    .card-premium-body { padding: 25px; }
}

/* ==============================================================
   PRELOADER
   ============================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.machine-loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear-large {
    font-size: 55px;
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--primary-color);
    animation: spin 3s linear infinite;
}

.gear-small {
    font-size: 38px;
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: var(--accent-color);
    animation: spin-reverse 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
