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

:root {
    --color-primary: #50223c;
    --color-primary-hover: #6d2e52;
    --color-bg: #0a0a0a;
    --color-bg-secondary: #121212;
    --color-bg-card: #1a1a1a;
    --color-text: #e5e5e5;
    --color-text-secondary: #a0a0a0;
    --color-border: #2a2a2a;
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

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

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

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0f 50%, #0a0a0a 100%);
    z-index: 1;
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(80, 34, 60, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(80, 34, 60, 0.5);
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    background-color: var(--color-bg-secondary);
}

.about-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    align-items: start;
}

.about-left {
    position: sticky;
    top: 120px;
}

.about-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-intro {
    max-width: 100%;
    margin-bottom: 32px;
}

.about-intro p {
    font-size: 24px;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 500;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.about-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.value-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-weight: 300;
    margin: 0;
}

/* ===========================
   Services Section
   =========================== */
.services-section {
    padding: 80px 0;
}

.services-header {
    margin-bottom: 40px;
}

.services-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.services-subtitle {
    font-size: 32px;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 400;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    width: fit-content;
}

.service-item:hover {
    background-color: rgba(80, 34, 60, 0.03);
    padding-left: 16px;
    padding-right: 16px;
}

.service-item:hover .service-arrow {
    transform: translateX(8px);
    color: var(--color-primary);
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.service-item:hover .service-name {
    color: var(--color-primary);
}

.service-arrow {
    font-size: 24px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

/* ===========================
   Clients Section
   =========================== */
.clients-section {
    background-color: var(--color-bg-secondary);
    overflow: hidden;
    padding: 60px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-top: 12px;
    font-weight: 300;
}

.clients-banner-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 40px;
    padding: 20px 0;
    cursor: grab;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.clients-banner-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.clients-banner-wrapper:active {
    cursor: grabbing;
}

.clients-banner {
    display: flex;
    gap: 80px;
    animation: scroll 80s linear infinite;
    width: fit-content;
}

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

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

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    min-width: 220px;
    height: 100px;
}

.client-logo img {
    width: 165px;
    height: 113px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
    opacity: 0.6;
}

.client-logo:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.client-logo-small img {
    width: 132px;
    height: 90px;
}

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

/* ===========================
   Founder Section
   =========================== */
.founder-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.founder-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.founder-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.founder-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.5px;
}

.founder-title {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 500;
    margin: 0;
}

.founder-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin: 12px 0 0 0;
    font-weight: 300;
}

/* ===========================
   News & Articles Section
   =========================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background-color: var(--color-bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
}

.news-date {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.3;
}

.news-excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.news-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

/* ===========================
   Contact Section
   =========================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.info-details p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.info-details p a {
    color: var(--color-text-secondary) !important;
    text-decoration: none;
}

.info-details a[href^="tel:"] {
    color: var(--color-text-secondary) !important;
    text-decoration: none;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-bg-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--color-bg-secondary);
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo .logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

.footer-copyright {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* ===========================
   Animations
   =========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .about-layout {
        grid-template-columns: 150px 1fr;
        gap: 40px;
    }

    .about-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .about-intro {
        margin-bottom: 28px;
    }

    .about-intro p {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-number {
        font-size: 40px;
    }

    .services-subtitle {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logo {
        min-width: 200px;
        height: 90px;
    }

    .client-logo img {
        width: 150px;
        height: 103px;
    }

    .client-logo-small img {
        width: 120px;
        height: 82px;
    }

    .founder-content {
        grid-template-columns: 350px 1fr;
        gap: 60px;
    }

    .founder-name {
        font-size: 28px;
    }

    .founder-title {
        font-size: 17px;
    }

    .founder-bio {
        font-size: 15px;
    }

    .hero-title {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 32px;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Disable swipe on hero canvas for mobile */
    #particlesCanvas,
    #practiceParticlesCanvas {
        touch-action: none;
    }

    /* Clients section mobile spacing */
    .clients-section {
        padding: 40px 0;
    }

    .clients-banner-wrapper {
        margin-top: 30px;
        padding: 15px 0;
    }

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

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

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

    .logo .logo-img {
        height: 32px;
    }

    .footer-logo .logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-left {
        position: static;
    }

    .about-intro {
        margin-bottom: 24px;
    }

    .about-intro p {
        font-size: 20px;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 13px;
    }

    .services-subtitle {
        font-size: 24px;
    }

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

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

    .client-logo {
        min-width: 165px;
        height: 80px;
    }

    .client-logo img {
        width: 132px;
        height: 90px;
    }

    .client-logo-small img {
        width: 106px;
        height: 72px;
    }

    .founder-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 50px;
    }

    .founder-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .founder-name {
        font-size: 26px;
    }

    .founder-title {
        font-size: 16px;
    }

    .founder-bio {
        font-size: 15px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo .logo-img {
        height: 28px;
    }

    .footer-logo .logo-img {
        height: 36px;
    }

    .about-intro {
        margin-bottom: 20px;
    }

    .about-intro p {
        font-size: 18px;
    }

    .about-right {
        gap: 40px;
    }

    .about-values {
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .services-subtitle {
        font-size: 20px;
    }

    .service-name {
        font-size: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 15px;
    }

    .news-card {
        padding: 28px 24px;
    }

    .founder-content {
        gap: 32px;
        margin-top: 40px;
    }

    .founder-image {
        max-width: 280px;
    }

    .founder-name {
        font-size: 24px;
    }

    .founder-title {
        font-size: 15px;
    }

    .founder-bio {
        font-size: 14px;
        line-height: 1.7;
    }
}
