/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo svg {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-list a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--gradient);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(108, 99, 255, 0.8) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 700;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-text .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

.audit-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    animation: fadeInUp 1s ease 0.8s both;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.audit-form:hover {
    transform: translateY(-5px) rotateX(2deg);
}

.audit-form h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.audit-form form {
    display: flex;
    gap: 15px;
}

.audit-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.audit-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
}

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

.clients h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 50px;
    color: var(--text-dark);
}

.clients-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.client-logo:hover {
    transform: translateY(-10px) rotateY(10deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.3);
}

.client-logo img {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    max-height: 60px;
    width: auto;
    max-width: 100%;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Client Showcase Gallery */
.clients-showcase {
    padding: 100px 0;
    background: var(--light-bg);
    overflow: hidden;
}

.clients-showcase h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.clients-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
    padding: 20px 0;
}

.clients-carousel-track {
    display: flex;
    gap: 30px;
    animation: scrollCarousel 40s linear infinite;
    width: fit-content;
}

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

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-card {
    flex-shrink: 0;
    width: 400px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.client-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.25);
}

.client-card-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.client-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.clients-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.client-item {
    opacity: 0;
    animation: fadeInScale 0.8s ease forwards;
}

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

.client-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.client-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.client-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.95) 0%, rgba(255, 101, 132, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.client-item:hover .client-overlay {
    opacity: 1;
}

.client-item:hover .client-image {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.3);
}

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

.client-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.client-item:hover .client-info {
    transform: translateY(0);
}

.client-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.client-info p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

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

/* Services Section */
.services {
    padding: 100px 0;
}

.services h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

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

.service-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.03);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.25);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(255, 101, 132, 0.1) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(255, 101, 132, 0.2) 100%);
    transform: scale(1.1);
}

.service-card:hover .service-icon svg {
    color: var(--secondary-color);
    transform: rotate(5deg);
}

.service-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.services-cta {
    text-align: center;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: var(--gradient);
    color: var(--white);
}

.stats h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.stats .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stat-icon svg {
    width: 60px;
    height: 60px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    display: inline-block;
}

.stat-label {
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-top: 15px;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--dark-bg);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #0f0f1e;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 25px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    animation: fadeIn 1s ease;
}

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

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-widget svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
}

.popup {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: popupSlide 0.3s ease;
}

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

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: var(--text-dark);
}

.popup h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.popup-subtitle {
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

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

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:valid {
    border-color: #00b894;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .service-card {
        padding: 40px 25px;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        padding: 30px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        min-height: 70vh;
        padding: 120px 0 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .audit-form {
        padding: 30px 20px;
    }
    
    .audit-form form {
        flex-direction: column;
    }
    
    .clients h2,
    .services h2,
    .stats h2 {
        font-size: 1.8rem;
    }
    
    .client-card {
        width: 300px;
    }
    
    .client-card-image {
        height: 400px;
    }
    
    .clients-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .popup {
        padding: 30px 20px;
    }
    
    .popup h2 {
        font-size: 1.5rem;
    }
    
    .whatsapp-widget span {
        display: none;
    }
    
    .whatsapp-widget {
        padding: 15px;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .client-card {
        width: 280px;
    }
    
    .client-card-image {
        height: 350px;
    }
    
    .clients-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* Blog Article Styles */
.services h2 {
    margin-bottom: 20px;
}

.services ul {
    list-style: disc;
    color: var(--text-dark);
}

.services ul li {
    color: var(--text-dark);
}

/* Stats suffix inline display */
.stat-number + .stat-suffix {
    display: inline;
    margin-left: 5px;
}

/* Form select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Blog card image placeholders */
.service-card > div[style*="background"] {
    transition: transform 0.3s ease;
}

.service-card:hover > div[style*="background"] {
    transform: scale(1.05);
}

/* Category badge */
.service-card span[style*="background"] {
    transition: all 0.3s ease;
}

.service-card:hover span[style*="background"] {
    transform: translateY(-2px);
}


/* Hero background fallbacks for offline use */
.hero-bg {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(108, 99, 255, 0.8) 100%);
}

.hero-bg img {
    opacity: 0.3;
    mix-blend-mode: overlay;
}

/* If image fails to load, show gradient */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

/* Blog card image fallbacks */
.service-card > div[style*="background: url"] {
    background-color: var(--gradient) !important;
    background-blend-mode: overlay;
}
