﻿/* ============================================
   INSTRUMENTATION MASTERS - ULTRA MODERN CSS
   Premium Design System
   ============================================ */

/* ============ IMPORTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    /* Primary Brand Colors */
    --primary: hsl(210, 100%, 50%);
    --primary-dark: hsl(210, 100%, 40%);
    --primary-light: hsl(210, 100%, 60%);
    --primary-gradient: linear-gradient(135deg, hsl(210, 100%, 50%), hsl(190, 90%, 50%));

    /* Accent Colors */
    --accent-orange: hsl(30, 100%, 55%);
    --accent-cyan: hsl(180, 90%, 50%);
    --accent-purple: hsl(270, 80%, 60%);
    --accent-green: hsl(140, 70%, 50%);

    /* Neutral Colors */
    --dark: hsl(220, 20%, 10%);
    --dark-secondary: hsl(220, 18%, 15%);
    --dark-tertiary: hsl(220, 16%, 20%);
    --gray: hsl(220, 10%, 50%);
    --light-gray: hsl(220, 10%, 90%);
    --white: hsl(0, 0%, 100%);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(210, 100%, 50%) 0%, hsl(270, 80%, 60%) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Borders & Shadows */
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(33, 150, 243, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(156, 39, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(0, 188, 212, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundPulse 15s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ============ TYPOGRAPHY ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(20deg);
    }
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--white);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--primary-light);
}

p {
    font-size: 1.125rem;
    color: var(--light-gray);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

/* ============ HEADER & NAVIGATION ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 20, 30, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(15, 20, 30, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition-base);
}

.logo-svg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transition: var(--transition-base);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.9));
        transform: scale(1.05);
    }
}

.logo:hover .logo-svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 1));
}

/* Legacy logo-icon support */
.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--light-gray);
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.75rem;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(33, 150, 243, 0.5);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ============ HERO SECTION ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 2rem 4rem;
    background:
        linear-gradient(135deg, rgba(10, 15, 25, 0.7) 0%, rgba(15, 25, 40, 0.8) 100%),
        url('../images/hero-bg-new.png') center/cover no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(33, 150, 243, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(156, 39, 176, 0.12) 0%, transparent 40%);
    animation: heroRotate 20s linear infinite;
}

@keyframes heroRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(33, 150, 243, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    animation: fadeIn 1s ease 0.8s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    background: rgba(15, 20, 30, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    left: -10%;
    animation-delay: 1s;
}

.floating-card h4 {
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.floating-card p {
    font-size: 0.875rem;
    margin: 0;
}

/* ============ SERVICES GRID ============ */
.section {
    padding: var(--spacing-xl) 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    color: var(--accent-cyan);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--gradient-card);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

/* Hide broken images until they're saved */
/* CSS rule removed to allow SVG images */

/* Also hide if image fails to load */
.service-card-image {
    display: block;
}

.service-card-image:not([src]),
.service-card-image[src=""] {
    display: none;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--accent-cyan);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    gap: 1rem;
}

/* ============ STATS SECTION ============ */
.stats-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--light-gray);
    font-weight: 500;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--light-gray);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--gray);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 20, 30, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============ UTILITIES ============ */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

/* ============ ANIMATIONS ============ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    background-size: 1000px 100%;
}

/* ============ SERVICE PAGES UTILITIES ============ */

/* Replaces style="min-height: 60vh; padding-top: 150px;" */
.hero-service {
    min-height: 60vh;
    padding-top: 150px;
}

/* Replaces style="grid-template-columns: 1fr;" */
.hero-content-single {
    grid-template-columns: 1fr;
}

/* Replaces style="background: rgba(255, 255, 255, 0.02);" */
.section-darker {
    background: rgba(255, 255, 255, 0.02);
}

/* Replaces style="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));" */
.grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Replaces style="justify-content: center;" */
.hero-buttons-center {
    justify-content: center;
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 2rem;
}

/* ============ CONTACT PAGE STYLES ============ */
.contact-form {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: 100%;
}

.contact-info-card h3 {
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--accent-cyan);
}

.contact-text p {
    font-size: 0.9rem;
    margin: 0;
}

/* ============ GRID UTILITIES ============ */
.grid-2-cols {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-small-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-medium-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-security-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}

/* ============ SERVICE HERO IMAGES (Realistic Industrial Photography) ============ */
.hero-instrumentation {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Industrial pressure gauges and measurement instruments */
}

.hero-calibration {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Laboratory calibration equipment and precision instruments */
}

.hero-automation {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Industrial automation control room */
}

.hero-electrical {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Electrical panels and power distribution */
}

.hero-solar {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Solar panels installation */
}

.hero-security {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Security cameras and surveillance systems */
}

.hero-maintenance {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Industrial maintenance and repair work */
}

.hero-trading {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920&h=1080&fit=crop&q=90') center/cover no-repeat;
    /* Industrial warehouse and equipment storage */
}
/* ============ UPDATED VISUALS (LOCAL ASSETS) ============ */
/* Overriding Unsplash URLs with High-Res Generated Images */

.hero-instrumentation {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-instrumentation-new.png') center/cover no-repeat !important;
}

.hero-calibration {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-calibration-new.png') center/cover no-repeat !important;
}

.hero-automation {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-automation-new.png') center/cover no-repeat !important;
}

.hero-electrical {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-electrical-new.png') center/cover no-repeat !important;
}

.hero-solar {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-solar-new.png') center/cover no-repeat !important;
}

.hero-security {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-security-new.png') center/cover no-repeat !important;
}

.hero-maintenance {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-maintenance-new.png') center/cover no-repeat !important;
}

.hero-trading {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8) 0%, rgba(15, 25, 40, 0.9) 100%),
        url('../images/service-trading-new.png') center/cover no-repeat !important;
}

/* ============ HERO SLIDER (REVOLVING) ============ */
.hero {
    position: relative;
    overflow: hidden;
    background: #0f1928; /* Fallback */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05); /* Subtle Zoom Effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.7) 0%, rgba(15, 25, 40, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    z-index: 5 !important;
    position: relative;
}

/* ============ CENTERED HERO LAYOUT (REMOVED VISUALS) ============ */
.hero-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px !important;
    margin: 0 auto;
    grid-template-columns: 1fr !important; /* Override grid */
}

.hero-text {
    width: 100%;
    margin-bottom: 0;
}

.hero-buttons {
    justify-content: center;
    margin-top: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem); /* Make Title Bigger */
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Better readability on slider */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(0, 20, 40, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-description {
    font-size: 1.25rem;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ============ NEW LOGO STYLES ============ */
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Make it circular */
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6); /* Electric Blue Glow */
    transition: all 0.5s ease;
    animation: logoGlowPulse 3s infinite alternate;
}

@keyframes logoGlowPulse {
    0% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.4); transform: scale(1); }
    100% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.9); transform: scale(1.05); }
}

.logo-img:hover {
    transform: rotate(360deg) scale(1.1); /* Dynamic Spin */
    box-shadow: 0 0 40px rgba(0, 212, 255, 1);
    border-color: #fff;
}

/* ============ ENHANCED HERO HEADING ============ */
.hero h1 {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* Gradient Text Effect */
    background: linear-gradient(90deg, #ffffff 0%, #00d4ff 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Animation */
    animation: textShine 4s linear infinite;
    
    /* Backup Shadow for legibility if gradient fails */
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
    
    margin-bottom: 2rem !important;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: #00d4ff !important;
}

/* ============ OPTIMIZED MOBILE LAYOUT ============ */
@media (max-width: 480px) {
    /* Compress nice big header for small screens */
    .hero h1 {
        font-size: 1.8rem !important; 
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    /* Ensure subtitle fits */
    .hero-subtitle {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem;
        white-space: normal; /* Allow wrapping */
    }
    /* Ensure padding isn't overwhelming */
    .hero-content {
        padding: 0 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
