/* ========================================
   DataThread - Multi-Page Website Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
    --primary-color: #8a2be2;       /* Electric purple */
    --primary-dark: #6a1b9a;
    --background-dark: #1c1c3c;
    --background-darker: #141428;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --text-muted: #888;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --header-height: 120px;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

p {
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.logo-link {
    display: flex;
    align-items: center;
    background: transparent;
    flex-shrink: 0;
}

.site-logo {
    height: 96px;
    width: auto;
    display: block;
    background: transparent;
    max-width: 100%;
    object-fit: contain;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 1.0925rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

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

/* --- Hero Section (Home Page) --- */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: url('hero-bg.jpg') center center / cover no-repeat fixed;
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 40, 0.85) 0%,
        rgba(28, 28, 60, 0.75) 50%,
        rgba(138, 43, 226, 0.3) 100%
    );
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero .tagline {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    color: #ffffff;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-shadow: 
        0 0 30px rgba(168, 85, 247, 0.9),
        0 0 60px rgba(138, 43, 226, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.485rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--background-dark);
    border-color: white;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* CTA Description - Single line on large screens */
.cta-description {
    max-width: 600px;
}

@media (min-width: 1200px) {
    .cta-description {
        max-width: none;
        white-space: nowrap;
    }
}

/* --- Core Capabilities (Home) --- */
.capabilities {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.section-header h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.21rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.capability-card {
    text-align: left;
    padding: 0;
    background: white;
    border-radius: 0;
    transition: all var(--transition);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.capability-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

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

.capability-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 24px 24px 12px;
    font-weight: 600;
    line-height: 1.3;
}

.capability-card p {
    font-size: 1.045rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 24px 24px;
}

/* --- Page Header (Inner Pages) --- */
.page-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background: white;
    color: var(--text-light);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(138, 43, 226, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section.alt {
    background: var(--bg-alt);
}

.section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.section .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- About Page --- */
.about-hero-split {
    min-height: 700px;
    max-height: 700px;
    padding-top: var(--header-height);
    display: block;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-hero-wrapper {
    display: flex;
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
}

.about-hero-text {
    background: linear-gradient(135deg, #4a1a6b 0%, #2d0f42 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 100px;
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
}

.about-text-content {
    max-width: 600px;
    width: 100%;
    text-align: left;
}

.about-heading-line {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.about-hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.7rem, 4.5vw, 4.05rem);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: white;
    font-style: italic;
}

.about-subheading {
    font-size: clamp(1.35rem, 2.25vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    line-height: 1.3;
}

.lead-intro {
    font-size: clamp(0.9rem, 1.35vw, 1.08rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    padding-right: 20px;
}

.about-hero-text .full-stack-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.about-hero-text .full-stack-list li {
    font-size: clamp(0.9rem, 1.35vw, 1.08rem);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.about-hero-text .full-stack-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-hero-image {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1;
    object-position: center;
}

/* Video Background Section */
.about-video-section {
    position: relative;
    width: 100%;
    height: 500px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    clear: both;
}

.about-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.about-video-text {
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-video-text p {
    font-size: clamp(1.65rem, 3.3vw, 2.75rem);
    font-weight: 500;
    line-height: 1.6;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
    width: 100%;
}

.about-content-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.experience-section {
    margin-top: 60px;
}

.experience-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

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

.experience-item {
    background: var(--bg-alt);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.experience-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-dark);
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.experience-item:hover .experience-image img {
    transform: scale(1.05);
}

.experience-content {
    padding: 2.5rem;
}

.experience-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.experience-item p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.1rem;
}

.experience-list h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.experience-list ul {
    list-style: none;
}

.experience-list li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.experience-list li:last-child {
    border-bottom: none;
}

.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
    display: flex;
    gap: 0;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.team-photo-wrapper {
    flex-shrink: 0;
    width: 250px;
    height: auto;
    overflow: hidden;
    background: var(--bg-dark);
}

.team-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.team-info {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.team-info .role {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.team-contact {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.team-contact p {
    margin: 8px 0;
    font-size: 1.045rem;
    color: var(--text-muted);
}

.team-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.team-contact a:hover {
    text-decoration: underline;
}

.team-description {
    flex: 1;
}

.team-description p {
    color: var(--text-muted);
    font-size: 1.045rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.team-description ul {
    margin-top: 16px;
    padding-left: 20px;
}

.team-description li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.btn-view-profile {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
    align-self: flex-start;
}

.btn-view-profile:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.collaborators-note {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    color: var(--text-muted);
}

/* Surprise GIF Section */
.surprise-gif-container {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
}

.surprise-gif {
    max-width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform var(--transition);
    display: block;
    margin: 0 auto;
}

.surprise-gif:hover {
    transform: scale(1.05);
}

.surprise-hint {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.arrow-up {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: bounce-up 1.5s infinite;
}

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

.click-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
}

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.popup-modal.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform var(--transition);
}

.popup-modal.active .popup-content {
    transform: scale(1);
}

.popup-content h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.popup-content p {
    font-size: 1.21rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Services Page --- */
.expertise-section {
    padding: 200px 0 80px;
    margin-top: 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Tab Navigation */
.expertise-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 20px 32px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
    font-family: inherit;
    position: relative;
    bottom: -1px;
    white-space: nowrap;
}

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

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

/* Tab Content */
.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);
    }
}

.expertise-card {
    background: white;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: none;
    box-shadow: none;
}

.expertise-card:hover {
    transform: none;
    box-shadow: none;
}

.expertise-card h3 {
    color: var(--text-dark);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.expertise-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-card li {
    padding: 12px 0;
    padding-left: 0;
    position: relative;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.expertise-card li::before {
    display: none;
}

.industries-note {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: 12px;
    font-style: italic;
    color: var(--text-muted);
}

/* Service Packages */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
    color: white;
}

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

.services-section .section-header h2 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.services-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.32rem;
}

.service-package {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.service-package:last-child {
    margin-bottom: 0;
}

.service-package.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-package.reverse .service-image {
    order: 1;
}

.service-package.reverse .service-content {
    order: 2;
}

.service-content {
    padding: 0;
}

.service-content h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.service-accordion {
    margin-top: 0;
}

.accordion-item {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    text-align: left;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition);
    font-family: inherit;
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform var(--transition);
    color: rgba(255, 255, 255, 0.7);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.accordion-content li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.accordion-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.accordion-content ul ul {
    margin-left: 20px;
    margin-top: 8px;
}

.accordion-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.service-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

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

/* --- Workflow Page --- */
/* Workflow Timeline */
.workflow-timeline-section {
    padding: 200px 0 20px;
    background: white;
    margin-top: 0;
}

.timeline-title {
    text-align: center;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.workflow-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--border-color) 0,
        var(--border-color) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 0;
}

.workflow-timeline::after {
    content: '🎯';
    position: absolute;
    right: 0;
    top: 65px;
    font-size: 1.5rem;
    z-index: 1;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
    transition: transform var(--transition);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    top: 65px;
    width: 2px;
    height: 20px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.timeline-item:hover .timeline-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.timeline-content {
    text-align: center;
    max-width: 180px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.935rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.workflow-section {
    padding: 0 0 80px;
    margin-top: 0;
}

.steps-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
}

.step-start {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.step-start::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2px;
    height: 40px;
    background: repeating-linear-gradient(
        to bottom,
        var(--border-color) 0,
        var(--border-color) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateX(-50%);
}

.step-start img {
    max-width: 100px;
    height: auto;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 280px;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--border-color) 0,
        var(--border-color) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateX(-50%);
    z-index: 0;
}

.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    z-index: 1;
}

.step:last-child {
    margin-bottom: 0;
}

.step-icon-right {
    flex-direction: row;
}

.step-icon-right .step-number {
    order: 1;
}

.step-icon-right .step-content {
    order: 2;
}

.step-icon-right .step-icon {
    order: 3;
}

.step-icon-left {
    flex-direction: row;
}

.step-icon-left .step-icon {
    order: 1;
}

.step-icon-left .step-number {
    order: 2;
}

.step-icon-left .step-content {
    order: 3;
}

.step-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    background: white;
    padding: 0;
    border-radius: 0;
    max-width: none;
}

.step-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--text-muted);
}

/* --- References Page --- */
.references-section {
    padding: 80px 0;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.reference-card {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 16px;
    border-top: 4px solid var(--primary-color);
    transition: all var(--transition);
}

.reference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.reference-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.reference-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- Contact Page --- */
.contact-section {
    padding: 200px 0 80px;
    margin-top: 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.contact-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: white;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-item a {
    color: white;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#form-message {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-weight: 500;
}

.contact-expectation {
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-expectation p {
    font-size: 1.44375rem;
    color: var(--primary-dark);
    line-height: 1.7;
    margin: 0;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.main-footer {
    background: var(--background-darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

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

.footer-brand .site-logo {
    height: 60px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 1.21rem;
    line-height: 1.8;
    max-width: 400px;
}

.footer-contact h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

.footer-contact p {
    margin-bottom: 8px;
}

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

.footer-bottom {
    background: white;
    border: none;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 100%;
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .site-logo {
        height: 70px;
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .about-hero-split {
        min-height: 500px;
        max-height: 500px;
    }
    
    .about-hero-wrapper {
        height: 500px;
    }
    
    .about-hero-text {
        padding: 50px 40px;
    }
    
    .about-video-section {
        height: 350px;
        max-height: 350px;
    }
    
    .workflow-timeline-section {
        padding: 180px 0 20px;
    }
    
    .workflow-timeline {
        gap: 30px;
    }
    
    .steps-container {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .step {
        gap: 30px;
    }
    
    .step-icon {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .site-logo {
        height: 50px;
        max-height: 100%;
    }
    
    .header-content {
        padding: 0 16px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        display: none;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 16px 0;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

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

    .about-content,
    .expertise-grid,
    .benefits-grid,
    .references-grid,
    .team-grid,
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .experience-content {
        padding: 2rem;
    }
    
    .team-card {
        flex-direction: column;
    }
    
    .team-photo-wrapper {
        width: 100%;
        height: auto;
    }
    
    .team-info {
        padding: 30px;
    }
    
    .about-hero-split {
        min-height: auto;
        max-height: none;
        padding-top: var(--header-height);
    }
    
    .about-hero-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 400px;
    }
    
    .about-hero-text {
        flex: 1 1 auto;
        width: 100%;
        padding: 50px 30px;
        min-height: 250px;
        height: auto;
    }
    
    .about-text-content {
        padding: 20px 0;
    }
    
    .about-hero-image {
        flex: 1 1 auto;
        width: 100%;
        height: 250px;
        min-height: 250px;
        order: -1;
    }
    
    .about-hero-image img {
        aspect-ratio: 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .about-video-section {
        height: 300px;
        max-height: 300px;
    }
    
    .about-video-text {
        padding: 0 20px;
    }
    
    .about-video-text p {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .workflow-timeline-section {
        padding: 150px 0 20px;
    }
    
    .workflow-timeline {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }
    
    .workflow-timeline::before {
        display: none;
    }
    
    .workflow-timeline::after {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        max-width: 100%;
    }
    
    .steps-container {
        padding: 20px 0;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step-start {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .step-start img {
        max-width: 80px;
    }
    
    .step-start::after {
        height: 30px;
    }
    
    .step {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 50px;
    }
    
    .step-icon,
    .step-number {
        order: 1;
    }
    
    .step-content {
        order: 2;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand .site-logo {
        height: 50px;
    }
    
    .footer-brand p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .footer-bottom {
        margin: 0;
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
    
    .surprise-gif {
        max-width: 150px;
    }
    
    .expertise-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 0.9rem;
        text-align: left;
        border-bottom: 2px solid var(--border-color);
        border-left: 3px solid transparent;
    }
    
    .tab-button.active {
        border-left-color: var(--primary-color);
        border-bottom-color: var(--border-color);
    }
    
    .service-package {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .service-package.reverse {
        direction: ltr;
    }
    
    .service-content h3 {
        font-size: 1.75rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .workflow-timeline {
        flex-direction: column;
        gap: 40px;
        padding: 20px 0;
    }
    
    .workflow-timeline::before {
        display: none;
    }
    
    .workflow-timeline::after {
        display: none;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        max-width: 100%;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .step-icon,
    .step-number {
        order: 1;
    }
    
    .step-content {
        order: 2;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .service-card,
    .expertise-card,
    .benefit-card,
    .reference-card {
        padding: 24px;
    }
    
    .experience-content {
        padding: 1.5rem;
    }
    
    .experience-item h3 {
        font-size: 1.25rem;
    }
    
    .experience-item p {
        font-size: 0.9rem;
    }
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 2rem;
}
