/* 
  Radheshyam Steel Works - Global Styles
  Version: 1.0
  Premium Industrial Aesthetic
*/

:root {
    /* Color System */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --text-heading: #111827;
    --text-body: #6B7280;
    --accent: #F97316;
    --accent-hover: #EA580C;
    --border: #E5E7EB;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing & Borders */
    --radius: 12px;
    --section-padding: 100px 0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

/* Components */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-heading);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 25px 0;
}

header.scrolled {
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

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

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 65px;
}

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

.nav-links a {
    font-weight: 600;
    color: #FFFFFF;
    /* White text for transparent header */
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--text-heading);
    /* Dark text for white header */
}

.nav-links a.active {
    color: var(--accent);
}

header.scrolled .nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
header.scrolled .nav-links a:hover {
    color: var(--accent);
}

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

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

.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #FFFFFF;
    /* White toggle for transparent header */
    z-index: 1001;
    transition: var(--transition);
}

header.scrolled .mobile-toggle {
    color: var(--text-heading);
    /* Dark toggle for white header */
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.4)), url('https://images.unsplash.com/photo-1504917595217-d4dc5f9c4739?auto=format&fit=crop&q=80&w=2000') center/cover;
    color: #fff;
    margin-top: 0;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 600;
    color: var(--text-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Card UI */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1/1;
}

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

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* Responsive */
@media (max-width: 992px) {
    header {
        background-color: #fff;
        padding: 15px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .mobile-toggle {
        display: block;
        color: var(--text-heading);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-heading);
        font-size: 1.1rem;
        width: 100%;
    }

    .hero {
        text-align: center;
        height: auto;
        padding: 150px 0 80px;
    }

    .hero-content {
        margin: 0 auto;
    }
}

/* Footer */
footer {
    background-color: var(--text-heading);
    color: #fff;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-standard {
    background-color: var(--text-heading);
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Separator from Footer */
}

.cta-standard h2 {
    color: #fff;
}

.footer-logo {
    height: 55px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
    object-fit: contain;
}

.footer-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.cta-standard .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-standard .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p {
    opacity: 0.7;
}

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

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Page Specific Styles --- */

/* Page Header Banner */
.page-header {
    padding: 150px 0 80px;
    background-color: var(--text-heading);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    z-index: 1;
}

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

/* Services Page - Alternating Rows */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.service-row:nth-child(even) {
    direction: rtl;
}

.service-row:nth-child(even) .service-content {
    direction: ltr;
}

.service-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
}

/* Products Page - Cards */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-img {
    height: 300px;
    width: 100%;
    overflow: hidden;
}

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

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

.product-info {
    padding: 30px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.product-info p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Projects Page - Items */
.project-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: center;
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even) .project-info {
    direction: ltr;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.project-gallery img:first-child {
    grid-column: span 2;
    height: 350px;
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-card {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1;
}

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

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

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius);
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent);
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-heading);
}

.form-control {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.trust-badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Feature List */
.feature-list {
    margin: 20px 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.feature-list li i {
    color: #10B981;
}

/* Process UI Improvement */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
    margin-top: 50px;
}

.process-step {
    position: relative;
    z-index: 2;
}

.step-num {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Owner Section */
.owner-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    background: #fff;
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.owner-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1.2;
}

.owner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Products & Projects Filter Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-body);
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

/* Enhanced Project Card */
.project-card-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}

.project-card-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(17, 24, 39, 0.9));
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

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

.project-card-container:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    color: #fff;
    margin-bottom: 5px;
}

.project-overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

/* Feature Highlights */
.feature-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-highlight-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.feature-highlight-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Custom Design CTA Section */
.custom-cta-block {
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: var(--radius);
    text-align: center;
    border-left: 5px solid var(--accent);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .owner-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .owner-grid {
        padding: 30px;
    }
}