/* Reset and base styles */
.hero {
    position: relative;
    min-height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content container */
.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

/* Text container */
.text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
}

/* Static layer */
.static-layer {
    position: relative;
    z-index: 2;
}

/* Static text - "We are" */
.static-text {
    font-family: var(--font-primary);
    font-size: 6rem;
    color: #ec252e;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1;
}

/* Dynamic layers container */
.dynamic-layers {
    position: relative;
    height: 6rem;
    width: 600px;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Dynamic text */
.dynamic-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    font-family: var(--font-primary);
    font-size: 6rem;
    color: #ec252e;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: none;
    line-height: 1;
    text-shadow: none;
    display: block;
    vertical-align: middle;
    transform: translateY(100%);
}

.dynamic-text.active {
    opacity: 1;
    transform: translateY(0);
}

.dynamic-text.leaving {
    transform: translateY(-50%) rotateX(90deg);
    opacity: 0;
}

/* Reference text for positioning */
.text-wrapper::before {
    content: 'We are Experienced';
    font-family: var(--font-primary);
    font-size: 6rem;
    color: transparent;
    font-weight: bold;
    white-space: nowrap;
    display: block;
    visibility: hidden;
}

/* Social links */
.hero-social {
    position: absolute;
    top: 320px;
    left: 180px;
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.hero-social a {
    color: #ec252e;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.hero-social a:hover {
    transform: scale(1.1);
}

/* Responsive styles for social icons */
@media (max-width: 768px) {
    .hero-social {
        top: 120px;
        left: 30px;
        gap: 1.2rem;
    }
    
    .hero-social a {
        font-size: 0.9rem;
        font-weight: normal;
    }
}

@media (max-width: 480px) {
    .hero-social {
        top: 90px;
        left: 20px;
        gap: 0.8rem;
    }
    
    .hero-social a {
        font-size: 0.75rem;
        font-weight: normal;
    }
}

/* Desktop and larger screens */
@media (max-width: 1200px) {
    .static-text,
    .dynamic-text {
        font-size: 5rem;
    }
    
    .dynamic-layers {
        height: 6rem;
        min-width: 350px;
    }

    .hero-social {
        top: 150px;
        left: 40px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero {
        min-height: 30vh;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .text-container {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .static-text,
    .dynamic-text {
        font-size: 2.8rem;
        line-height: 1;
        vertical-align: middle;
    }
    
    .dynamic-layers {
        width: 260px;
        min-width: 220px;
        height: 2.8rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
    }
    
    .hero-social {
        top: 120px;
        left: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 20vh;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .text-container {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .static-text,
    .dynamic-text {
        font-size: 2rem;
        line-height: 1;
        vertical-align: middle;
    }
    
    .dynamic-layers {
        width: 200px;
        min-width: 180px;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
    }
    
    .hero-social {
        top: 90px;
        left: 20px;
    }
}

/* Performance optimizations */
.dynamic-text {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Hero Section */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

/* Custom animation classes */
.slide.zoom-bg {
    animation: zoomBackground 20s infinite alternate;
}

@keyframes zoomBackground {
    from { background-size: 100%; }
    to { background-size: 120%; }
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: left;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.slide-content > div {
    margin-top: 2rem; /* Reduced space for social links */
}

.slide-heading {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #000000;
}

.slide-subheading {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 8rem;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #000000;
}

.get-started-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    color: #646363;
    border: 2px solid #ec252e;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: bold;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease;
}

.get-started-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ec252e 0%, #ff6b6b 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.get-started-btn:hover {
    color: #ffffff;
}

.get-started-btn:hover::before {
    width: 100%;
}

/* Slide Navigation */
.slide-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.slide-dot {
    width: 3rem;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background-color: #ec252e;
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: var(--font-primary);
    font-weight: bold;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slide-counter span:first-child {
    font-size: 1.2rem;
}

.slide-counter span:last-child {
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Slide Progress Bar */
.slide-progress {
    width: 100px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 0 0.5rem;
    overflow: hidden;
}

.slide-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #ec252e;
    transition: width 5s linear;
    z-index: 2;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slide.active ~ .slide-counter .slide-progress-bar {
    width: 100%;
}

/* Add draggable cursor styles */
.slide {
    cursor: grab;
}

.slide:active {
    cursor: grabbing;
}

/* About Us Section */
.about-section {
    background-color: #ffffff;
    padding: 8rem 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-section h2 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 6rem;
    color: #ec252e;
    margin: 0;
    line-height: 1;
    width: 100%;
}

.about-section p {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000000;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.explore-more {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2.5rem;  /* Increased size */
    color: #ec252e;
    text-decoration: none;
    margin-top: 2rem;
    display: inline-block;
    position: relative;
}

.explore-more::after {
    content: '—';
    display: inline-block;
    margin-left: 1rem;
}

.explore-more:hover::after {
    transform: translateX(10px);
}

/* Responsive styles for explore-more */
@media (max-width: 768px) {
    .explore-more {
        font-size: 1.8rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .explore-more {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
}

/* Services Section */
.services-section {
    background-color: #ffffff;
    padding: 8rem 0;
    width: 100%;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

/* Left Column Styles */
.services-intro {
    padding-right: 2rem;
}

.services-intro h3 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1.5rem;
    color: #979696;
    margin-bottom: 1rem;
}

.services-intro h2 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.services-intro p {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #979696;
    margin-top: 2rem;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: stretch;
    margin-bottom: 2rem;
    padding: 2rem 3rem 2rem 2rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    min-height: 180px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #ec252e;
    transition: width 0.3s ease;
    z-index: -1;
}

.service-item:hover::before {
    width: 100%;
}

.service-item::after {
    content: '↗';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #ec252e;
    opacity: 1;
    transform: translate(0, 0);
}

.service-item:hover::after {
    color: #ffffff;
}

.service-item:hover .service-icon svg {
    color: #ffffff;
}

.service-item:hover .service-icon-title h4,
.service-item:hover .service-content p {
    color: #ffffff;
}

.service-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: #ec252e;
    transition: color 0.3s ease;
}

.service-icon-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.service-icon-title h4 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1.2rem;
    color: #000000;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

.service-content {
    padding-top: 0.25rem;
    position: relative;
    z-index: 2;
}

.service-content p {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-intro {
        padding-right: 0;
        text-align: center;
    }

    .service-item {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 4rem 0;
    }

    .services-intro h2 {
        font-size: 2.5rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        min-height: auto;
    }

    .service-icon-title {
        width: 100%;
    }
}

/* Contact Section */
.contact-section {
    background-color: #393a3c;
    padding: 8rem 0;
    width: 100%;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-text h2 {
    font-family: var(--font-primary);
    font-size: 3.2rem;
    color: #ec252e;
    margin-bottom: 2rem;
}

.contact-text p {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Contact Form Fields */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    border-radius: 30px;
    padding: 1rem 1.5rem;
    border: 2px solid #ec252e;
    width: 100%;
    font-family: var(--font-primary);
    font-weight: normal;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #ffffff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 1px #ec252e;
}

.submit-btn {
    border-radius: 30px;
    padding: 1rem 2.5rem;
    background-color: #ec252e;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #d61f27;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

/* Responsive Design for Contact Section */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-text h2 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
.testimonials-section {
    background-color: #ec252e;
    padding: 2rem 0 4rem 0;
    width: 100%;
    position: relative;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-slider {
    position: relative;
    padding: 2rem 0;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.slider-nav:hover {
    opacity: 0.8;
}

.prev-slide {
    left: -60px;
}

.next-slide {
    right: -60px;
}

.testimonial-slides {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 0;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
    position: relative;
}

.testimonial-text {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.testimonials-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.testimonials-header h2 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 3.5rem;
    color: #ffffff;
    margin: 0;
}

.client-feedback {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.client-feedback:hover {
    color: #ffffff;
}

.quote-icon {
    margin-bottom: 1rem;
    color: #ffffff;
}

.testimonial-author {
    margin-bottom: 1rem;
}

.author-info h4 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.author-info p {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0.25rem 0 0;
    text-transform: uppercase;
}

.rating {
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
}

.rating span.inactive {
    opacity: 0.5;
}

.testimonial-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.nav-dot {
    width: 3rem;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.nav-dot.active {
    background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 1rem;
    }

    .testimonials-container {
        padding: 0 1rem;
    }

    .testimonial-slides {
        min-height: auto;
        margin: 0 2rem;
    }

    .testimonial-slide {
        position: relative;
        padding: 1rem 0;
        min-height: auto;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        overflow: visible;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .slider-nav {
        top: 50%;
        transform: translateY(-50%);
    }

    .prev-slide {
        left: -2rem;
    }

    .next-slide {
        right: -2rem;
    }
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 4rem 4rem;
    background-color: #f5f5f5;
    position: relative;
}

.hero-heading {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #000;
    font-family: var(--font-primary);
    font-weight: bold;
}

.get-started-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: #ec252e;
    text-decoration: none;
    border: 2px solid #ec252e;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.get-started-btn:hover {
    background-color: #ec252e;
    color: #fff;
}

@media (max-width: 1024px) {
    .hero-heading {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 2rem 2rem;
    }

    .hero-heading {
        font-size: 2.8rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 1.5rem 2rem;
    }

    .hero-heading {
        font-size: 2.2rem;
        margin-top: 4rem;
    }

    .get-started-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Hero text */
.hero-text {
    font-family: var(--font-primary);
    font-size: 6rem;
    color: #ec252e;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 75vh;
    width: 100%;
  
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

/* Content container */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Hero text */
.hero-text {
    font-family: var(--font-primary);
    font-size: 6rem;
    color: #ec252e;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Social links */
.hero-social {
    position: absolute;
    top: 180px;
    left: 50px;
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.hero-social a {
    color: #ec252e;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.hero-social a:hover {
    transform: scale(1.1);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .hero-text {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-text {
        font-size: 3rem;
    }
    
    .hero-social {
        top: 120px;
        left: 30px;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-text {
        font-size: 2rem;
    }
}

/* Responsive styles for About Us section */
@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .about-section h2 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .about-section h2 {
        font-size: 2.5rem;
    }
} 