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

:root {
    /* Primary Brand Colors from Analysis */
    --primary-dark: #494949;
    --primary-mid: #5c5c5c;
    --primary-light: #d1d1d1;
    --primary-accent: #adadad;
    
    /* Supporting Colors */
    --background-light: #f5f5f5;
    --background-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #666666;
    --text-light: #999999;
    --border-light: #e0e0e0;
    
    /* Gradient Definitions */
    --brand-gradient: linear-gradient(135deg, #5c5c5c 0%, #d1d1d1 47%, #494949 100%);
    --subtle-gradient: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    
    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-mid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    font-weight: var(--font-weight-regular);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    height: 48px;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    letter-spacing: -0.02em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: var(--font-weight-regular);
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: width 0.3s ease;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-fast);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(73, 73, 73, 0.95) 0%,
        rgba(73, 73, 73, 0.85) 40%,
        rgba(73, 73, 73, 0.4) 60%,
        transparent 100%
    );
}

.hero-logo-overlay {
    position: absolute;
    top: 100px;
    right: var(--space-xl);
    z-index: 2;
}

.hero-logo {
    height: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    opacity: 0.95;
}

.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-content {
    text-align: left;
    color: white;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 var(--space-xxl);
    padding-top: 60px;
}

.hero-content > * {
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-lg);
    animation: fadeInUp 1s ease 0.4s backwards;
    margin-top: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* About Section */
.about {
    padding: var(--space-xxl) 0;
    background: var(--background-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.about-content {
    padding-right: var(--space-lg);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}

.body-text {
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.about-visual {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.frame-accent {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: var(--brand-gradient);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services {
    padding: var(--space-xxl) 0;
    background: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    background: var(--brand-gradient);
}

.service-card.featured {
    background: var(--brand-gradient);
    color: white;
    border: none;
}

.service-card.featured .service-icon,
.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-features {
    color: white;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 12px;
    margin-bottom: var(--space-md);
    color: var(--primary-mid);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.service-description {
    color: var(--text-medium);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-mid);
}

.service-card.featured .service-features li::before {
    color: white;
}

/* Process Section */
.process {
    padding: var(--space-xxl) 0;
    background: white;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: var(--space-xxl) auto 0;
    padding: 0 var(--space-md);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-xxl);
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 64px;
    height: 64px;
    background: white;
    border: 3px solid var(--primary-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.marker-number {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-mid);
}

.timeline-content {
    width: calc(50% - 60px);
    padding: var(--space-md);
    background: var(--background-light);
    border-radius: 12px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

.timeline-description {
    color: var(--text-medium);
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.timeline-duration {
    font-size: 0.875rem;
    color: var(--primary-mid);
    font-weight: var(--font-weight-semibold);
}

/* Expertise Section */
.expertise {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
}

.expertise-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.expertise-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: white;
    border-radius: 12px;
    transition: var(--transition-base);
}

.expertise-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateX(8px);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    background: var(--background-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-mid);
}

.expertise-text h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

.expertise-text p {
    color: var(--text-medium);
    line-height: 1.6;
}

.expertise-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    position: sticky;
    top: 100px;
}

.metric-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.metric-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.metric-value {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Section */
.contact {
    padding: var(--space-xxl) 0;
    background: var(--background-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.contact-description {
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-method {
    display: flex;
    gap: var(--space-sm);
    align-items: start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-mid);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-value {
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
}

.response-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--background-light);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.response-time svg {
    color: var(--primary-mid);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(92, 92, 92, 0.1);
}

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

.btn-submit {
    background: var(--brand-gradient);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(73, 73, 73, 0.3);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-xxl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
}

.footer-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    justify-content: end;
    padding-left: var(--space-xxl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-title {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    color: white;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: white;
}

.separator {
    color: var(--text-light);
    font-size: 0.875rem;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .expertise-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .expertise-metrics {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: var(--space-lg) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -6px);
    }
    
    /* Hero */
    .hero-container {
        padding: 0 var(--space-md);
    }
    
    .hero-content {
        width: 100%;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-logo-overlay {
        top: 80px;
        right: var(--space-md);
    }
    
    .hero-logo {
        height: 120px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    /* Process */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xxl: 48px;
        --space-xl: 32px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .expertise-metrics {
        grid-template-columns: 1fr;
    }
}