:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --blue: #0071e3;
    --blue-hover: #0077ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1000;
}

/* Keep dropdown open when hovering over the gap */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--black);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    background: var(--white);
    margin-top: 65px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-photo {
    text-align: center;
}

.hero-photo img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--gray-200);
}

.photo-caption {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 500;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: var(--gray-600);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    border-radius: 980px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: var(--white);
    color: var(--blue);
    box-shadow: inset 0 0 0 2px var(--blue);
}

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

.section-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-card {
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-400);
}

.card-image {
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gradient-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-company {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.view-all-container {
    text-align: center;
}

.view-all-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    border-radius: 980px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background: var(--white);
    color: var(--blue);
    box-shadow: inset 0 0 0 2px var(--blue);
}

/* Blog Section */
.blog-section {
    padding: 6rem 2rem;
    background: var(--white);
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.blog-content {
    max-width: 700px;
    margin: 0 auto;
}

.blog-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.blog-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.text-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid var(--black);
}

.text-link:hover {
    opacity: 0.7;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-info {
    margin-bottom: 2.5rem;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--black);
    text-decoration: underline;
}

.contact-info a:hover {
    opacity: 0.7;
}

.social-links {
    margin-top: 1.5rem;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 980px;
    transition: all 0.2s ease;
}

.linkedin-btn:hover {
    background: var(--white);
    color: var(--blue) !important;
    box-shadow: inset 0 0 0 2px var(--blue);
    opacity: 1;
}

.linkedin-btn svg {
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.contact-form input,
.contact-form textarea {
    padding: 0.875rem;
    border: 1px solid var(--gray-300);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--black);
    outline-offset: 0;
    border-color: var(--black);
}

.contact-form button {
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    border-radius: 980px;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: var(--blue-hover);
}

/* Footer */
footer {
    padding: 2rem;
    background: var(--black);
    color: var(--gray-400);
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-photo img {
        width: 220px;
        height: 220px;
    }
    
    .case-study-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .case-studies,
    .blog-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
