/* Global Styles */
:root {
    --primary-bg: #111;
    --secondary-bg: #1a1a1a;
    --accent-color: #ff6600;
    --text-color: #fff;
    --text-secondary: #e0e0e0;
    --card-bg: #222;
    --section-padding: 100px 0;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.4rem;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

section {
    padding: var(--section-padding);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
}

.cta-button:hover {
    background-color: #ff8533;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 102, 0, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 1px;
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line1,
.hamburger .line2,
.hamburger .line3 {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 102, 0, 0.1), transparent 70%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* About Section */
.about-section {
    background-color: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: radial-gradient(circle at center right, rgba(255, 102, 0, 0.05), transparent 70%);
    z-index: 0;
}

.about-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 25px;
}

.about-content h2::after {
    left: 0;
    transform: none;
}

.about-image {
    flex: 1;
    text-align: center;
    order: -1; /* This makes the image appear before the content */
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: rgba(34, 34, 34, 0.5);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(5px);
    background-color: rgba(34, 34, 34, 0.8);
}

.feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

/* Services Section */
.services-section {
    background-color: var(--primary-bg);
}

.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border: 1px solid var(--accent-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.3), transparent);
    z-index: 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.visible-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hidden-testimonials {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition), opacity var(--transition);
    margin-top: 30px;
    display: grid; /* Keep display grid for layout when visible */
    grid-template-columns: repeat(3, 1fr); /* Ensure grid layout is maintained */
    gap: 30px; /* Maintain gap */
}

.hidden-testimonials.active {
    max-height: 5000px; /* Adjusted to show all testimonials */
    opacity: 1;
}

.testimonial-toggle, .show-less-container {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.show-less-container {
    display: none;
}

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

.testimonial-button {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer !important;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    width: 280px;
    position: relative;
    margin: 0 auto;
    pointer-events: auto !important;
}

.testimonial-button:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2);
}

.button-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-left: 15px;
}

.button-arrow i {
    color: var(--text-color);
}

.testimonial-button:hover .button-arrow {
    background-color: var(--text-color);
}

.testimonial-button:hover .button-arrow i {
    color: var(--accent-color);
}
}

#show-more-testimonials span {
    margin-right: 10px;
}

#show-more-testimonials:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-image {
    height: 200px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.05);
}

.testimonial-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
    flex-grow: 1;
}

.client-name {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.client-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.client-stats i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 60px 0;
    background: linear-gradient(90deg, 
        rgba(255, 102, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0) 20%, 
        rgba(0, 0, 0, 0) 80%, 
        rgba(255, 102, 0, 0.15) 100%
    );
}

.cta-section .container {
    max-width: 800px;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
}

.cta-section .cta-button {
    font-size: 1.1rem;
    padding: 18px 40px;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, var(--accent-color) 0%, transparent 60%);
    z-index: -1;
    opacity: 0.7;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-left: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    .about-section .container {
        flex-direction: column;
    }
    
    .about-image, .about-content {
        width: 100%;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .transformations {
        flex-direction: column;
    }
    
    .transformation {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001; /* Ensure hamburger is above other elements */
        pointer-events: auto; /* Ensure hamburger is clickable */
    }
    
    .nav-links {
        position: fixed;
        top: 80px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        pointer-events: none; /* Initially not clickable */
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity var(--transition), transform var(--transition);
    }
    
    .nav-links.active {
        pointer-events: auto; /* Make clickable when active */
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .service-cards {
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .cta-section .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer p {
        margin-bottom: 15px;
    }

    .social-links a {
        margin: 0 10px;
    }
}