/* 3D continuous rotation for Nashco logo */
.logo-nashco-3d {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: logo3DRotate 3.5s linear infinite;
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes logo3DRotate {
    0% {
        transform: perspective(600px) rotateY(0deg) rotateX(0deg);
    }

    100% {
        transform: perspective(600px) rotateY(360deg) rotateX(10deg);
    }
}

/* Nashco animated logo styles */
.logo-nashco {
    width: 180px;
    /* Adjust as needed */
    height: auto;
    opacity: 0;
    animation: logoFadeIn 1.2s ease-in-out forwards;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0 auto;
}

.logo-nashco:hover {
    transform: rotate(360deg) scale(1.08);
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo Video in Navbar */
 .logo-video-navbar,
 .logo,
 .logo-nashco-navbar-giant {
    height: 72px !important;
    max-height: 80px !important;
    max-width: 220px !important;
    width: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    border: none !important;
    outline: none !important;
    object-fit: contain !important;
    padding: 0 !important;
}

/* Hero Section Backgrounds */
.hero-automotive {
    background: url('Assets/images/automotive-hero.webp') center/cover no-repeat;
}

.hero-manufacturing {
    background: url('Assets/images/manufacturing-hero.webp') center/cover no-repeat;
}

.hero-trading {
    background: url('Assets/images/trading-hero.webp') center/cover no-repeat;
}

/* Hero Overlay */
.hero-overlay-dark {
    background: rgba(0, 0, 0, 0.45) !important;
}

/* Licensed By Image in Footer */
.licensed-by-img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    margin-bottom: 0.5rem;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Open+Sans:wght@400;600&family=Poppins:wght@400;600;700&display=swap');

:root {
    --bg-900: #0B0E17;
    /* primary deep */
    --bg-800: #0F1626;
    /* secondary deep */
    --surface-500: #4A5568;
    /* mid-tone cards */
    --accent: #00A3AD;
    /* teal-cyan */
    --white: #FFFFFF;
    --muted: #B7C9CC;
    /* subtle mid text */
    --shadow-accent: rgba(0, 163, 173, 0.08);
    --card-border: rgba(74, 85, 104, 0.12);
}

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    background: linear-gradient(180deg, var(--bg-900), var(--bg-800));
    color: var(--white);
    font-family: 'Montserrat', 'Open Sans', 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s, color 0.3s;
}

/* Header/Navbar */
.main-header {
    background: linear-gradient(180deg, rgba(11, 14, 23, 0.6), rgba(15, 22, 38, 0.36));
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    min-height: 72px;
}

.navbar-brand .logo {
    max-height: 56px;
    width: auto;
    vertical-align: middle;
    border-radius: 8px;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #F5F5F5;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
    padding: 0.25rem 0;
}

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

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

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

/* Hero Section */
.hero,
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero.parallax {
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 14, 23, 0.55), rgba(15, 22, 38, 0.55));
    pointer-events: none;
}

.hero h1,
.hero-title {
    font-size: clamp(1.6rem, 6vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.hero p,
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
}

.cta-btn {
    background: linear-gradient(90deg, var(--accent), #00D1D6);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px var(--shadow-accent);
    transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover,
.cta-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px var(--shadow-accent);
    opacity: 0.98;
}

/* Visual Tiles */
.visual-tiles {
    background: transparent;
    padding: 40px 0 20px 0;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tile {
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
    transition: transform 0.22s, box-shadow 0.22s;
}

.tile:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 48px var(--shadow-accent);
}

.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 14, 23, 0.18) 40%, rgba(0, 163, 173, 0.04) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.tile-overlay h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Service Cards */
.services {
    background: transparent;
    padding: 60px 0 40px 0;
}

.service-card {
    background: linear-gradient(135deg, rgba(15, 22, 38, 0.6), rgba(11, 14, 23, 0.6));
    border-radius: 14px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.36);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.22s, transform 0.22s;
}

.service-card:hover {
    box-shadow: 0 18px 48px var(--shadow-accent);
    transform: translateY(-6px) scale(1.02);
}

.service-card h4 {
    color: #F5F5F5;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}

.service-card p {
    color: #B0B0B0;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.learn-more {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.learn-more:hover,
.learn-more:focus {
    color: #8FF5F7;
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, var(--bg-800), rgba(11, 14, 23, 0.86));
    color: var(--muted);
    font-size: 0.95rem;
    padding: 32px 0 18px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.main-footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.main-footer a:hover,
.main-footer a:focus {
    color: var(--white);
}

/* Stock Gallery (if used) */
.stock-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.stock-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stock-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 40px var(--shadow-accent);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    margin-top: 0;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p,
li,
a,
span,
label {
    font-family: 'Open Sans', 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1200px) {
    .tiles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .tiles-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-section {
        padding: 40px 0 20px 0;
    }

    .services {
        padding: 40px 0 20px 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .main-footer {
        font-size: 0.85rem;
    }
}

/* Accessibility */
a:focus,
button:focus,
.cta-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}