/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
    border-radius: 25px 0 0 25px;
}

.ioncraft-text {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    letter-spacing: 3px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: #da291c;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.logo .tagline {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: #da291c;
    border-bottom-color: #da291c;
}

/* Banner Slider Section */
.banner-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
}

.slide-content h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.slide-content .btn {
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Slide overlay for better text readability */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.slide-content {
    z-index: 2;
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: #da291c;
    border-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s ease;
}

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

/* Slider Arrow Navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(218,41,28,0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slider-arrow:hover {
    background-color: #da291c;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #da291c 0%, #b01e15 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 20px;
    opacity: 0.95;
}

/* Video Section */
.video-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: none;
}

/* Industry Solutions */
.industry-solutions {
    padding: 40px 0;
    text-align: center;
    background-color: #fff;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #da291c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Knowledge Centre Section */
.knowledge-centre {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto 25px;
}

.cta-buttons {
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #da291c;
    color: white;
    border: 2px solid #da291c;
}

.btn-primary:hover {
    background-color: #b01e15;
    border-color: #b01e15;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218,41,28,0.3);
}

/* Products Page Styles */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #da291c 0%, #b01e15 100%);
    color: white;
    padding: 80px 0 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(80, 80, 80, 0.85) 0%,
        rgba(100, 100, 100, 0.75) 50%,
        rgba(80, 80, 80, 0.85) 100%
    );
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.category-filter {
    font-size: 16px;
    margin-top: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.filter-label {
    font-weight: 600;
    margin-right: 10px;
}

.filter-badge {
    background-color: rgba(218,41,28,0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.results-count {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(218,41,28,0.15);
    border-color: #da291c;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #da291c 0%, #b01e15 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.product-icon i {
    font-size: 36px;
    color: white;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #da291c;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-link {
    color: #da291c;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: #b01e15;
    gap: 12px;
}

.product-link i {
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #da291c;
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col p a:hover {
    color: #da291c !important;
    text-decoration: underline;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #da291c;
}

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

.footer-bottom p {
    color: #888;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile menu toggle on tablet and mobile */
    .mobile-menu-toggle {
        display: block;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Mobile/Tablet Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 80px;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav ul li {
        border-bottom: 1px solid #eee;
    }

    .nav ul li a {
        display: block;
        padding: 18px 25px;
        font-size: 16px;
        border-bottom: none;
    }

    .nav ul li a:hover,
    .nav ul li a.active {
        background-color: #f8f9fa;
        color: #da291c;
    }

    .banner-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    .logo-image {
        height: 40px;
        border-radius: 20px 0 0 20px;
    }

    .ioncraft-text {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .video-wrapper iframe {
        height: 300px;
    }

    .page-header {
        padding: 60px 0 50px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Hide slider arrows on mobile */
    .slider-arrow {
        display: none !important;
    }

    /* Mobile menu - override tablet styles */
    .nav {
        width: 75%;
        max-width: 300px;
    }

    .nav ul li a {
        padding: 20px 30px;
        font-size: 17px;
    }

    .banner-slider {
        height: 350px;
    }

    .slide-content {
        bottom: 60px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .logo {
        gap: 10px;
    }

    .logo-image {
        height: 35px;
        border-radius: 18px 0 0 18px;
    }

    .ioncraft-text {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .page-header {
        padding: 50px 0 40px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .category-filter {
        font-size: 14px;
    }

    .filter-badge {
        padding: 6px 15px;
        font-size: 13px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .product-card {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* Product Detail Page Styles */
.product-detail {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #da291c;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 12px;
    color: #b01e15;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.product-category {
    font-size: 18px;
    font-weight: 600;
    color: #da291c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.product-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.product-features h3,
.product-applications h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.product-features ul,
.product-applications ul {
    list-style: none;
    padding: 0;
}

.product-features ul li {
    padding: 10px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-features ul li i {
    color: #da291c;
    font-size: 18px;
}

.product-applications ul li {
    padding: 8px 0;
    padding-left: 20px;
    color: #555;
    position: relative;
}

.product-applications ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #da291c;
    font-weight: bold;
}

.product-specifications {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.product-specifications h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e5e5e5;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 18px 20px;
    text-align: left;
}

.specs-table th {
    font-weight: 600;
    color: #333;
    width: 30%;
    background-color: #f8f9fa;
}

.specs-table td {
    color: #555;
}

.product-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-secondary {
    background-color: white;
    color: #da291c;
    border: 2px solid #da291c;
}

.btn-secondary:hover {
    background-color: #da291c;
    color: white;
}

/* Responsive for Product Detail */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-specifications {
        padding: 25px;
    }

    .specs-table th,
    .specs-table td {
        padding: 12px 15px;
        font-size: 14px;
    }

    .specs-table th {
        width: 40%;
    }

    .product-cta {
        flex-direction: column;
    }

    .product-cta .btn {
        width: 100%;
        text-align: center;
    }
}

/* Contact Form Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

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

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #da291c 0%, #b01e15 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.form-group label .required {
    color: #da291c;
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #da291c;
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-cancel {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.btn-submit {
    background-color: #da291c;
    color: white;
    border: 2px solid #da291c;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #b01e15;
    border-color: #b01e15;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 41, 28, 0.3);
}

.btn-submit:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.error-message {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}
