/* ===================================================
   KRISHNA METAL INDUSTRIES — style.css (LIGHT MODE)
   Colors: Teal #008080 | Orange #E87722 | White bg
=================================================== */

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

/* ===== CSS VARIABLES ===== */
:root {
    --teal: #008080;
    --teal-light: #00a0a0;
    --teal-dark: #006666;
    --teal-glow: rgba(0, 128, 128, 0.15);
    --orange: #E87722;
    --orange-light: #ff8c3a;
    --orange-glow: rgba(232, 119, 34, 0.3);

    /* LIGHT MODE BACKGROUNDS */
    --bg-white: #ffffff;
    --bg-light: #f5f7f7;
    --bg-mid: #eef3f3;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f8f8;

    /* BORDERS */
    --border: rgba(0, 128, 128, 0.15);
    --border-hover: rgba(0, 128, 128, 0.5);

    /* TEXT */
    --text-dark: #0d1f1f;
    --text-mid: #2a4040;
    --text-grey: #5a7070;
    --text-light: #8aabab;

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
}

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

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 65px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.section-title h2 span {
    color: var(--teal);
}

.section-title p {
    color: var(--text-grey);
    font-size: 16px;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

.section-title .gold-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--teal));
    margin: 18px auto 0;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), #d4641a);
    color: #ffffff;
    padding: 14px 38px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 2px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--orange-glow);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--teal);
    color: var(--teal);
    padding: 12px 38px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 2px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--teal);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--teal-glow);
}

.center {
    text-align: center;
    margin-top: 55px;
}

/* ===== NAVBAR ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,128,128,0.15);
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(0,128,128,0.06);
}

header.scrolled {
    padding: 8px 0;
    border-bottom-color: var(--teal);
    box-shadow: 0 4px 30px rgba(0, 128, 128, 0.12);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--text-mid);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--orange), var(--teal));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal);
}

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

/* ===== HERO — stays dark, looks best with image ===== */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(160deg, rgba(0,0,0,0.88) 0%, rgba(0,30,30,0.78) 50%, rgba(0,0,0,0.88) 100%),
        url('../images/Home-Page.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 40px;
    width: 120px;
    height: 120px;
    border-top: 1px solid rgba(0,128,128,0.5);
    border-left: 1px solid rgba(0,128,128,0.5);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 80px;
    right: 40px;
    width: 120px;
    height: 120px;
    border-bottom: 1px solid rgba(232,119,34,0.5);
    border-right: 1px solid rgba(232,119,34,0.5);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 128, 128, 0.12);
    border: 1px solid rgba(0, 128, 128, 0.35);
    color: #00d0d0;
    padding: 8px 22px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--orange);
    border-radius: 50%;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 68px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-content h1 span {
    color: var(--teal-light);
    display: block;
}

.hero-content p {
    font-size: 16px;
    color: #c0d8d8;
    max-width: 560px;
    margin: 0 auto 45px;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero fade into white */
.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, var(--bg-white));
    pointer-events: none;
}

/* ===== ABOUT INTRO ===== */
.about-intro {
    padding: 110px 20px;
    background-color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,128,128,0.05) 0%, transparent 65%);
    pointer-events: none;
}

.about-intro::after {
    content: '';
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(transparent, var(--teal-light), transparent);
    pointer-events: none;
}

.about-intro h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.about-intro p {
    font-size: 17px;
    color: var(--text-grey);
    max-width: 820px;
    margin: 0 auto;
    line-height: 2.1;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ===== STATS ===== */
.stats {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal), var(--teal-light));
}

.stats::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 58px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 2px;
}

.stat-item p {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== INDUSTRIES ===== */
.industries {
    padding: 110px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.industries-bg {
    position: absolute;
    inset: 0;
    background: url('../images/BrasBG.jpg') center/cover no-repeat;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: 0;
}

.industries-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(240, 248, 248, 0.88);
}

.industries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    z-index: 1;
}

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

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.industry-item {
    background: var(--bg-card);
    border: 1px solid rgba(0,128,128,0.12);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 15px rgba(0,128,128,0.06);
}

.industry-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.industry-item:hover::after {
    transform: scaleX(1);
}

.industry-item:hover {
    border-color: var(--teal);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 128, 128, 0.15);
}

.industry-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: brightness(0.9) saturate(0.95);
    transition: all 0.35s ease;
}

.industry-item:hover img {
    filter: brightness(1.05) saturate(1.1);
    transform: scale(1.03);
}

.industry-item p {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px;
    background: var(--bg-card);
}

/* ===== PRODUCTS PREVIEW ===== */
.products-preview {
    padding: 110px 20px;
    background-color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-preview::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0,128,128,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,128,128,0.12);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.35s ease;
    position: relative;
    text-align: left;
    box-shadow: 0 2px 15px rgba(0,128,128,0.06);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--orange), var(--teal));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--teal);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 128, 128, 0.15);
}

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

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

.product-card h4 {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(0,128,128,0.1);
}

/* ===== WHY CHOOSE US ===== */
.why-us {
    padding: 110px 20px;
    background-color: var(--bg-mid);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 50px,
        rgba(0,128,128,0.025) 50px,
        rgba(0,128,128,0.025) 100px
    );
    pointer-events: none;
}

.why-us::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why-item {
    background: var(--bg-card);
    border: 1px solid rgba(0,128,128,0.12);
    border-radius: 6px;
    padding: 35px 25px;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,128,128,0.06);
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--teal-light) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-item:hover::before {
    opacity: 1;
}

.why-item:hover {
    border-color: var(--teal);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 128, 128, 0.15);
    background: var(--bg-card-hover);
}

.why-item h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--text-dark);
    padding: 80px 20px 25px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), var(--orange), var(--teal), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 55px;
}

.footer-col img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-col > p {
    color: #8aabab;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 10px;
    font-weight: 300;
}

.footer-col > p strong {
    color: #c0d8d8;
    font-weight: 600;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--orange), var(--teal));
}

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

.footer-col ul li a {
    color: #8aabab;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
}

.footer-col ul li a::before {
    content: '—';
    color: var(--teal);
    font-size: 10px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-col ul li a:hover::before {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(0,128,128,0.15);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #3a5555;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid rgba(0,128,128,0.15);
    border-top: 2px solid var(--teal);
    border-radius: 4px;
    min-width: 200px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

/* Small arrow on top of dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-left: 1px solid rgba(0,128,128,0.15);
    border-top: 1px solid rgba(0,128,128,0.15);
    transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0,128,128,0.08);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-mid) !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.dropdown-menu li a:hover {
    color: var(--teal) !important;
    background: rgba(0,128,128,0.05);
    padding-left: 25px;
}