:root {
    /* Colors */
    --primary-color: #0A192F;
    /* Deep Navy - Trust & Stability */
    --secondary-color: #FF4500;
    /* Safety Orange - Action & Industry */
    --accent-color: #E6E6E6;
    /* Steel Grey */
    --text-dark: #1A1A1A;
    --text-light: #F4F4F9;
    --bg-light: #FFFFFF;
    --bg-dark: #0f172a;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 5rem 2rem;
    --container-width: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Text Selection */
::selection {
    background-color: var(--secondary-color);
    color: white;
    text-shadow: none;
}

::-moz-selection {
    background-color: var(--secondary-color);
    color: white;
    text-shadow: none;
}

/* Global Interactive Transitions */
a,
button,
input,
select,
textarea {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

img:not(.nav-logo) {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

img:not(.nav-logo):hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e03e00;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.4);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-dark-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-dark-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Unique Quote Button */
.btn-quote {
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.btn-quote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: -2;
}

.btn-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-quote:hover {
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 12px 25px rgba(255, 69, 0, 0.4);
    transform: translateY(-4px);
}

.btn-quote:hover::before {
    left: 0;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.01rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    width: 100px;
    height: 100px;
    max-width: 15vw;
    max-height: 15vw;
    object-fit: contain;
    margin-right: 10px;
}

.company-name {
    font-size: clamp(14px, 3.5vw, 25px);
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    position: relative;
    padding-bottom: 4px;
}

/* Hover effect for unselected pages: Sliding underline */
.nav-links a:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.nav-links a:not(.active):hover::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffc107;
    opacity: 1;
}

/* Active page effect: Pulsing glowing underline */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffc107;
    animation: pulseGlow 2s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 2px #ffc107;
        opacity: 0.7;
    }

    100% {
        box-shadow: 0 0 8px #ffc107, 0 0 15px #ffc107;
        opacity: 1;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Ensure button stays on top when menu is open */
}

.mobile-menu-btn i {
    transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
    display: inline-block;
}

/* Page Headers */
.page-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 1rem;
    text-align: center;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.6)), url('./header .JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1,
.page-header h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
    animation: forgeStamp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, forgePulse 3s ease-in-out 1.2s infinite alternate;
    display: inline-block;
    opacity: 0;
}

@keyframes forgeStamp {
    0% {
        transform: scale(1.05) translateY(-10px);
        opacity: 0;
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    }
}

@keyframes forgePulse {
    0% {
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.6);
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Value Props / Features */
.features {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 69, 0, 0.05));
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Home Page Slider */
.slider-container {
    position: relative;
    width: 95%;
    max-width: 1400px;
    margin: 2rem auto;
    overflow: hidden;
    background-color: transparent;
    padding-bottom: 40px;
    /* Room for dots */
}

.slider-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px;
}

.slide {
    flex: 0 0 42%;
    /* Shows 2 full slides, and part of the 3rd is waiting */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.slide:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: white;
    color: var(--primary-color);
    border: none;
    width: 45px;
    height: 70px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background-color: white;
    color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #999;
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide {
        flex: 0 0 85%;
        /* 1 full slide, 2nd is waiting on mobile */
    }

    .slider-btn {
        width: 35px;
        height: 50px;
        font-size: 1.2rem;
        top: 45%;
    }

    .prev-btn {
        left: 0px;
    }

    .next-btn {
        right: 0px;
    }

    .slider-dots {
        bottom: 0px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 1rem 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(8px);
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8em;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-on-load {
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem 0;
        text-align: center;
        
        /* Mobile Menu Animation Styles */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.98);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        transform-origin: top;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.nav-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1,
    .page-header h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: center;
    }
}

/* TV and Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

.social-icon {
    color: white;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
}