
:root {
    /* Enhanced Color System */
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    --accent-color: #ec4899;
    --accent-secondary: #38bdf8;
    --accent-tertiary: #c084fc;
    --text-primary: #ffffff;
    --text-secondary: #f0f4ff;
    --text-muted: #c7d2fe;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.9);
    --border-color: rgba(99, 102, 241, 0.3);
    --glass-bg: rgba(30, 41, 59, 0.9);
    --glass-border: rgba(99, 102, 241, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-text: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.9) 25%, 
        rgba(56, 189, 248, 0.2) 50%, 
        rgba(129, 140, 248, 0.2) 75%, 
        rgba(15, 23, 42, 0.95) 100%);
    
    /* Spacing & Sizing */
    --section-padding: 6rem 0;
    --container-padding: 1.5rem;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    
    /* Enhanced Effects */
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --box-shadow-hover: 0 16px 48px rgba(56, 189, 248, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --backdrop-blur: blur(12px);
    
    /* Typography */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Poppins', var(--font-base);
    --text-scale: clamp(1rem, 0.5rem + 0.5vw, 1.25rem);
}

/* Enhanced Service Card with Video Background */
.service-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--box-shadow);
}

/* Video Container */
.service-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.service-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 50%, 
        rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
}

/* Service Content */
.service-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.service-card:hover .service-video {
    opacity: 0.5;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-secondary);
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.service-card:hover .service-icon::before {
    left: 100%;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Service Typography */
.service-card h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: var(--text-scale);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Service Features */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-features li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-card:hover .service-features li {
    color: var(--text-secondary);
    transform: translateX(5px);
}

.service-card:hover .service-features li::before {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body with Background Image */
body {
    font-family: var(--font-base);
    color: var(--text-primary);
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background: 
        linear-gradient(rgba(9, 14, 26, 0.95), rgba(6, 10, 19, 0.98)),
        url('../images/portfolio-img6.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

p, li, .lead {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

a:not(.btn) {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: none;
}

a:not(.btn):hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    text-shadow: none;
    border: 2px solid transparent;
}

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

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

.btn-primary:hover,
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header - Clean and Minimal */
.header-logo {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1000;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Link */
.header-logo > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    gap: 1.5rem;
}

/* Logo Image */
.logo-img {
    height: 60px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Brand Name */
.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 6rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Services Section with Video */
.services-section {
    position: relative;
    padding: var(--section-padding);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

/* Services Video Background */
.services-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Services Video Overlay */
.services-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.8) 0%, 
        rgba(30, 41, 59, 0.7) 50%, 
        rgba(15, 23, 42, 0.9) 100%);
    z-index: -1;
}

/* Responsive Adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1200px) {
    .services-container {
        max-width: 900px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .services-section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        padding: 0 0.5rem;
    }
    
    .automation-section .row {
        flex-direction: column-reverse;
    }
    
    .automation-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .header-logo {
        padding: 0.75rem 1rem;
    }
    
    .services-section {
        padding: 3rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
}

/* Section Header */
.section-header {
    margin: 6rem 0 3rem;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.95));
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.2);
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-text);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 auto 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    text-align: center;
    max-width: 900px;
    letter-spacing: -0.5px;
    padding: 0 1rem;
}

.section-subtitle {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1.5rem auto 3rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 400;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
    z-index: 1;
}

/* Decorative Elements */
.section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

/* Cards Grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 1400px;
    padding: 0 1rem;
    width: 100%;
}

/* Enhanced Card Styles */
.service-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-text);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(56, 189, 248, 0.5);
}

.service-card:hover::before {
    height: 100%;
    opacity: 0.15;
}

/* Enhanced Service Icons */
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.service-card:hover .service-icon {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

/* Enhanced Service Typography */
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

.service-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Card Content */
.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-light);
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    z-index: 2;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.service-features {
    margin-bottom: 1.5rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-color);
}

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

/* n8n Automation Section */
.automation-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.automation-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.automation-section .lead {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.automation-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.automation-illustration {
    position: relative;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.automation-illustration:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.automation-illustration img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
}

/* Industry Section */
.industry-solutions {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.industry-solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.industry-solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(76, 201, 240, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(63, 55, 201, 0.1) 0%, transparent 25%);
    z-index: 0;
}

.industry-solutions .section-title,
.industry-solutions .section-subtitle {
    color: white;
    position: relative;
    z-index: 1;
}

.industry-solutions .section-title::after {
    background: var(--gradient-accent);
}

.industry-solutions .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.industry-item {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.industry-item:hover {
    transform: translateY(-5px);
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.industry-item i {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: transparent;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
}

.industry-item h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.industry-item p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.industry-item .learn-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.industry-item .learn-more i {
    font-size: 1rem;
    margin: 0 0 0 0.5rem;
    transition: transform 0.3s ease;
}

.industry-item:hover .learn-more i {
    transform: translateX(5px);
}

.industry-item .learn-more:hover {
    color: white;
    text-decoration: none;
}

/* Modern CTA Section */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -5%;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    z-index: 0;
    animation: gradientPulse 15s ease infinite alternate;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.cta-content p {
    font-size: 1.25rem;
    margin: 0 auto 3rem;
    max-width: 600px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
    color: var(--secondary-color);
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Height of fixed navbar */
}

/* Navbar Scroll Effect */
.navbar {
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .services-hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 6rem 0;
        --container-padding: 2rem;
    }
    
    .services-section {
        padding: 5rem 0;
    }
    
    .section-header {
        margin-bottom: 3.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .services-container {
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.75rem;
    }
    
    .automation-section .col-lg-6:first-child {
        margin-bottom: 3rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 4rem 0;
        --container-padding: 1.25rem;
    }
    
    .section-header {
        margin: 4rem 0 3rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .services-container,
    .industry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .industry-item {
        padding: 1.75rem 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .services-hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .industry-solutions {
        padding: 4rem 0;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Video Backgrounds */
@media (max-width: 768px) {
    .service-video-container {
        display: none;
    }
    
    .service-card {
        background: var(--glass-bg);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
    }
    
    .service-content {
        position: static;
        z-index: auto;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
}

/* Video Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    .service-video {
        animation: none;
    }
    
    .service-card:hover .service-video {
        opacity: 0.3;
    }
    
    .service-card:hover {
        transform: none;
    }
}
