/* ====================================
   CSS Variables & Typography
   ==================================== */
:root {
    /* Colors - Refined Professional Palette */
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #0f4c75;
    --color-highlight: #3282b8;
    --color-text: #2c3e50;
    --color-text-light: #546e7a;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e0e6ed;
    --color-success: #2e7d32;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--color-accent);
}

/* ====================================
   Layout Containers
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ====================================
   Header & Navigation
   ==================================== */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.nav-brand a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-highlight);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(15, 76, 117, 0.03) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.title-accent {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-highlight);
    font-family: var(--font-body);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ====================================
   Sections
   ==================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-accent));
    border-radius: 2px;
}

/* ====================================
   About Section
   ==================================== */
.about-section {
    background: var(--color-bg-alt);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.6;
}

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

.capability-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.capability-card h3 {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-bg-alt);
}

.capability-card ul {
    list-style: none;
}

.capability-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.capability-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-highlight);
    font-weight: bold;
}

/* ====================================
   Experience Section - Timeline
   ==================================== */
.experience-section {
    background: white;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-highlight), var(--color-accent));
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-highlight);
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(50, 130, 184, 0.2);
}

.timeline-content {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-highlight);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.35rem;
    margin: 0;
    flex: 1;
}

.timeline-period {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
    white-space: nowrap;
}

.timeline-company {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.timeline-highlights {
    list-style: none;
}

.timeline-highlights li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.timeline-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-highlight);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ====================================
   Articles & Blog
   ==================================== */
.recent-articles-section {
    background: var(--color-bg-alt);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.view-all-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-highlight);
    transition: var(--transition);
}

.view-all-link:hover {
    transform: translateX(4px);
}

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

.article-card,
.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.article-card:hover,
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.article-meta,
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-meta time,
.blog-card-meta time {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.article-tags,
.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title,
.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-title a,
.blog-card-title a {
    color: var(--color-primary);
    transition: var(--transition);
}

.article-title a:hover,
.blog-card-title a:hover {
    color: var(--color-highlight);
}

.article-summary,
.blog-card-summary {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--color-highlight);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* ====================================
   Blog Post Single
   ==================================== */
.blog-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.blog-header .page-title {
    color: white;
    margin-bottom: 1rem;
}

.blog-header .page-description {
    font-size: 1.25rem;
    opacity: 0.9;
}

.blog-list-section {
    padding: var(--spacing-xl) 0;
}

.post-header {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background: var(--color-bg-alt);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-meta time {
    color: var(--color-text-light);
    font-weight: 500;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-summary {
    font-size: 1.35rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.post-content {
    padding: var(--spacing-lg) 0;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content ul,
.post-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content strong {
    font-weight: 600;
    color: var(--color-primary);
}

.post-content code {
    background: var(--color-bg-alt);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content blockquote {
    border-left: 4px solid var(--color-highlight);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-footer {
    background: var(--color-bg-alt);
    padding: var(--spacing-lg) 0;
}

.post-author {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-info p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.author-links {
    display: flex;
    gap: 1.5rem;
}

.author-links a {
    font-weight: 600;
    color: var(--color-highlight);
}

.back-to-blog {
    display: inline-block;
    font-weight: 600;
    color: var(--color-highlight);
    transition: var(--transition);
}

.back-to-blog:hover {
    transform: translateX(-4px);
}

/* ====================================
   Contact Section
   ==================================== */
.contact-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background: white;
}

.contact-section .lead-text {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-button,
.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    max-width: 400px;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.button-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* ====================================
   Footer
   ==================================== */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 0.75rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

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

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .title-line {
        font-size: 2.5rem;
    }
    
    .title-accent {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .articles-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
}
