:root {
    --primary: #E31E24;
    --primary-light: #FFEBEC;
    --primary-hover: #C1181D;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 90px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

/* Creative Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #FFE4E6;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #E0E7FF;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.navbar .container {
    max-width: 100%;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

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

.nav-links > li > a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links > li > a:hover {
    color: var(--primary);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-white);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.dropdown-menu li a:hover {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateX(5px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-btn {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    border: 2px solid var(--primary-light);
    background: var(--bg-white);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.phone-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.2);
    transform: translateY(-2px);
}

.lang-switch {
    display: flex;
    background: var(--bg-white);
    border-radius: 30px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.lang-switch button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 20px;
}

.lang-switch button.active {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--primary-light);
    z-index: -1;
    border-radius: 6px;
    transform: rotate(-2deg);
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(227, 30, 36, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-left: 16px;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    color: var(--primary);
    border-color: var(--primary-light);
}

.hero-images {
    position: relative;
    height: 600px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 5s ease-in-out;
    transform: scale(1.05);
}

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

@keyframes float {
    0% { transform: translateY(-50%) }
    50% { transform: translateY(-55%) }
    100% { transform: translateY(-50%) }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%; }
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--text-main);
    line-height: 1.2;
}

.about-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.about-decoration {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9IiNFMzFFMjQiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PC9zdmc+') repeat;
    z-index: 1;
}

/* Services */
.services-section {
    padding: 120px 0;
    background: var(--bg-light);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px auto;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 48px;
    color: var(--text-main);
    line-height: 1.1;
}

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

.service-card {
    background: var(--bg-white);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 32px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Tractor Section */
.tractor-section {
    padding: 120px 0;
    background: var(--bg-white);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.tractor-content {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: inset 0 0 50px rgba(255,255,255,0.5);
    border: 1px solid rgba(227, 30, 36, 0.1);
}

.tractor-content p {
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 20px;
    color: var(--text-main);
    font-weight: 500;
}

.brands-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.brands-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.brands-track img {
    height: 100px;
    margin: 0 40px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    vertical-align: middle;
}

.brands-track img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

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

/* Footer */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: var(--bg-white);
    padding: 100px 0 30px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #FF8A8A 50%, var(--primary) 100%);
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: #94A3B8;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    padding-right: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    font-weight: 600;
    color: #F8FAFC;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    color: #94A3B8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-col ul li a::before {
    content: '→';
    margin-right: 8px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(10px);
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
    margin-bottom: 16px;
}

.contact-info li i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748B;
    font-size: 15px;
}

/* Page Styles */
.page-header {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 48px;
    color: var(--text-main);
    font-weight: 800;
}

.page-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
    min-height: 400px;
}

.page-content p {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-muted);
    line-height: 1.8;
}

.page-content h3 {
    font-size: 28px;
    margin-bottom: 24px;
    margin-top: 48px;
    color: var(--text-main);
    font-weight: 700;
}

/* Product Carousel */
.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.product-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.product-card {
    min-width: 300px;
    scroll-snap-align: start;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.carousel-btn:hover {
    background: #c5181e;
}
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        margin: 0 auto 40px auto;
    }
    
    .hero-slider {
        position: relative;
        width: 100%;
        height: 350px;
        margin: 0 auto;
        display: block;
    }
    
    .hero-shape {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 80%;
    }
    
    .about-text {
        text-align: center;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 20px 30px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .page-layout-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        border: none;
        padding: 10px 0 10px 20px;
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .phone-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .tractor-content {
        padding: 40px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info li {
        justify-content: center;
    }
}
