/**
 * One-Page Design Enhancement Styles
 * Additional styles for the one-page layout - maintains existing color scheme
 */

/* =================================
   Section Spacing & Smooth Scrolling
   ================================= */
html {
    scroll-behavior: smooth;
}

section {
    position: relative;
    scroll-margin-top: 80px;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* =================================
   Sticky Header Enhancement
   ================================= */
.header_section.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(220, 38, 38, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Active navigation link */
.onepage-nav .nav-link.active {
    color: #dc2626 !important;
    position: relative;
}

.onepage-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #dc2626;
}

.onepage-nav .destop_header .nav-link {
    position: relative;
}

/* =================================
   Scroll to Top Button
   ================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* =================================
   Enhanced Services Section
   ================================= */
.services-full-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.services-grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.service-feature-card {
    background: #1a1a1a;
    padding: 35px 28px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.service-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-feature-card:hover::before {
    transform: scaleX(1);
}

.service-feature-card.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.service-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.25);
    border-color: #dc2626;
}

.service-feature-card .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    /* background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transform: scale(1);
}

.service-feature-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.service-feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0 10px;
    color: #ffffff;
}

.service-feature-card p {
    font-size: 14px;
    color: #a3a3a3;
    margin: 0;
    line-height: 1.6;
}

/* Services Auto-Slider */
.services-slider-wrapper {
    overflow: hidden;
    margin-top: 50px;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.services-slider {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.services-slider .service-feature-card {
    flex-shrink: 0;
    min-width: 320px;
    max-width: 320px;
    opacity: 1;
    transform: translateY(0);
}

/* =================================
   Team Section Enhancement
   ================================= */
.team-section {
    background: #0a0a0a;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #333333;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member-card:hover::before {
    opacity: 1;
}

.team-member-card.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.team-member-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #dc2626;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-member-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    color: #ffffff;
}

.team-member-title {
    font-size: 16px;
    color: #a3a3a3;
    margin: 10px 0 15px;
}

.team-member-card p:last-child {
    font-size: 14px;
    line-height: 1.7;
    color: #a3a3a3;
}

/* =================================
   Contact Section Enhancement
   ================================= */
.contact-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    transform: translateZ(0); /* Enable GPU acceleration */
    will-change: auto;
}

.contact-section .section-label {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section h2,
.contact-section h3 {
    color: #ffffff;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section .divider {
    background: rgba(255, 255, 255, 0.4);
}

/* Contact Form Grid */
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-wrapper,
.testimonials-wrapper {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper h3,
.testimonials-wrapper h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

/* Modern Form Styles */
.form-control-modern {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: background 0.3s ease, border-color 0.3s ease;
    margin-bottom: 18px;
}

.form-control-modern::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

textarea.form-control-modern {
    resize: vertical;
    min-height: 120px;
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-icon {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
}

.client-profile h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.client-position {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 3px 0 0;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Contact Info Cards Grid */
.contact-grid-onepage {
    margin-top: 50px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-section .contact-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.contact-section .contact-card.animated {
    animation: fadeInUp 0.5s ease forwards;
    will-change: auto;
}

.contact-section .contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-section .contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.contact-section .contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0;
    color: #ffffff;
}

.contact-section .contact-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.contact-section .contact-card a {
    color: #ffffff;
    text-decoration: underline;
}

.contact-section .contact-card a:hover {
    opacity: 0.8;
}

/* =================================
   Modern Button Enhancement
   ================================= */
.btn-modern {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.btn-modern:active {
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    display: block;
}

.contact-section .btn-modern {
    background: #ffffff;
    color: #dc2626;
}

.contact-section .btn-modern:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
}

/* =================================
   Section Intro Enhancements
   ================================= */
.section-intro.center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-intro h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin: 15px 0 20px;
    color: #ffffff;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    margin: 20px 0;
    border-radius: 2px;
}

.divider.center {
    margin: 20px auto;
}

/* =================================
   Animation Keyframes
   ================================= */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Stagger animation delays */
.service-feature-card:nth-child(1),
.team-member-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-feature-card:nth-child(2),
.team-member-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-feature-card:nth-child(3),
.team-member-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-feature-card:nth-child(7) {
    animation-delay: 0.7s;
}

.service-feature-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Faster animation for contact cards to reduce lag */
.contact-card:nth-child(1) {
    animation-delay: 0.05s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.15s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.2s;
}

/* =================================
   Responsive Adjustments
   ================================= */
@media (max-width: 768px) {
    .services-grid-features,
    .team-grid,
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .service-feature-card,
    .team-member-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-slider .service-feature-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .contact-form-wrapper,
    .testimonials-wrapper {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .section-intro h2 {
        font-size: 24px;
    }

    .btn-modern {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .services-slider .service-feature-card {
        min-width: 260px;
        max-width: 260px;
        padding: 28px 22px;
    }
    
    .form-control-modern {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* =================================
   Utility Classes
   ================================= */
.text-center {
    text-align: center;
}

/* =================================
   Partners/Clients Section
   ================================= */
.partners-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #dc2626 50%, transparent 100%);
    opacity: 0.3;
}

.partners-header {
    max-width: 800px;
    margin: 0 auto;
}

.partners-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin: 15px 0 20px;
    color: #ffffff;
}

.partners-title span {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partners-description {
    font-size: 16px;
    line-height: 1.7;
    color: #a3a3a3;
    margin: 20px 0 0;
}

/* =================================
   Partners/Clients Auto-Slider
   ================================= */
.partners-slider-wrapper {
    overflow: hidden;
    margin-top: 50px;
    position: relative;
    width: 100%;
}

.partners-slider {
    display: flex;
    gap: 40px;
    width: max-content;
    will-change: transform;
}

.partner-card {
    flex-shrink: 0;
    background: #1a1a1a;
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 120px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
}

.partner-logo {
    max-width: 130px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%) brightness(1.2);
}

.partner-card:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

@media (max-width: 768px) {
    .partner-card {
        min-width: 150px;
        height: 100px;
        padding: 20px;
    }
    
    .partner-logo {
        max-width: 110px;
        max-height: 60px;
    }
    
    .partners-slider {
        gap: 25px;
    }
}
