/* ============================================
   OttoTractions - Main Stylesheet
   Color Theme: Orange (#E8612D) from logo
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #E8612D;
    --primary-light: #F4A03E;
    --primary-dark: #C94E1E;
    --primary-glow: rgba(232, 97, 45, 0.3);
    --secondary: #1B2A4A;
    --dark: #0D1117;
    --dark-2: #161B22;
    --dark-3: #1C2333;
    --dark-4: #21293A;
    --text: #C9D1D9;
    --text-light: #8B949E;
    --text-white: #F0F6FC;
    --white: #FFFFFF;
    --green: #4CAF50;
    --blue: #2196F3;
    --red: #F44336;
    --gradient: linear-gradient(135deg, #E8612D, #F4A03E);
    --gradient-dark: linear-gradient(135deg, #0D1117, #1B2A4A);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-primary: 0 4px 24px rgba(232, 97, 45, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Preloader === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.bolt-loader {
    width: 60px;
    height: 80px;
    margin: 0 auto 20px;
    animation: pulse-bolt 1.5s ease-in-out infinite;
}

.bolt-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes pulse-bolt {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(232, 97, 45, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-white);
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(232, 97, 45, 0.08);
}

.nav-link i {
    font-size: 0.6rem;
    transition: var(--transition);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.dropdown-large {
    min-width: 300px;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text);
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: rgba(232, 97, 45, 0.1);
    color: var(--primary);
}

.dropdown-menu li a i {
    font-size: 0.85rem;
    width: 20px;
    color: var(--primary);
}

.nav-cta {
    flex-shrink: 0;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232, 97, 45, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.energy-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(232, 97, 45, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 97, 45, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(232, 97, 45, 0.1);
    border: 1px solid rgba(232, 97, 45, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    position: relative;
    width: 450px;
    height: 450px;
}

.energy-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(232, 97, 45, 0.15);
}

.ring-1 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation: ring-pulse 3s ease-in-out infinite;
}

.ring-2 {
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    animation: ring-pulse 3s ease-in-out infinite 0.5s;
}

.ring-3 {
    width: 440px;
    height: 440px;
    margin: -220px 0 0 -220px;
    animation: ring-pulse 3s ease-in-out infinite 1s;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.03); }
}

.hero-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 120px;
    filter: drop-shadow(0 0 40px var(--primary-glow));
    animation: float 4s ease-in-out infinite;
}

.hero-bolt {
    width: 100%;
    height: 100%;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

.orbit-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--dark-3);
    border: 1px solid rgba(232, 97, 45, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    animation: orbit-float 6s ease-in-out infinite;
}

.orbit-1 { top: 5%; left: 45%; animation-delay: 0s; }
.orbit-2 { top: 20%; right: 5%; animation-delay: 1s; }
.orbit-3 { top: 55%; right: 2%; animation-delay: 2s; }
.orbit-4 { bottom: 8%; right: 20%; animation-delay: 3s; }
.orbit-5 { bottom: 15%; left: 10%; animation-delay: 4s; }
.orbit-6 { top: 25%; left: 2%; animation-delay: 5s; }

@keyframes orbit-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    margin-left: -2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* === Section Headers === */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 97, 45, 0.1);
    border: 1px solid rgba(232, 97, 45, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 97, 45, 0.15);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    margin-bottom: 20px;
}

.icon-bg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(232, 97, 45, 0.1);
    color: var(--primary);
    transition: var(--transition);
}

.icon-bg.green { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.icon-bg.blue { background: rgba(33, 150, 243, 0.1); color: #2196F3; }
.icon-bg.red { background: rgba(244, 67, 54, 0.1); color: #F44336; }
.icon-bg.earth { background: rgba(139, 195, 74, 0.1); color: #8BC34A; }
.icon-bg.smoke { background: rgba(158, 158, 158, 0.1); color: #9E9E9E; }
.icon-bg.chart { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.icon-bg.tech { background: rgba(0, 188, 212, 0.1); color: #00BCD4; }

.service-card:hover .icon-bg {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.service-card-link i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.service-card:hover .service-card-link i {
    transform: translateX(4px);
}

/* === Accreditation Section === */
.accreditation-section {
    background: var(--dark-2);
}

.accreditation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.accreditation-content .section-tag {
    display: inline-block;
}

.accreditation-content .section-title {
    text-align: left;
}

.accreditation-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.8;
}

.accreditation-list {
    margin-bottom: 32px;
}

.accreditation-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text);
}

.accreditation-list li i {
    color: var(--green);
    font-size: 1rem;
}

.accreditation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.cert-badge-large {
    position: relative;
    width: 200px;
    height: 200px;
}

.cert-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(232, 97, 45, 0.2);
    animation: cert-spin 20s linear infinite;
    border-top-color: var(--primary);
}

@keyframes cert-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cert-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cert-inner i {
    font-size: 2.5rem;
    color: var(--primary);
}

.cert-inner span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
}

.cert-inner small {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.floating-badge i {
    color: var(--primary);
}

.fb-1 { top: 10%; right: 0; }
.fb-2 { bottom: 25%; left: -20px; }
.fb-3 { bottom: 5%; right: 10%; }

/* === Industries Section === */
.industries-section {
    background: var(--dark);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.industry-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 97, 45, 0.15);
    box-shadow: var(--shadow-primary);
}

.industry-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(232, 97, 45, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}

.industry-card:hover .industry-icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.industry-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* === IoT Section === */
.iot-section {
    background: var(--dark-2);
    overflow: hidden;
}

.iot-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.iot-dashboard-mockup {
    background: var(--dark-3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--dark-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dashboard-dots span:nth-child(1) { background: #F44336; }
.dashboard-dots span:nth-child(2) { background: #FFC107; }
.dashboard-dots span:nth-child(3) { background: #4CAF50; }

.dashboard-body {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.dash-card {
    background: var(--dark-4);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.dash-card-header i {
    color: var(--primary);
}

.dash-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.dash-value small {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.mini-chart {
    width: 100%;
    height: 40px;
    margin-bottom: 8px;
}

.dash-trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.dash-trend.down {
    color: var(--green);
}

.dash-trend.neutral {
    color: var(--blue);
}

.dash-gauge {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gauge-fill {
    height: 100%;
    width: var(--fill);
    background: var(--gradient);
    border-radius: 4px;
    animation: fill-grow 2s ease-out;
}

.dash-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bar-fill {
    height: 100%;
    width: var(--fill);
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    animation: fill-grow 2s ease-out;
}

@keyframes fill-grow {
    from { width: 0; }
}

.iot-content .section-tag {
    display: inline-block;
}

.iot-content .section-title {
    text-align: left;
}

.iot-content > p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.iot-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.iot-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.iot-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(232, 97, 45, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.iot-feature h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.iot-feature p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* === Carbon Section === */
.carbon-section {
    background: var(--dark);
}

.carbon-wrapper {
    background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.carbon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(232, 97, 45, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.carbon-content {
    position: relative;
    z-index: 1;
}

.carbon-content .section-tag {
    display: inline-block;
}

.carbon-content .section-title {
    margin-bottom: 16px;
}

.carbon-content > p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.carbon-metrics {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.carbon-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.metric-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.metric-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.metric-progress {
    transition: stroke-dashoffset 2s ease-out;
}

.metric-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* === Process Section === */
.process-section {
    background: var(--dark-2);
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 40px;
}

.process-line {
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    opacity: 0.3;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.step-content {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    transition: var(--transition);
}

.step-content:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 97, 45, 0.15);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(232, 97, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.1rem;
    color: var(--primary);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* === Case Studies Preview === */
.case-studies-preview {
    background: var(--dark);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.case-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 97, 45, 0.1);
}

.case-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-placeholder {
    font-size: 3rem;
    color: rgba(232, 97, 45, 0.2);
}

.case-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.case-tag {
    padding: 4px 12px;
    background: rgba(232, 97, 45, 0.9);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-content {
    padding: 24px;
}

.case-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.case-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.case-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.case-stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.case-stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.case-link i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.case-card:hover .case-link i {
    transform: translateX(4px);
}

/* === Testimonials === */
.testimonials-section {
    background: var(--dark-2);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 48px;
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xl);
    text-align: center;
}

.testimonial-stars {
    margin-bottom: 24px;
    color: #FFC107;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(232, 97, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.testimonial-author strong {
    display: block;
    color: var(--text-white);
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark-4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* === CTA Section === */
.cta-section {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content h2 .text-gradient {
    -webkit-text-fill-color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 8px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* === Footer === */
.footer {
    background: var(--dark);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    margin-top: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    letter-spacing: 2px;
    display: block;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px !important;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 0.9rem;
    min-width: 16px;
}

.footer-contact li span,
.footer-contact li a {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-light);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.82rem;
    color: var(--text-light);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(232, 97, 45, 0.4);
}

/* ============================================
   Service Detail Pages
   ============================================ */

/* --- Service Hero --- */
.service-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 80px;
    background: var(--dark);
    overflow: hidden;
    text-align: center;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-hero-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2.2rem;
    color: var(--white);
    box-shadow: 0 8px 40px rgba(232, 97, 45, 0.35);
}

.service-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.service-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-hero-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.service-hero-breadcrumb a:hover {
    color: var(--primary);
}

.service-hero-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.service-hero-breadcrumb span {
    color: var(--primary);
}

/* --- Service Overview --- */
.service-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.service-overview-content .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.service-overview-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.service-overview-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.service-overview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-large {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    box-shadow: 0 12px 50px rgba(232, 97, 45, 0.3);
    position: relative;
    z-index: 2;
}

.icon-circle.green { background: linear-gradient(135deg, #4CAF50, #81C784); box-shadow: 0 12px 50px rgba(76, 175, 80, 0.3); }
.icon-circle.blue { background: linear-gradient(135deg, #2196F3, #64B5F6); box-shadow: 0 12px 50px rgba(33, 150, 243, 0.3); }
.icon-circle.red { background: linear-gradient(135deg, #F44336, #E57373); box-shadow: 0 12px 50px rgba(244, 67, 54, 0.3); }
.icon-circle.earth { background: linear-gradient(135deg, #26A69A, #4DB6AC); box-shadow: 0 12px 50px rgba(38, 166, 154, 0.3); }
.icon-circle.smoke { background: linear-gradient(135deg, #78909C, #B0BEC5); box-shadow: 0 12px 50px rgba(120, 144, 156, 0.3); }
.icon-circle.chart { background: linear-gradient(135deg, #7E57C2, #B39DDB); box-shadow: 0 12px 50px rgba(126, 87, 194, 0.3); }

.icon-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(232, 97, 45, 0.25);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Service Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: rgba(232, 97, 45, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(232, 97, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Service Process --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step-card {
    position: relative;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 36px 24px 28px;
    text-align: center;
    transition: var(--transition);
}

.process-step-card:hover {
    border-color: rgba(232, 97, 45, 0.3);
    transform: translateY(-4px);
}

.step-number-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(232, 97, 45, 0.3);
}

.process-step-card .step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(232, 97, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.process-step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.process-step-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- Service Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: rgba(232, 97, 45, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(232, 97, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Related Services --- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.related-card:hover {
    border-color: rgba(232, 97, 45, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.related-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(232, 97, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.related-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
