/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4f46e5;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #c7d2fe;
}

.hero-tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #a5b4fc;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4f46e5;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f9fafb;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4f46e5;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #6b7280;
    font-weight: 500;
}

.expertise {
    margin-top: 4rem;
}

.expertise h3 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expertise-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
}

.expertise-item i {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.expertise-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.expertise-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Achievements Section */
.achievements {
    padding: 100px 0;
    background: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    border-left: 4px solid #4f46e5;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.achievement-icon i {
    font-size: 2rem;
    color: white;
}

.achievement-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.achievement-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.achievement-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #4f46e5;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Articles Section */
.articles {
    padding: 100px 0;
    background: #f9fafb;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    background: #4f46e5;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0;
    color: #1f2937;
    line-height: 1.4;
}

.article-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.article-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link:hover {
    text-decoration: underline;
}

.articles-cta {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.articles-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-method h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.contact-method a {
    color: #4f46e5;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #4f46e5;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        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: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .achievements-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.achievement-card,
.article-card {
    animation: fadeInUp 0.6s ease-out;

}
/* Modern Hero Section Styles */
.hero {
    position: relative;
    background: linear-gradient(120deg, #5f6ddf 0%, #7f8ff4 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
}

.hero-container.modern-hero {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
    padding: 3rem 2rem;
}

.hero-content {
    flex: 1.2;
    color: #fff;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 1.2rem 0;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #e0e6f7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 2px 8px rgba(95, 109, 223, 0.08);
}

.btn-primary {
    background: #fff;
    color: #5f6ddf;
    border: none;
}

.btn-primary:hover {
    background: #e0e6f7;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #5f6ddf;
    color: #fff;
    border: 2px solid #e0e6f7;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: #5f6ddf;
    background: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(95, 109, 223, 0.12);
    transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
    background: #5f6ddf;
    color: #fff;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(95, 109, 223, 0.18);
    border: 6px solid #fff;
    background: #e0e6f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .hero-container.modern-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1rem;
    }
    .hero-image {
        margin-top: 2rem;
    }
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .hero-container.modern-hero {
        padding: 1rem 0.5rem;
    }
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    .hero-title {
        font-size: 1.4rem;
    }
}
.hero {
    position: relative;
    background: linear-gradient(120deg, #5f6ddf 0%, #38b2ac 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
}

.hero-container.modern-hero {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
    padding: 3rem 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(95, 109, 223, 0.18);
    border: 8px solid #fff;
    background: #e0e6f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    min-width: 100%;
    min-height: 100%;
    display: block;
    background: #e0e6f7;
}

.hero-content {
    flex: 1.2;
    color: #fff;
    z-index: 2;
    margin-left: 3rem;
}

@media (max-width: 900px) {
    .hero-container.modern-hero {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }
    .hero-content {
        margin-left: 0;
        margin-top: 2rem;
        text-align: center;
    }
    .profile-photo {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 600px) {
    .hero-container.modern-hero {
        padding: 1rem 0.5rem;
    }
    .profile-photo {
        width: 140px;
        height: 140px;
    }
}
/* [Your entire CSS up to before the first .profile-photo block remains unchanged] */

/* ...all your existing CSS above... */

/* --- REMOVE ALL OLD .profile-photo, .profile-photo img, and .hero-title blocks and their media query versions! --- */

/* --- Profile Photo Styles (Final) --- */
.profile-photo {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(95, 109, 223, 0.18);
    border: 10px solid #fff;
    background: #e0e6f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #e0e6f7;
}

/* --- Hero Title Styles (Final) --- */
.hero-title {
    font-size: 2.5rem;      /* Adjust this value if you want it bigger/smaller */
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    white-space: nowrap;    /* Keeps the name in one line */
}

/* --- Responsive Adjustments (Final) --- */
@media (max-width: 1200px) {
    .profile-photo {
        width: 320px;
        height: 320px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    .profile-photo {
        width: 220px;
        height: 220px;
    }
    .hero-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    .hero-title {
        font-size: 1rem;
    }
}
.newsletter-section {
    background: #f9fafb;
    padding: 60px 0;
    text-align: center;
}
.newsletter-section h2 {
    font-size: 2.2rem;
    color: #4f46e5;
    margin-bottom: 2rem;
}
.newsletter-feed {
    margin: 0 auto 2rem;
    max-width: 1200px;
}
.newsletter-section .btn {
    margin-top: 1rem;
}
@media (max-width: 1000px) {
    .newsletter-feed iframe {
        width: 100% !important;
        height: 430px !important;
    }
}
.newsletter-feed {
  max-width: 1200px;   /* give the carousel enough room for 4 columns */
  margin: 0 auto;
}

.newsletter-feed iframe {
  width: 100% !important;   /* override the 360px inline width */
  height: 440px !important;
}
/* Contact layout: two columns with the form on the right (desktop) */
@media (min-width: 900px) {
  .contact-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 4rem;
  }
  .contact-info { 
    grid-column: 1; 
    width: 100%;
  }
  .contact-form { 
    grid-column: 2; 
    margin: 0; 
    width: 100%;
    justify-self: stretch;
  }
}

/* Mobile/tablet: stack */
@media (max-width: 899px) {
  .contact-content {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
/* Mobile polish for header, hero, and About intro (phones only) */
@media (max-width: 768px) {
  /* Keep comfortable side padding */
  .nav-container,
  .hero-container.modern-hero,
  .about .container,
  .articles .container,
  .contact .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Ensure hero content clears the fixed navbar */
  .hero {
    padding-top: 96px !important;
    padding-bottom: 28px;
  }

  /* Readable typography at the top */
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 10px;
  }
  .hero-subtitle { font-size: 1.05rem !important; }
  .hero-description,
  .hero-tagline {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }

  /* About intro and paragraphs */
  .about { padding: 56px 0 !important; }
  .about-text { font-size: 1rem !important; line-height: 1.7 !important; }
  .about-intro { margin-bottom: 12px !important; }

  /* Card grids behave well on narrow screens */
  .articles-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .achievements-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .expertise-grid { grid-template-columns: 1fr !important; gap: 16px; }

  /* Buttons stack nicely */
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { width: 100%; max-width: 280px; margin: 0 auto; }
}
/* Phone-only fix for About section margins and readability */
@media (max-width: 768px) {
  /* Strong side padding just for the About section */
  .about .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  /* Stack the columns with comfortable gap */
  .about-content {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Keep the text column from getting too wide edge-to-edge */
  .about .section-title,
  .about-text {
    max-width: 64ch;           /* ~optimal reading width */
    margin-left: auto;
    margin-right: auto;
  }

  .about-text {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .about-text p { margin-bottom: 12px; }
  .about-intro { margin-bottom: 10px !important; }
}
/* Phones: make About section align exactly like Core Expertise */
@media (max-width: 767px) {
  /* Match the same inner padding as your other sections */
  .about .container {
    padding-left: 20px !important;   /* adjust to 22px if Core Expertise uses 22 */
    padding-right: 20px !important;
  }

  /* Stack columns cleanly */
  .about-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin: 0 !important;
  }

  /* Keep text line length comfy and aligned with cards */
  .about .section-title,
  .about-text {
    max-width: 64ch;
    margin-left: auto;
    margin-right: auto;
  }

  /* Make the stat cards line up with the same left/right edge as cards below */
  .about-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;  /* one per row on phones */
    gap: 16px !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: initial !important;
  }

  .stat-item {
    width: 100% !important;
    margin: 0 !important;             /* remove any residual side margins */
    box-sizing: border-box;            /* ensure padding doesn't overflow */
  }

  /* Typography polish */
  .about-text { font-size: 1rem !important; line-height: 1.7 !important; }
  .about-text p { margin-bottom: 12px; }
  .about-intro { margin-bottom: 10px !important; }
}
/* Phones: move profile photo above the big name in the hero */
@media (max-width: 767px) {
  /* Stack hero vertically on phones */
  .hero-container.modern-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 12px;
  }

  /* Show the photo first */
  .hero-image {
    order: -1 !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Reset any desktop-specific positioning on the avatar */
  .profile-photo {
    position: static !important;
    transform: none !important;
    margin: 0 auto 8px !important;
    width: 120px !important;     /* tweak to 128/140 if you want it larger */
    height: 120px !important;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;       /* keeps a clean ring on the gradient */
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  }

  .profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;  /* shows more of your face; use center if you prefer */
    display: block;
  }

  /* Small spacing nudge under the photo before the name */
  .hero-title { margin-top: 4px !important; }
}
/* Phones: hamburger dropdown menu */
@media (max-width: 767px) {
  .nav-container { position: relative; }

  /* Hide menu by default on phones */
  .nav-menu {
    position: absolute;
    top: 56px;                 /* sits under the navbar */
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 9999;
    min-width: 200px;
  }

  /* Show when toggled */
  .nav-menu.active { display: flex; }

  /* Make links readable on white background */
  .nav-menu .nav-link {
    color: #111 !important;
    padding: 8px 4px;
  }

  /* Ensure the hamburger sits above everything and is easy to tap */
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 10001;
    padding: 8px;              /* bigger tap target */
  }
}
/* Phones: keep hamburger visible and drop menu below the bar */
@media (max-width: 767px) {
  .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
  .nav-container { position: relative; }

  /* Hamburger always above the dropdown */
  .hamburger {
    display: block;
    position: relative;
    z-index: 10002;            /* higher than the menu */
    padding: 8px;
    cursor: pointer;
    color: #111;               /* bar color (adjust if your header is dark) */
  }
  .hamburger .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    border-radius: 2px;
  }

  /* Dropdown menu: hidden by default, positioned under the navbar */
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);     /* sits just below the navbar */
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 10001;            /* below the hamburger */
    min-width: 200px;
  }

  .nav-menu.active { display: flex; }

  .nav-menu .nav-link {
    color: #111 !important;
    padding: 8px 4px;
  }
}





