:root {
    --primary-color: #ff6b00;
    --secondary-color: #ff8534;
    --accent-color: #ff4d00;
    --dark: #1a1a1a;
    --darker: #000000;
    --light: #f4f4f4;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header and Navigation Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: var(--dark);
}

header.scrolled {
    background-color: var(--dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    z-index: 1001;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark);
        padding-top: 80px;
        transition: all 0.3s ease;
        opacity: 0;
    }

    .nav-menu.active {
        left: 0;
        opacity: 1;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 10px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Section */
#hero {
    height: 100vh;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: var(--dark);
    color: var(--white);
}

.service-card:hover h3 {
    color: var(--white);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
    transition: color 0.3s ease;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--dark) 0%, #000000 100%);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.portfolio .section-header h2,
.portfolio .section-header p {
    color: var(--white);
}

.portfolio-slider-container {
    position: relative;
    width: min(90vw, 600px);
    aspect-ratio: 1;
    margin: 2rem auto;
    border-radius: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.portfolio-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.portfolio-item.active {
    opacity: 1;
    display: block;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background-color: rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover img {
    transform: scale(1.02);
}

/* Enhanced Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Content Writings Section */
.content-writings {
    padding: 100px 0;
    background-color: var(--white);
}

.content-writings .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.content-writings .section-header h2 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.content-writings .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.content-writings .section-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* Content grid with 3 columns, responsive */
.content-writings .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Individual writing card */
.content-writings .content-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-writings .content-card:hover {
    background-color: var(--dark);
    color: var(--white);
    transform: translateY(-10px);
}

.content-writings .content-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.content-writings .content-card:hover h3 {
    color: var(--primary-color);
}

.content-writings .content-card p {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: inherit;
}

.content-writings .content-card a.btn-secondary {
    align-self: flex-start;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.content-writings .content-card:hover a.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}


/* Clients Section */
.clients {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.clients .section-header {
    margin-bottom: 50px;
}

.clients .section-header h2,
.clients .section-header p {
    color: var(--dark); /* Changed from white to dark */
}

.clients-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.clients-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    animation: slideLeft 30s linear infinite;
    padding: 0 20px;
}

.clients-grid:hover {
    animation-play-state: paused;
}

.client-item {
    background-color: var(--light); /* Changed to light background */
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.client-item img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-item:hover img {
    transform: scale(1.1);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7 - 40px * 7)); /* Adjust based on number of logos */
    }
}

/* Create a duplicate set of logos for seamless loop */
.clients-grid {
    display: flex;
    gap: 40px;
    animation: slideLeft 30s linear infinite;
}

.clients-grid .client-item {
    animation: fadeInOut 30s linear infinite;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light);
}

.whatsapp-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25D366;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background-color: #20bd5a;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    background-color: var(--darker);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-contact h3,
.footer-links h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Error Placeholder */
.error-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-size: 16px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
}