/* ============================================================================
   ANANTH SRIDEV - DIGITAL MARKETING PORTFOLIO WEBSITE
   Complete Stylesheet with All Components
   ============================================================================ */

/* CSS Variables */
:root {
    --primary: #2563EB;
    --secondary: #0F172A;
    --accent: #F59E0B;
    --dark: #1E293B;
    --light: #F8FAFC;
    --text: #334155;
    --border: #E2E8F0;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
    max-width: 100vw;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: slideDown 0.5s ease-out;
}

nav.scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 68px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav a.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.855rem;
    transition: color 0.2s, background 0.2s;
    position: relative;
    padding: 7px 13px;
    border-radius: 6px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

nav a.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

nav a.nav-link.active {
    color: #60A5FA;
    font-weight: 600;
}

nav a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

nav a.nav-link:hover::after {
    width: 16px;
}

nav a.nav-link.active::after {
    width: 16px;
    background: #60A5FA;
}

nav a.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-left: 10px;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

nav a.nav-cta::after {
    display: none;
}

nav a.nav-cta:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    color: #fff !important;
}

nav a.nav-cta.active {
    background: #1D4ED8;
    color: #fff !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 7px;
    border-radius: 6px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Page Section */
.page-section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    background: white;
}

.page-section.dark-section {
    background: var(--secondary);
    color: white;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.cta-button.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

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

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 5% 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-category {
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category.seo { background: #10B981; color: white; }
.blog-category.ppc { background: #F59E0B; color: white; }
.blog-category.analytics { background: #6366F1; color: white; }
.blog-category.strategy { background: #EC4899; color: white; }
.blog-category.automation { background: #8B5CF6; color: white; }

.blog-content {
    padding: 2rem;
}

.post-meta-small {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.blog-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.blog-content h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

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

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.featured-image {
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-content {
    padding: 3rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-meta span {
    font-size: 0.9rem;
}

.featured-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.featured-content h2 a {
    color: var(--dark);
    text-decoration: none;
}

.featured-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #1E40AF;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
    color: white;
    padding: 4rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 5rem;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #D97706;
    transform: translateY(-2px);
}

/* Portfolio Styles */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 25px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 300px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.project-category {
    display: inline-block;
    background: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.portfolio-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-project {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.portfolio-info h3 a {
    color: var(--dark);
    text-decoration: none;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
}

.stat span {
    font-size: 0.85rem;
    color: var(--text);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--light);
    color: var(--dark);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 4rem 2rem;
    background: var(--light);
    border-radius: 15px;
}

.portfolio-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.portfolio-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    margin-top: 3rem;
}

.contact-form-wrapper {
    background: var(--light);
    padding: 3rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    color: var(--dark);
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

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

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #1E40AF;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-bio {
    line-height: 1.7;
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-item strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-item span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-media-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateX(5px);
}

.social-icon.linkedin:hover {
    background: #0A66C2;
}

.social-icon.twitter:hover {
    background: #1DA1F2;
}

.social-icon.facebook:hover {
    background: #1877F2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.footer-contact {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.contact-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-cta-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-cta-btn:hover {
    background: #1E40AF;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1E40AF;
    transform: translateY(-5px);
}

/* Blog Post Page */
.blog-post-page {
    padding: 120px 0 80px;
    background: white;
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-meta-large {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-meta-large .category {
    background: var(--primary);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-meta-large .category.seo { background: #10B981; }
.post-meta-large .category.ppc { background: #F59E0B; }
.post-meta-large .category.analytics { background: #6366F1; }
.post-meta-large .category.strategy { background: #EC4899; }
.post-meta-large .category.automation { background: #8B5CF6; }

.post-excerpt {
    font-size: 1.05rem;
    color: var(--text);
    margin-top: 0.5rem;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.5rem;
    align-items: start;
}

.post-content h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.6rem;
    color: var(--dark);
}

.post-content h3 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.2rem;
    color: var(--dark);
}

.post-content p,
.post-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.post-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--secondary);
}

.sidebar-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.6rem;
}

.sidebar-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

/* Grid blowout prevention — all direct grid/flex children get min-width: 0 */
.svc-grid > *,
.portfolio-grid-masonry > *,
.blog-grid > *,
.strengths-grid > *,
.about-grid > *,
.footer-content > * {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* CTA Section (used on services, contact pages) */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light);
    border-radius: 15px;
    margin-top: 2rem;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page Components */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-story p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.strength-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.strength-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.strength-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
}

/* Career Evolution (about page) */
.career-evolution {
    background: var(--light);
    border-radius: 12px;
    padding: 2rem;
}

.evolution-path {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.evolution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
}

.evolution-arrow {
    color: var(--primary);
    font-weight: 700;
}

/* Post navigation — simple inline links */
.post-nav-simple {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.post-nav-simple a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    max-width: 45%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.post-nav-simple a:hover {
    text-decoration: underline;
}

/* Post navigation — legacy large cards (kept but unused) */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.post-nav-item {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post-nav-item:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37,99,235,0.1);
    transform: translateY(-2px);
}

.post-nav-item.next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 700;
}

.post-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* services.html inline grid */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* How an Engagement Works - 4 col */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid-masonry {
        grid-template-columns: 1fr;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }

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

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

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 30, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 16px 24px;
        gap: 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
        transform: translateY(-110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    nav ul.active {
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul li {
        width: 100%;
    }

    nav a.nav-link {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    nav a.nav-cta {
        display: block;
        text-align: center;
        margin: 10px 0 0 0;
        padding: 13px 20px;
        border-radius: 8px;
    }

    .menu-toggle {
        display: flex;
    }

    .page-section {
        padding: 100px 5% 60px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

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

    .portfolio-info .project-stats {
        gap: 1rem;
    }

    .portfolio-info {
        padding: 1.5rem;
    }

    .portfolio-overlay {
        padding: 1.25rem;
    }

    .portfolio-overlay h3 {
        font-size: 1.4rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-item.next {
        text-align: left;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-content h2 {
        font-size: 1.6rem;
    }

    .newsletter-section {
        padding: 2rem 1.5rem;
    }

    .newsletter-content h2 {
        font-size: 1.75rem;
    }

    .portfolio-cta {
        padding: 2.5rem 1.5rem;
    }

    .portfolio-cta h2 {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* services.html inline grid */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* How an Engagement Works - 4 col */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* about certifications/education 2-col */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 100px 5% 60px;
    }

    .page-section {
        padding: 90px 4% 50px;
    }

    .container {
        padding: 0 4%;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-overlay {
        padding: 1rem;
    }

    .portfolio-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .portfolio-overlay p {
        display: none;
    }

    .portfolio-info {
        padding: 1.25rem;
    }

    .stat strong {
        font-size: 1.4rem;
    }

    .stat span {
        font-size: 0.75rem;
    }

    .blog-post-page {
        padding: 100px 0 60px;
    }

    .svc-grid > div,
    .strengths-grid > div {
        padding: 1.5rem;
    }

    .newsletter-content h2 {
        font-size: 1.4rem;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .footer-content {
        padding: 0 1rem;
    }
}
