* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: #f8fafc;
    font-family: 'DM Sans', sans-serif;
    color: #1e293b;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    padding-top: 80px;
}

section {
    overflow-x: hidden;
    overflow-y: visible;
}

.industry-tabs-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Enhanced Hero Section Styles */
.enhanced-hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4B0082;
    background: linear-gradient(135deg, #f5f0ff 0%, #e8d9ff 50%, #f0e6ff 100%);
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 20% 50%, rgba(138,43,226,0.15) 0%, transparent 50%), 
                radial-gradient(circle at 80% 50%, rgba(75,0,130,0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 15s ease-in-out infinite;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle-large {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    animation: float 8s infinite;
}

.particle-large:nth-child(1) {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, rgba(138,43,226,0.6) 0%, rgba(138,43,226,0) 70%);
    left: 10%;
    top: 0;
    box-shadow: 0 0 20px rgba(138,43,226,0.5);
}

.particle-large:nth-child(2) {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(148,0,211,0.5) 0%, rgba(148,0,211,0) 70%);
    left: 30%;
    top: 0;
    animation-delay: 2s;
    animation-duration: 10s;
    box-shadow: 0 0 15px rgba(148,0,211,0.4);
}

.particle-large:nth-child(3) {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(138,43,226,0.7) 0%, rgba(138,43,226,0) 70%);
    left: 50%;
    top: 0;
    animation-delay: 1s;
    animation-duration: 9s;
    filter: blur(5px);
    box-shadow: 0 0 25px rgba(138,43,226,0.6);
}

.particle-large:nth-child(4) {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(75,0,130,0.6) 0%, rgba(75,0,130,0) 70%);
    left: 70%;
    top: 0;
    animation-delay: 3s;
    animation-duration: 11s;
    box-shadow: 0 0 18px rgba(75,0,130,0.5);
}

.particle-large:nth-child(5) {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, rgba(138,43,226,0.65) 0%, rgba(138,43,226,0) 70%);
    left: 90%;
    top: 0;
    animation-delay: 1.5s;
    animation-duration: 12s;
    filter: blur(5px);
    box-shadow: 0 0 22px rgba(138,43,226,0.55);
}

.particle-small {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.particle-small:nth-child(6) {
    width: 8px;
    height: 8px;
    background: rgba(138,43,226,0.4);
    left: 15%;
    top: 0;
    animation: float 13s infinite 0.5s;
}

.particle-small:nth-child(7) {
    width: 6px;
    height: 6px;
    background: rgba(148,0,211,0.35);
    left: 40%;
    top: 0;
    animation: float 14s infinite 2.5s;
}

.particle-small:nth-child(8) {
    width: 10px;
    height: 10px;
    background: rgba(138,43,226,0.45);
    left: 60%;
    top: 0;
    filter: blur(3px);
    animation: float 11s infinite 1.8s;
}

.particle-small:nth-child(9) {
    width: 7px;
    height: 7px;
    background: rgba(75,0,130,0.4);
    left: 85%;
    top: 0;
    animation: float 15s infinite 3.5s;
}

.hero-content-glass {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(138,43,226,0.25), 
                0 0 80px rgba(138,43,226,0.15), 
                inset 0 0 40px rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.4);
    animation: contentFadeIn 1s ease-out;
    margin: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(138,43,226,0.2) 0%, rgba(148,0,211,0.25) 100%);
    color: #6b00d4;
    padding: 10px 22px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 20px rgba(138,43,226,0.4), 0 0 30px rgba(138,43,226,0.3);
    border: 1px solid rgba(138,43,226,0.3);
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge i {
    margin-right: 8px;
    animation: starSpin 4s linear infinite;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4B0082 0%, #8709ee 50%, #6b00d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 4px 12px rgba(138,43,226,0.4));
    animation: headingFloat 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #5a3a75;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(138,43,226,0.2);
}

.industry-icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.industry-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138,43,226,0.2);
}

.industry-icon-item:hover {
    transform: translateY(-8px) scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 8px 25px rgba(138,43,226,0.4);
}

.industry-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(138,43,226,0.2) 0%, rgba(148,0,211,0.25) 100%);
    border: 2px solid rgba(138,43,226,0.3);
    box-shadow: 0 4px 20px rgba(138,43,226,0.3), inset 0 2px 10px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.industry-icon-item:hover .industry-icon-circle {
    transform: rotate(360deg);
    box-shadow: 0 6px 30px rgba(138,43,226,0.5), inset 0 2px 10px rgba(255,255,255,0.4);
}

.industry-icon-circle i {
    font-size: 2rem;
    background: linear-gradient(135deg, #4B0082 0%, #8709ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.industry-icon-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4B0082;
    text-shadow: 0 2px 4px rgba(138,43,226,0.2);
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.7;
    }
    25% {
        transform: translateY(100vh) translateX(30px);
        opacity: 0.9;
    }
    50% {
        transform: translateY(200vh) translateX(-20px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(300vh) translateX(40px);
        opacity: 0.8;
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(138,43,226,0.4), 0 0 30px rgba(138,43,226,0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(138,43,226,0.6), 0 0 50px rgba(138,43,226,0.5);
    }
}

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

@keyframes headingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .industry-icon-circle {
        width: 60px;
        height: 60px;
    }
    .industry-icon-circle i {
        font-size: 1.5rem;
    }
    .industry-icons-wrapper {
        gap: 15px;
    }
}

.section {
    padding: 80px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4B0082 0%, #8709ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #64748b;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.industry-tabs-section {
    background: white;
    padding: 60px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tabs-container {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap to the next line */
    justify-content: center;
    gap: 1rem;
    margin-bottom: 40px;
    overflow: hidden; /* This will remove any scrollbars */
    padding-bottom: 5px; /* Adds a little space in case of shadow/outline */
}

.tab-btn {
    /* You likely have styles for the button, but ensure no fixed height is causing issues */
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text inside button from wrapping */
}

.tab-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.tab-btn.active {
    background-color: #f59e0b; /* Example active color */
    color: #ffffff;
    border-color: #f59e0b;
}

.tab-btn i {
    margin-right: 8px;
}
.casestudies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;

}

.casestudy-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    display: none;
}

.casestudy-card.active {
    display: block;
}

.casestudy-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.casestudy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(135,9,238,0.2);
}

.casestudy-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.casestudy-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.casestudy-card:hover .casestudy-image-wrapper img {
    transform: scale(1.1);
}

.industry-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.industry-tag.facility {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.industry-tag.energy {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.industry-tag.mining {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.industry-tag.transportation {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.casestudy-content {
    padding: 25px;
}

.casestudy-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.casestudy-summary {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4B0082 0%, #8709ee 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(135,9,238,0.4);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

.cta-section {
    background: linear-gradient(135deg, #4B0082 0%, #8709ee 100%);
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(135,9,238,0.3);
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: #4B0082;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background: white;
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #4B0082 0%, #8709ee 100%);
    padding: 35px 40px;
    color: white;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-header p {
    font-size: 15px;
    opacity: 0.95;
}

.modal-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 3px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #8709ee;
    background: white;
    box-shadow: 0 0 0 3px rgba(135,9,238,0.1);
}

.form-group input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4B0082 0%, #8709ee 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135,9,238,0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .spinner {
    display: block;
}

.submit-btn.loading .btn-text {
    display: none;
}

.privacy-note {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.privacy-note a {
    color: #8709ee;
    text-decoration: none;
}

.success-message {
    display: none;
    text-align: center;
    padding: 30px;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.success-message h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 12px;
}

.success-message p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 25px;
}

.success-redirect {
    font-size: 14px;
    color: #8709ee;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



@media (max-width: 768px) {
    .casestudies-grid {
        grid-template-columns: 1fr;
    }

    .tabs-container {
        gap: 10px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .modal-container {
        margin: 20px;
    }

    .modal-header {
        padding: 25px 30px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-body {
        padding: 30px 25px;
    }
}