/* FERWELD Design System - Modern Dark */
:root {
    /* Colors */
    --primary-blue: #1F497D;
    --primary-blue-light: #306ba8;
    --metallic-grey: #94a3b8;
    --accent-orange: #F28C28;

    /* Gradients */
    --bg-gradient: radial-gradient(circle at top right, #1a2236 0%, #121212 60%);
    --card-gradient: linear-gradient(145deg, #1e2025 0%, #16181d 100%);
    --primary-gradient: linear-gradient(135deg, #1F497D 0%, #16365f 100%);
    --accent-gradient: linear-gradient(135deg, #F28C28 0%, #d6761b 100%);

    /* Backgrounds */
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    /* Fallback */

    /* Text */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Modern UI */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glow-blue: 0 0 20px rgba(31, 73, 125, 0.3);
    --glow-orange: 0 0 20px rgba(242, 140, 40, 0.4);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--dark-bg);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    /* Parallax-ish static bg */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.bg-light {
    background: transparent;
}

/* Use body gradient */
.bg-dark {
    background-color: rgba(0, 0, 0, 0.4);
    /* Darker for better contrast */
}

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

/* Modern Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    /* Pill shape */
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 140, 40, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Glass Header */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

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

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

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.lang-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color 0.3s;
}

.lang-link:hover,
.lang-link.active {
    color: var(--accent-orange);
}

.lang-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Modern Hero */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-image: linear-gradient(to bottom, rgba(18, 18, 18, 0.3) 0%, rgba(18, 18, 18, 0.9) 100%), url('assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(180deg, #FFFFFF 0%, #aab7c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    max-width: 600px;
}

/* Modern Glass Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.service-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.5;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
    height: 4px;
    background: var(--accent-gradient);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Features (Why Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    transition: 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background-color: #080b12;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--spacing-lg);
}

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

.footer h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: #121212;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }

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

/* Components moved from HTML */
.alert-box {
    background: rgba(31, 73, 125, 0.2);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #cbd5e1;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-img-placeholder {
    width: 100%;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Dark placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gallery-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #2d2d2d;
    margin-top: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Other Pages Specifics */
.service-detail {
    background: var(--glass-bg);
    border: var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.05);
}

.gallery-item {
    background: transparent;
    border: var(--glass-border);
    border-radius: var(--radius-md);
}

.gallery-content {
    background: var(--glass-bg);
}