/* =========================================
   THANA STEEL WORK - Modern CSS Stylesheet
   ========================================= */

:root {
    /* Colors */
    --primary-color: #1a202c;       /* Deep Slate (Engineering Dark) */
    --primary-light: #2d3748;       /* Lighter Slate */
    --accent-color: #e65c00;        /* Industrial Safety Orange */
    --accent-hover: #cc5200;        
    --nav-bg: #1a202c;              /* Deep Slate for Header */
    --nav-active-bg: #ffffff;
    --nav-active-text: #1a202c;
    --text-main: #1a202c;           /* Dark Text for readability */
    --text-muted: #4a5568;          /* Muted Text */
    --bg-light: #f7fafc;            /* Clean Off-white */
    --bg-white: #ffffff;
    --bg-dark: #1a202c;             /* Dark background */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

/* --- Typography Utilities --- */
.highlight {
    color: var(--accent-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Header & Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
    transition: padding var(--transition-fast);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: 1px;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--bg-white);
    padding: 8px 20px;
    border-radius: 50px; /* Pill shape */
    display: inline-block;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.nav-link i {
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-white);
    min-width: 240px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    padding: 10px 0;
    z-index: 1001;
}

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

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--nav-bg);
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--bg-white);
}

/* --- Hero Slider Section --- */
.hero-slider-section {
    position: relative;
    padding-top: 70px; /* offset for header */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    min-height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 10;
}

.slide-title {
    color: var(--accent-color);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-subtitle {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-outline-pill {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    background: transparent;
}

.btn-outline-pill:hover {
    background: var(--bg-white);
    color: var(--text-main);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: white;
}

/* --- Features Strip --- */
.features-strip {
    background-color: var(--nav-bg);
    padding: 30px 0;
    color: white;
}

.features-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.strip-icon i {
    font-size: 3rem;
    color: white;
}

.strip-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
    font-weight: 700;
}

.strip-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

/* --- Section Headers --- */
.section-subtitle {
    color: var(--accent-color);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.service-info {
    padding: 30px 20px 20px;
}

.service-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.service-card:hover .service-info h3 {
    color: var(--primary-light);
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- About Section --- */
.about {
    background-color: var(--bg-white);
}

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

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    background-color: rgba(230, 92, 0, 0.1); /* Matches industrial orange */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background-color: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box.accent {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.stat-box.accent .stat-number,
.stat-box.accent .stat-label {
    color: var(--bg-dark);
}

.stat-box.dark {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.stat-box.dark .stat-number,
.stat-box.dark .stat-label {
    color: var(--bg-white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: #cbd5e0;
    padding-top: 5rem;
}

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

.footer-logo .logo-text {
    color: var(--bg-white);
}

.footer-desc {
    margin: 1.5rem 0;
    font-size: 0.95rem;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--bg-white);
    font-size: 1.2rem;
    transition: background-color var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #a0aec0;
    font-size: 0.95rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #a0aec0;
}

.contact-info i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

.footer-bottom a {
    color: #a0aec0;
}

.footer-bottom a:hover {
    color: var(--bg-white);
}

/* --- Animations --- */
.fade-up, .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
}

.fade-up {
    animation: fadeUpAnim 0.8s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.2s; }
.fade-up.delay-2 { animation-delay: 0.4s; }
.fade-up.delay-3 { animation-delay: 0.6s; }

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

/* Scroll reveal classes (handled by JS) */
.reveal-up.active {
    animation: fadeUpAnim 0.8s ease forwards;
}
.reveal-left.active {
    animation: fadeInLeft 0.8s ease forwards;
}
.reveal-right.active {
    animation: fadeInRight 0.8s ease forwards;
}

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

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

.reveal-up.delay-1 { animation-delay: 0.2s; }
.reveal-up.delay-2 { animation-delay: 0.4s; }


/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .hero .title { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-links.active { left: 0; }
    .nav-cta { display: none; }
    
    .hero .title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { width: 100%; text-align: center; }
    
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Clients Section --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.client-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    height: 120px;
}

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

.client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all var(--transition-fast);
}

@media screen and (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .client-card {
        height: 100px;
    }
}

/* --- Why Choose Us Section --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--accent-color);
}

.why-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: transform var(--transition-fast);
}

.why-card:hover .why-icon {
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media screen and (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}
