@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #21aad4 0%, #21aad4 100%);
    border-radius: 20px;
    min-height: 40px;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Base Styles and Variables */
:root {
    --primary-color: #21aad4;
    --secondary-color: #003366;
    --accent-color: #ff6b6b;
    --text-color: #003366;
    --light-gray: #f8f9fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #ffffff;
    --tagline-color: #21aad4;
    --transition: all 0.3s ease;
    --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    --hover-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    --section-spacing: 80px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #21aad4 transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Tagline Styles */
.section-tagline {
    display: block;
    text-align: center;
    color: var(--tagline-color);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.hero-tagline {
    display: block;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Container and Section Styles */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 200px;
}

section {
    padding: var(--section-spacing) 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(33, 170, 212, 0.85),
        rgba(0, 51, 102, 0.75)
    );
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

/* Section Headers */
h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: normal;
}

/* Product Showcase Styles */
.tgs-product-showcase {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.tgs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.tgs-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.tgs-header-tag {
    display: inline-block;
    color: #21aad4;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}

.tgs-main-heading {
    font-size: 2.5rem;
    color: #1e293b;
    margin: 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
}

/* Category Grid Layout */
.tgs-category-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0.5rem;
}

/* Updated Category Box Styles for Image Layout */
.tgs-category-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: fit-content;
}

.tgs-category-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Updated Box Header Styles */
.tgs-box-header {
    padding: 0;
    border: none;
    text-align: center;
    position: relative;
}

/* Category Image Styles */
.category-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tgs-category-box:hover .category-image {
    transform: scale(1.05);
}

/* Title Overlay for Images */
.tgs-category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 2rem 1.5rem 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Category Description Styles */
.tgs-category-description {
    padding: 2rem;
}

.tgs-category-description p {
    line-height: 1.7;
    color: #475569;
    font-size: 1rem;
    text-align: justify;
    margin: 0;
}

/* Remove old icon and list styles */
.tgs-category-icon,
.tgs-product-items,
.tgs-product-entry,
.tgs-check-icon,
.tgs-product-name {
    display: none;
}

/* Stats Section with Icons */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    display: block;
}

/* Distribution Network Section */
.distribution-network {
    padding: 5rem 0;
    background-color: #ffffff;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.text-content h3 i {
    color: #3498db;
}

.text-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: #555;
}

.feature-list li i {
    color: #3498db;
    width: 20px;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Quality Assurance Section */
.tgs-quality-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.tgs-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tgs-quality-block {
    margin-bottom: 2.5rem;
}

.tgs-quality-block:last-child {
    margin-bottom: 0;
}

.tgs-quality-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1.5rem;
}

.tgs-quality-list {
    list-style: none;
    counter-reset: quality-counter;
    padding: 0;
    margin: 0;
}

.tgs-quality-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.6;
    counter-increment: quality-counter;
}

.tgs-quality-list li::before {
    content: counter(quality-counter);
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: #21aad4;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    line-height: 1;
    top: 2px;
}

.tgs-quality-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sustainability Section */
.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.sustainability-item {
    background: #f7f4f4;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.sustainability-item2 {
    background: #3498db;
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.sustainability-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.sustainability-item:hover,
.sustainability-item2:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tgs-category-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .tgs-content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tgs-quality-image {
        order: -1;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .tgs-product-showcase {
        padding: 3rem 0;
    }

    .tgs-category-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tgs-main-heading {
        font-size: 2rem;
    }

    .category-image {
        height: 200px;
    }

    .tgs-category-title {
        font-size: 1.2rem;
        padding: 1.5rem 1rem 1rem;
    }

    .tgs-category-description {
        padding: 1.5rem;
    }

    .distribution-network {
        padding: 3rem 0;
    }

    .hero {
        height: 350px;
    }

    h2 {
        font-size: 2rem;
    }

    .sustainability-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .container,
    .tgs-container {
        padding: 0 1rem;
    }

    .category-image {
        height: 180px;
    }

    .tgs-category-title {
        font-size: 1.1rem;
    }

    .tgs-category-description {
        padding: 1.25rem;
    }

    .tgs-category-description p {
        font-size: 0.95rem;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

section {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.section-tagline {
    animation: slideIn 0.5s ease-out forwards;
}

/* Print Styles */
@media print {
    .tgs-category-box {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }

    .category-image {
        height: 150px;
    }

    .sustainability-item,
    .sustainability-item2 {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--medium-gray);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --primary-color: #0088cc;
        --secondary-color: #004477;
        --text-color: #000000;
    }
    
    .section-tagline {
        color: var(--secondary-color);
    }
}