/* Reset and Base Styles - Updated 2024 - v2.1 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #5B3A8C;
    --primary-dark-purple: #3A1F5C;
    --secondary-blue: #4A5B9C;
    --light-purple: #A68CC7;
    --text-dark: #2C2C2C;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f5f5f5;
    --accent-gradient: linear-gradient(135deg, #5B3A8C 0%, #4A5B9C 100%);
}

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

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

/* Header and Navigation */
.navbar {
    background: var(--primary-purple);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.5rem;
    gap: 10px;
}

.logo-img {
    height: 50px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 300;
    display: block;
    margin-left: 5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="600" cy="400" r="300" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="600" cy="400" r="200" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-contact {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-purple);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    opacity: 0.8;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(31%) sepia(51%) saturate(871%) hue-rotate(230deg) brightness(89%) contrast(86%);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-gray);
}

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

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(31%) sepia(51%) saturate(871%) hue-rotate(230deg) brightness(89%) contrast(86%);
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
    white-space: normal;
    word-break: keep-all;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* Desktop alignment tweaks */
@media (min-width: 769px) {
    .services-grid {
        place-items: center;
    }
    .services .container { 
        text-align: center;
    }
    .service-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .service-item h3,
    .service-item p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: 28rem;
    }

    /* What Sets Us Apart: center the last row with 2 cards */
    .features-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }
    .feature-item {
        width: 300px;
        max-width: 100%;
    }
}

/* Wide desktop: force single-row layouts for stats and services */
@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.25rem;
    }
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
        align-items: stretch;
    }
    .service-item {
        height: 100%;
    }
    /* Allow wrap after prefix to avoid overflow while keeping terms together */
    .service-item h3 {
        white-space: normal;
        font-size: 1.1rem;
    }
}

/* Team Section */
.team {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.team-member p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

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

.clients-info {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
}

.clients-info p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.clients-logos {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.clients-logos img {
    width: 100%;
    height: auto;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-purple);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--secondary-blue);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--light-purple);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-purple);
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.timeline-info {
    margin-top: 3rem;
    text-align: center;
}

.timeline-info h4 {
    font-size: 1.2rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.timeline-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Commercial Terms Section */
.commercial {
    padding: 80px 0;
    background: var(--bg-gray);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.term-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.term-item h3 {
    font-size: 1.3rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.term-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

.term-item ul {
    list-style: none;
    padding: 0;
}

.term-item li {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.term-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--primary-purple);
    color: var(--text-light);
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-content {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-detail svg {
    stroke: var(--text-light);
}

.contact-detail a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-detail a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--primary-dark-purple);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Version 2.0 - Updated with new branding */

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-purple);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 1px solid rgba(107, 74, 156, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--text-light);
        padding: 0.5rem 0;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-contact {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .features-grid,
    .services-grid,
    .team-grid,
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo svg {
        width: 30px;
        height: 30px;
    }
    
    .logo-img {
        height: 60px;
        max-width: 225px;
    }
    
    .footer-logo-img {
        height: 75px;
        max-width: 270px;
    }
    
    .clients-logos {
        padding: 0.5rem;
        margin-top: 2rem;
    }
    
    .clients-logos img {
        max-width: 100%;
    }
}