/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Industrial Palette */
    --primary: #121212;
    /* Neutral Dark */
    --primary-light: #1E293B;
    /* Slate 800 */
    --secondary: #334155;
    /* Slate 700 */

    --accent: #0284C7;
    /* Vibrant Blue */
    --accent-glow: rgba(2, 132, 199, 0.5);

    --text-main: #F8FAFC;
    /* Off-white for dark backgrounds */
    --text-dark: #0F172A;
    /* Dark text for light backgrounds */
    --text-muted: #94A3B8;
    /* Slate 400 */

    --bg-body: #F8FAFC;
    /* Light Grey/Steel body */
    --bg-dark: #121212;
    /* Neutral Dark Gray */

    /* Requested Accents */
    --color-red: #EF4444;
    --color-blue: #3B82F6;
    --color-purple: #A855F7;
    --color-gray: #94A3B8;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);

    --header-height: 90px;
    /* Taller header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Cleaner, more modern geo-sans */
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    /* Wider container */
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, #38BDF8, #0284C7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    /* Slightly more rounded */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0369A1);
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Header */
.header {
    height: var(--header-height);
    background: rgba(11, 17, 32, 0.95);
    /* Nearly black navy */
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 120px;
    width: auto;
    /* Original colors restored - filter removed */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: #CBD5E1;
    /* Light Slate */
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Full screen */
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: flex-start;
    color: white;
    margin-top: 0;
    /* Override previous margin */
    padding-top: 100px;
}

/* Hero Background with High Contrast Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay + Image */
    background:
        linear-gradient(to right, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.7) 50%, rgba(11, 17, 32, 0.1) 100%),
        url('../../pictures/industria-6-Yg2yzKgyNlfazR15.avif');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #CBD5E1;
    /* Lighter slate for readability */
    max-width: 580px;
}

/* Services / Solutions */
.services-section {
    background-color: var(--bg-body);
    position: relative;
}

/* Section Title Styling */
.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-tagline {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

/* Cards - "Dark Glass" or "Industrial Card" */
.glass-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle Hover Effect (No Fill) */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    /* Rely on container border-top color */
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
}

/* Keep text colors stable on hover */
.glass-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 24px 0 16px;
    color: var(--primary);
}

.glass-card p {
    color: var(--secondary);
    margin-bottom: 24px;
}

.glass-card i {
    transition: transform 0.4s ease;
}

/* Only animate icon scale */
.glass-card:hover i {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #020617 0%, #0F172A 100%);
    color: white;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle glow at the top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--accent);
}

.footer p {
    color: #94A3B8;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 16px;
    transform: translateX(5px);
}

.footer-links i {
    color: var(--accent);
    font-size: 0.9em;
}

.footer-contact li {
    display: flex;
    gap: 16px;
    color: #CBD5E1;
    margin-bottom: 24px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.5rem;
    background: rgba(2, 132, 199, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer h4 {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--accent);
        display: inline-block;
        padding-bottom: 5px;
    }

    .footer-contact li {
        justify-content: center;
    }

    .header {
        height: 90px;
    }

    .logo-img {
        height: 80px;
        /* Increased for better visibility */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Accent Utilities */
.border-red::before {
    background: var(--color-red) !important;
}

.icon-red {
    color: var(--color-red) !important;
}

.bg-red-soft {
    background: rgba(239, 68, 68, 0.1) !important;
}

.border-blue::before {
    background: var(--color-blue) !important;
}

.icon-blue {
    color: var(--color-blue) !important;
}

.bg-blue-soft {
    background: rgba(59, 130, 246, 0.1) !important;
}

.border-purple::before {
    background: var(--color-purple) !important;
}

.icon-purple {
    color: var(--color-purple) !important;
}

.bg-purple-soft {
    background: rgba(168, 85, 247, 0.1) !important;
}

.border-gray::before {
    background: var(--color-gray) !important;
}

.icon-gray {
    color: var(--color-gray) !important;
}

.bg-gray-soft {
    background: rgba(148, 163, 184, 0.1) !important;
}

/* ========== GLOBAL SCROLL ANIMATIONS ========== */

/* Base state for animated elements - starts invisible and below */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale-in variant */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.animate-visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide from left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-left.animate-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-right.animate-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays for grids */
.stagger-1 {
    transition-delay: 0s;
}

.stagger-2 {
    transition-delay: 0.1s;
}

.stagger-3 {
    transition-delay: 0.2s;
}

.stagger-4 {
    transition-delay: 0.3s;
}

.stagger-5 {
    transition-delay: 0.4s;
}

.stagger-6 {
    transition-delay: 0.5s;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .animate-on-scroll,
    .animate-scale,
    .animate-slide-left,
    .animate-slide-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}