/* =============== GOOGLE FONTS =============== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* =============== VARIABLES CSS =============== */
:root {
    --header-height: 4rem;
    
    /* Colors - Based on Machine Tools Traders Logo */
    --primary-color: #0066b3;
    --primary-dark: #004c8a;
    --secondary-color: #00a0d6;
    --accent-color: #5eb3e0;
    --light-blue: #a8d5ea;
    --text-color: #2c3e50;
    --text-light: #6b7280;
    --white-color: #ffffff;
    --bg-color: #f8fafc;
    --section-bg: #e8f4f9;
    --border-color: #d1e3f0;
    --shadow-color: rgba(0, 102, 179, 0.1);
    --gradient-1: linear-gradient(135deg, #0066b3 0%, #00a0d6 100%);
    --gradient-2: linear-gradient(135deg, #004c8a 0%, #0066b3 100%);
    
    /* Typography */
    --body-font: 'Inter', sans-serif;
    --title-font: 'Poppins', sans-serif;
    --big-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    
    /* Font weight */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Margins */
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    
    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
    :root {
        --big-font-size: 2.5rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--title-font);
    font-weight: var(--font-bold);
    color: var(--text-color);
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* =============== REUSABLE CSS CLASSES =============== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

.section__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: var(--mb-3);
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-semibold);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 102, 179, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 179, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.btn-link {
    color: var(--primary-color);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* =============== HEADER & NAV =============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    z-index: var(--z-fixed);
    transition: var(--transition);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header.scroll-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo img {
    height: 60px;
    width: auto;
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =============== HERO SECTION =============== */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f4f9 0%, #d4ebf5 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230066b3" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,186.7C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    animation: slideInLeft 1s ease-out;
}

.hero__title {
    font-size: var(--big-font-size);
    font-weight: var(--font-extrabold);
    line-height: 1.2;
    margin-bottom: var(--mb-1);
    color: var(--text-color);
}

.hero__subtitle {
    color: var(--primary-color);
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--mb-2);
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.hero__image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-slow);
}

.hero__image img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* =============== ANIMATIONS =============== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideInLeft 1s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-up {
    animation: slideInUp 1s ease-out 0.6s both;
}

.animate-3d {
    animation: float 3s ease-in-out infinite;
}

/* =============== CATEGORIES SECTION =============== */
.categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category__card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-slow);
    box-shadow: 0 5px 20px var(--shadow-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    transition: var(--transition-slow);
    z-index: 0;
}

.category__card:hover::before {
    left: 0;
}

.category__card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 179, 0.3);
}

.category__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.category__card:hover .category__icon {
    color: var(--white-color);
    transform: rotateY(360deg);
}

.category__title {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-bold);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category__card:hover .category__title {
    color: var(--white-color);
}

/* =============== ABOUT SNAPSHOT =============== */
.about-snapshot__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-snapshot__image img {
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: var(--transition-slow);
}

.about-snapshot__image img:hover {
    transform: scale(1.05) rotate(2deg);
}

.about-snapshot__content {
    padding: 2rem;
}

.about-snapshot__text {
    margin-bottom: var(--mb-1-5);
    color: var(--text-light);
    line-height: 1.8;
}

/* =============== SERVICES (WHAT WE DO) =============== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-slow);
    box-shadow: 0 5px 20px var(--shadow-color);
    position: relative;
    transform-style: preserve-3d;
}

.service__card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(0, 102, 179, 0.2);
}

.service__icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: var(--mb-1-5);
    display: inline-block;
    transition: var(--transition);
}

.service__card:hover .service__icon {
    transform: scale(1.2) rotateZ(360deg);
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    color: var(--text-color);
}

.service__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* =============== IDEA LAB HIGHLIGHT =============== */
.idealab__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, #0066b3 0%, #00a0d6 100%);
    border-radius: 20px;
    padding: 3rem;
    color: var(--white-color);
}

.idealab__content .section__title {
    color: var(--white-color);
    text-align: left;
}

.idealab__content .section__title::after {
    left: 0;
    transform: none;
    background: var(--white-color);
}

.idealab__text {
    margin-bottom: var(--mb-2);
    line-height: 1.8;
    opacity: 0.9;
}

.idealab__image img {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(5deg);
    transition: var(--transition-slow);
}

.idealab__image img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* =============== AWARDS =============== */
.awards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.award__card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
}

.award__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 179, 0.2);
}

.award__logo img {
    max-height: 60px;
    margin: 0 auto var(--mb-1);
}

.award__badge {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.award__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semibold);
    color: var(--text-color);
}

/* =============== TIMELINE (EXHIBITIONS) =============== */
.timeline {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.timeline__item {
    flex: 0 0 300px;
    scroll-snap-align: start;
    position: relative;
}

.timeline__year {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    text-align: center;
}

.timeline__image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
}

.timeline__image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 179, 0.3);
}

.timeline__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* =============== TESTIMONIALS =============== */
.testimonials__slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 400px;
}

.testimonial__card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: var(--transition-slow);
    pointer-events: none;
}

.testimonial__card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.testimonial__content {
    background: var(--white-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    text-align: center;
}

.testimonial__text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--mb-2);
    line-height: 1.8;
}

.testimonial__name {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.testimonial__company {
    color: var(--text-light);
    margin-bottom: var(--mb-1-5);
}

.testimonial__logo {
    font-size: 2rem;
    color: var(--primary-color);
}

.testimonial__logo img {
    max-height: 40px;
    margin: 0 auto;
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--secondary-color);
}

/* =============== FOOTER =============== */
.footer {
    background: var(--text-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--mb-2);
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1-5);
    color: var(--white-color);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__list a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer__list a:hover {
    color: var(--white-color);
    padding-left: 0.5rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.social__link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social__link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =============== RESPONSIVE =============== */
@media screen and (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white-color);
        box-shadow: -2px 0 10px var(--shadow-color);
        transition: var(--transition);
        padding: 2rem;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    .hero__container,
    .about-snapshot__grid,
    .idealab__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero__image {
        order: -1;
    }
    
    .categories__grid,
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .hero__buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .categories__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .awards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline__item {
        flex: 0 0 250px;
    }
}

/* =============== SCROLL BAR =============== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =============== SCROLL UP =============== */
.scrollup {
    position: fixed;
    right: 2rem;
    bottom: -20%;
    background: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: var(--z-tooltip);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 102, 179, 0.3);
}

.scrollup:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.show-scroll {
    bottom: 2rem;
}
