/* ==================== 
   STEELCORP Stylesheet
   Main Colors:
   - White: #ffffff (background)
   - Red: #e10000 (links, headings)
   ==================== */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #e10000;
    --color-primary-dark: #b30000;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #666666;
    --color-gray-light: #f5f5f5;
    --color-gray-dark: #333333;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==================== 
   Typography
   ==================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-gray-dark);
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* ==================== 
   Header & Navigation
   ==================== */
.main-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--color-primary-dark);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--color-gray-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-hover);
    min-width: 250px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 4px;
    margin-top: 10px;
}

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

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    text-transform: none;
    font-size: 0.9rem;
}

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

.dropdown-menu a:hover {
    background-color: var(--color-gray-light);
    color: var(--color-primary);
}

.dropdown-header {
    padding: 8px 20px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-gray-light);
    margin: 8px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* ==================== 
   Main Content
   ==================== */
main {
    padding-top: 70px;
}

/* Banner Section */
.banner-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Intro Section */
.intro-section {
    background-color: var(--color-gray-light);
    overflow: hidden;
}

.intro-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-wrapper h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.intro-content-row {
    display: block;
}

.intro-wrapper .intro-text {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.brand-text {
    font-weight: 800;
    color: #000000;
}

/* 3 Images in a Row */
.intro-images-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.row-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    display: block;
}

.row-img:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(225, 0, 0, 0.4);
    border: 4px solid #e10000;
}

/* Slide Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
    opacity: 0;
}

.slide-in-bottom {
    animation: slideInBottom 0.7s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.application-item {
    background-color: var(--color-white);
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.application-item h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Image Slider */
.slider-section {
    background-color: var(--color-white);
    padding: 60px 0;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
}

.slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    height: 350px;
}

.slide-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}

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

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

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

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

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

/* ==================== 
   Footer
   ==================== */
.main-footer {
    background-color: var(--color-gray-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.8;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 12px;
    color: #cccccc;
}

.contact-list a {
    color: var(--color-primary);
}

.contact-list a:hover {
    color: #ff3333;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links a {
    color: #cccccc;
    transition: var(--transition);
}

.quick-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-map .map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-map iframe {
    display: block;
    filter: grayscale(20%);
    transition: var(--transition);
}

.footer-map iframe:hover {
    filter: grayscale(0%);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==================== 
   Gallery Page
   ==================== */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 10px 25px;
    background-color: var(--color-gray-light);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    color: var(--color-gray-dark);
}

.gallery-tab:hover,
.gallery-tab.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: var(--color-white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* ==================== 
   Products & DIY Pages
   ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card-image {
    height: 200px;
    background-color: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
}

.product-card-content {
    padding: 25px;
}

.product-card-content h3 {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

/* ==================== 
   Responsive Design
   ==================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-gray-light);
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
    }

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

    .dropdown-arrow {
        float: right;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .banner-section {
        height: 300px;
    }

    .intro-wrapper h2 {
        font-size: 1.6rem;
    }

    .intro-content-row {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .intro-images-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .row-img {
        height: 200px;
    }

    .slide-grid {
        grid-template-columns: 1fr;
        height: 300px;
    }

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

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .floating-whatsapp svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

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