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

:root {
    --primary-red: #ed3631;
    --dark-bg: #0a0e1a;
    --darker-bg: #050810;
    --card-bg: #111827;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Mono', monospace;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(237, 54, 49, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(237, 54, 49, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: aurora 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes aurora {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-10px);
    }
    66% {
        opacity: 0.9;
        transform: scale(0.98) translateY(5px);
    }
}

section, header, footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    font-family: 'Krona One', sans-serif;
    font-weight: 400;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 35px;
    height: 35px;
}

.logo-text {
    font-family: 'Krona One', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-red);
}

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

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

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

.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);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.cta-button {
    background-color: var(--primary-red);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    color: white !important;
}

.cta-button:hover {
    background-color: #d42e29;
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: transparent;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: #d42e29;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-asset {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(237, 54, 49, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-red);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* What We Do Section */
.what-we-do {
    padding: 6rem 2rem;
    background-color: var(--darker-bg);
}

.what-we-do h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 4rem;
}

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

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(237, 54, 49, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(237, 54, 49, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Industries Section */
.industries {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a1030 50%, var(--dark-bg) 100%);
    position: relative;
}

.industries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(237, 54, 49, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.industries h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.industry-tag {
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(237, 54, 49, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.industry-tag:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 54, 49, 0.3);
}

.industry-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Case Studies Section */
.case-studies {
    padding: 6rem 2rem;
    background-color: var(--dark-bg);
}

.case-studies h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
}

.case-studies-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    background-color: var(--card-bg);
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--primary-red);
    color: var(--text-primary);
}

.tab-button.active {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.case-study-content {
    position: relative;
    min-height: 500px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.case-study-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(237, 54, 49, 0.2);
}

.case-study-image {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Krona One', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-red);
}

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

.case-description {
    grid-column: 1 / -1;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clients-section {
    margin-top: 4rem;
}

.clients-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.marquee {
    overflow: hidden;
    background-color: var(--card-bg);
    padding: 2rem 0;
    border-radius: 8px;
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
    align-items: center;
}

.client-logo {
    flex-shrink: 0;
    max-width: 150px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.8);
    transition: filter 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0) brightness(1);
}

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

.case-study-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
}

.case-study-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-red);
    padding: 1rem 2rem;
    text-decoration: none;
    border: 2px solid var(--primary-red);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Team Section */
.team {
    padding: 6rem 2rem;
    background-color: var(--darker-bg);
}

.team h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 1.5rem;
}

.team-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

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

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

.member-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-red);
}

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

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.role {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--card-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: var(--dark-bg);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 3rem;
}

.contact-image {
    flex-shrink: 0;
}

.contact-image img {
    width: 200px;
    height: auto;
    display: block;
}

.contact-text {
    flex: 1;
}

.contact-text h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-action {
    flex-shrink: 0;
}

.contact-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 1.25rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-button:hover {
    background-color: #d42e29;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(237, 54, 49, 0.3);
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    padding: 2rem;
    border-top: 1px solid rgba(237, 54, 49, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    width: 30px;
    height: 30px;
}

.footer-logo span {
    font-family: 'Krona One', sans-serif;
    color: var(--primary-red);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--darker-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        margin: 0 auto 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .case-studies-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
    
    .case-study-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-study-stats {
        flex-direction: column;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-image img {
        width: 150px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
/* Add these styles to your style.css file - REPLACE the existing .case-study-layout rule */

/* Updated Case Study Layout */
.case-study-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(237, 54, 49, 0.2);
}

.case-study-full {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stats Grid (Top Cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    padding: 1.25rem;
    border-radius: 8px;
}

.stat-card.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.stat-card.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.stat-card.dark {
    background-color: var(--darker-bg);
    border: 1px solid rgba(237, 54, 49, 0.2);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-card.dark .stat-label {
    color: var(--text-secondary);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    font-family: 'Krona One', sans-serif;
}

.stat-card.dark .stat-value {
    color: var(--primary-red);
}

/* Case Study Charts */
.case-study-chart {
    width: 100%;
    background-color: var(--darker-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(237, 54, 49, 0.2);
}

.case-study-chart canvas {
    max-height: 350px;
    width: 100% !important;
    max-width: 100% !important;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.blue {
    background-color: #60a5fa;
}

.legend-dot.purple {
    background-color: #8b5cf6;
}

/* Keep existing case-study-stats and case-description styles */
.case-study-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Krona One', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-red);
}

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

.case-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for charts */
@media (max-width: 768px) {
    .case-study-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .case-study-chart {
        padding: 0.75rem;
        overflow-x: auto;
    }
    
.case-study-chart canvas {
    max-height: 220px;
    width: 100% !important;
    max-width: 100% !important;
}
    
    .chart-legend {
        gap: 1rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    
    .case-study-stats {
        flex-direction: column;
    }
    
    .stat-highlight .stat-number {
        font-size: 2rem;
    }
    
    .stat-highlight .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .case-study-chart {
        padding: 0.5rem;
    }
    
    .case-study-chart canvas {
        max-height: 180px;
    }
}