:root {
    /* Primary Brand Colors */
    --dark-tangerine: #F6A60E;
    /* Primary CTA buttons, highlights */
    --maize: #FEC547;
    /* Hover states, secondary accents */

    /* Neutral */
    --white: #FFFFFF;
    /* Backgrounds, cards, light text */

    /* Alert/Action Colors */
    --alizarin-crimson: #E3192F;
    /* Important CTAs, alerts */
    --spartan-crimson: #A51A1F;
    /* Hover states for red elements */

    /* Dark Base */
    --cetacean-blue: #0A1743;
    /* Main text, dark sections, footer */

    /* Additional Neutrals */
    --text-primary: #0A1743;
    /* Body text */
    --text-secondary: #64748b;
    /* Muted text */
    --border-light: rgba(10, 23, 67, 0.1);
    --bg-light: #f8fafc;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 23, 67, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 23, 67, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 23, 67, 0.15);

    /* Typography */
    --font-heading: "Comfortaa", cursive, sans-serif;
    --font-body: "Comfortaa", cursive, sans-serif;

    /* Spacing */
    --spacing-unit: 8px;
    --container-max-width: 1280px;
    --header-height: 80px;

    /* Transitions */
    --transition-standard: all 0.3s ease;
    --transition-quick: all 0.15s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--cetacean-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-primary {
    color: var(--dark-tangerine);
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-wrap-reverse {
    flex-wrap: wrap-reverse;
}

.flex-1 {
    flex: 1;
}

.min-w-300 {
    min-width: 300px;
}

.gap-40 {
    gap: 40px;
}

.gap-16 {
    gap: 4rem;
}

.section-lg {
    padding: 160px 0;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 999px;
    transition: var(--transition-standard);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--dark-tangerine) 0%, var(--maize) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(246, 166, 14, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 166, 14, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, var(--alizarin-crimson) 0%, var(--spartan-crimson) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(227, 25, 47, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-standard);
    height: var(--header-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cetacean-blue);
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition-standard);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.0rem;
    font-weight: 700;
    line-height: 1.1;
    transition: var(--transition-standard);
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition-standard);
}

.nav-actions {
    flex-shrink: 0;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.lang-link {
    color: var(--cetacean-blue);
    opacity: 0.7;
    transition: opacity 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}

.lang-link:hover,
.lang-link.lang-active {
    opacity: 1;
    color: var(--dark-tangerine);
}

.lang-separator {
    color: var(--cetacean-blue);
    opacity: 0.5;
    font-size: 0.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--cetacean-blue);
    position: relative;
}

.nav-link:hover {
    color: var(--dark-tangerine);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--cetacean-blue);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 0;
    /* Remove padding to center content vertically in full screen */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    background: linear-gradient(135deg, rgba(10, 23, 67, 0.85), rgba(10, 23, 67, 0.6)), url('https://lubricants.repsol.com/content/dam/repsol-lubricantes/resources/rebranding/Hero-loop.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    /* Center text */
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h5 {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--maize);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--dark-tangerine);
    z-index: -1;
    opacity: 0.3;
    transform: rotate(-2deg);
}

.hero p {
    font-size: 1.25rem;
    margin: 1.5rem 0;
    opacity: 0.9;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Enhanced Button Glow */
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(246, 166, 14, 0.6);
}

/* Product Section Refinement */
.product-intro-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(10, 23, 67, 0.05);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.product-intro-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--dark-tangerine);
}

.product-section-title {
    font-size: 2.25rem;
    color: var(--cetacean-blue);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.product-description-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.product-description-text p {
    margin-bottom: 1.5rem;
}

.product-description-text p:last-child {
    margin-bottom: 0;
}

.highlight-border {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--dark-tangerine);
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* Search Bar Section */
.search-bar-section {
    transform: translateY(-50%);
    z-index: 10;
    position: relative;
}

.search-container {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    flex: 1;
    color: var(--cetacean-blue);
    font-weight: 600;
}

.search-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-tangerine);
}

/* Product Grid */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-standard);
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.img-raised {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: block;
    width: 100%;
}

.catalog-img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.utility-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.utility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--dark-tangerine);
}

.utility-card i {
    font-size: 2rem;
    color: var(--dark-tangerine);
    background: rgba(246, 166, 14, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
    transition: var(--transition-standard);
}

.utility-card:hover i {
    background: var(--dark-tangerine);
    color: var(--white);
    transform: scale(1.1);
}

.utility-card h4 {
    margin-bottom: 0;
    font-size: 1.15rem;
    color: var(--cetacean-blue);
    font-weight: 700;
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Redesigned Product Categories */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-standard);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 23, 67, 0.8), rgba(10, 23, 67, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(10, 23, 67, 0.9), rgba(10, 23, 67, 0.4));
}

.category-name {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--cetacean-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--maize);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

/* About Section Premium Styling */
.about-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1.2;
    min-width: 320px;
}

.about-image-wrapper {
    flex: 0.8;
    min-width: 320px;
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 8px solid var(--primary-color);
    z-index: -1;
    border-radius: 8px;
    opacity: 0.2;
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-tagline {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.about-description p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* RTL Adjustment for About Section */
[dir="rtl"] .about-image-wrapper::before {
    right: auto;
    left: -20px;
}

/* Media Queries */
@media (max-width: 1024px) {

    .grid-cols-4,
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Mobile menu implementation needed */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* Logo Mobile Styles */
    .logo-img {
        height: 35px;
    }

    .logo-title {
        font-size: 0.9rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .search-container {
        flex-direction: column;
    }

    .search-bar-section {
        transform: none;
        margin-top: -40px;
        padding: 0 24px;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }

    .logo-title {
        font-size: 0.8rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-actions {
        gap: 8px;
    }
}
@media (max-width: 380px) {
    .logo {
        gap: 6px;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .logo-title {
        font-size: 0.75rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }

    .nav-container {
        gap: 8px;
        padding: 0 8px;
    }
    
    .language-switcher {
        gap: 4px;
    }
    
    .lang-link {
        font-size: 0.8rem;
    }
}
