
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gray-900); /* Darker neutral base */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Stronger overlay for better text readability */
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.65) 0%,    /* Dark slate with more opacity */
        rgba(0, 61, 153, 0.75) 100%   /* Your primary-dark with 75% opacity */
    );
    z-index: 2;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/hero-industrial-bg.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-5xl) var(--space-lg) 0;
    color: var(--white);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-company-intro {
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-company-name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.hero-company-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--secondary);
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-2xl);
    max-width: 500px;
    margin: 0 auto var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.9s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-xs);
    color: var(--secondary);
    min-width: 3.5rem;        /* NEW - prevents box resize */
    display: inline-block;     /* NEW - allows min-width to work */
}

.stat-number-percent::after {
    content: "%";
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    animation: fadeInUp 0.8s ease 1.1s both;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--white);
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
}

.text-highlight {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details span {
    font-size: 0.875rem;
    line-height: 1.4;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   TECHNOLOGIES SECTION
   ======================================== */

.technologies {
    padding: var(--space-5xl) 0;
    background: var(--gray-50);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
}

.tech-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.tech-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.tech-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    user-select: none;
    pointer-events: none;
}

.tech-specs span {
    padding: var(--space-xs) var(--space-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    user-select: none;
}

.tech-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-3xl);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-view-all i {
    transition: transform var(--transition-fast);
}

.btn-view-all:hover i {
    transform: translateX(4px);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .btn-view-all {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PROCESS SECTION
   ======================================== */

.process {
    padding: var(--space-5xl) 0;
}

.process-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.process-step {
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--gray-300); /* Add left border accent */
    transition: all var(--transition-base);
    cursor: pointer;
}

.process-step.active {
    background: var(--white);
    border-left-color: var(--primary); /* Blue accent when active */
    box-shadow: var(--shadow-md);
    transform: translateX(4px); /* Slight shift on active */
}

.process-step:hover {
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.process-step.active .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease;
}

.step-content p {
    opacity: 0.8;
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
}

.process-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.process-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.process-image.active {
    opacity: 1;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   INDUSTRIES SECTION
   ======================================== */

.industries {
    padding: var(--space-5xl) 0;
    background: var(--gray-900);
    color: var(--white);
}

.industries .section-title,
.industries .section-subtitle {
    color: var(--white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

.industry-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.9), rgba(0, 61, 153, 0.95));
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 400px;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-icon-large {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2xl);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.industry-card:hover .industry-icon-large {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.industry-icon-large i {
    font-size: 3.5rem;
    color: var(--white);
}

.industry-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.industry-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.industry-content p {
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    line-height: 1.6;
    font-size: 1rem;
}

.industry-features {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: auto;
}

.industry-features li {
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
    opacity: 0.9;
    transition: all var(--transition-fast);
    text-align: left;
}

.industry-card:hover .industry-features li {
    opacity: 1;
    transform: translateX(5px);
}

.industry-features li::before {
    content: '→';
    margin-right: var(--space-sm);
    color: var(--secondary);
    font-weight: bold;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    position: relative;
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--gray-900), var(--primary));
    color: var(--white);
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3xl);
    align-items: center;
}

.cta-text .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: var(--space-lg);
}

.cta-text .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.cta-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-lg);
}

.cta-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE - INDEX SPECIFIC
   ======================================== */

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .process-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .process-visual {
        order: -1;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-actions {
        align-items: center;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
}

.text-highlight-digal-blue {
    background: linear-gradient(135deg, #276bd8, #00C7BE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    
    .hero-content {
        padding: 0 var(--space-md);
    }
}