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

:root {
    /* Professional Light Mode Color Scheme - Boston Inspired */
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary-color: #0f172a;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --background: #ffffff;
    --background-alt: #f7fafc;
    --background-elevated: #ffffff;
    --surface: #ffffff;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e0;

    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #003d7a 100%);
    --gradient-accent: linear-gradient(135deg, #00c48c 0%, #00a876 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Dark Mode Colors */
body.dark-mode {
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e0;

    --background: #1a202c;
    --background-alt: #2d3748;
    --background-elevated: #2d3748;
    --surface: #2d3748;

    --border-color: #4a5568;
    --border-hover: #718096;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--background-elevated);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 2rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: var(--background-alt);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    width: 44px;
    height: 44px;
}

.dark-mode-toggle:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.dark-mode-toggle:hover svg {
    color: white;
}

.dark-mode-toggle svg {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: none;
}

body.dark-mode .moon-icon {
    display: block;
}

/* Section Management */
.section {
    display: block;
    padding: 4rem 0;
    min-height: auto;
    transition: background-color var(--transition-base);
}

/* Hero Section */
.hero-section {
    background: url('images/boston-skyline.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background-position: center 40%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 58, 138, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6),
                 0 0 30px rgba(59, 130, 246, 0.3);
}

.hero-highlight {
    color: #fbbf24;
    display: block;
    margin-top: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6),
                 0 0 30px rgba(251, 191, 36, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a202c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-section {
    background: var(--background);
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

/* Achievements Section */
.achievements-section {
    background: var(--background-alt);
    padding: 6rem 0;
}

.achievements-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.achievement-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.achievement-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.achievement-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Leadership Section */
.leadership-section {
    background: var(--background);
    padding: 6rem 0;
}

.leadership-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.leadership-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.philosophy-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.philosophy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.philosophy-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: var(--background-alt);
    padding: 6rem 0;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

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

.contact-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

/* Contact Form */
.contact-form-wrapper {
    margin-top: 2rem;
}

.contact-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-elevated);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

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

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

/* Honeypot - hidden spam trap */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid #ef4444;
}

.form-status.info {
    display: block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-method svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-method h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.contact-method p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Profile Section - Keep for backwards compatibility */
.profile-section {
    background: var(--gradient-primary);
    color: white;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    transition: transform var(--transition-base);
}

.profile-image img:hover {
    transform: scale(1.05);
}

.profile-info h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-info .title {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

.social-link {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-content {
    background: var(--background-elevated);
    color: var(--text-primary);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.profile-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.profile-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.education-list {
    list-style: none;
}

.education-list li {
    padding: 1.25rem;
    background: var(--background-alt);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.education-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.education-list strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

/* Experience Section */
.experience-section {
    background: var(--background-alt);
}

.experience-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

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

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--background-alt);
    box-shadow: 0 0 0 4px var(--primary-color);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
}

.timeline-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-left: 2rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 120px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all var(--transition-base);
}

.timeline-content:hover .company-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.dark-mode .company-logo {
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.7;
}

.dark-mode .timeline-content:hover .company-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.timeline-content ul {
    list-style: none;
    margin-top: 1rem;
}

.timeline-content ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-secondary);
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Skills Section */
.skills-section {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

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

.skill-category {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.skill-category li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Blog Section */
.blog-section {
    background: var(--background);
}

.blog-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.filter-controls,
.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-controls label,
.sort-controls label {
    font-weight: 600;
    color: var(--text-primary);
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--background-elevated);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
}

.tag-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--background-alt);
}

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

#sortSelect {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-elevated);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#sortSelect:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--background-alt);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 1rem;
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--background-alt);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.read-more {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.read-more:hover {
    background: var(--primary-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background: var(--surface);
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 16px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--shadow-xl);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-elevated);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
    border-color: var(--primary-color);
}

.blog-post-full {
    padding: 3rem;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.post-date {
    color: var(--text-muted);
    font-weight: 600;
}

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

.post-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.share-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.share-btn.copy-link {
    background: var(--primary-color);
    color: white;
}

.share-btn.copy-link:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #004182;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.email {
    background: #718096;
    color: white;
}

.share-btn.email:hover {
    background: #4a5568;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.copy-notification {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--success-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.copy-notification.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

body.dark-mode .footer {
    background: #0f1419;
}

/* Dark Mode Hero Adjustments */
body.dark-mode .hero-section::before {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.90) 0%,
        rgba(30, 58, 138, 0.80) 50%,
        rgba(15, 23, 42, 0.90) 100%
    );
}

body.dark-mode .hero-section::after {
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* Dark Mode Section Headings */
body.dark-mode .section h2 {
    color: #fbbf24;
}

/* Dark Mode Navigation */
body.dark-mode .nav-link {
    color: #d1d5db;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: #fbbf24;
}

body.dark-mode .nav-brand h1 {
    color: #fbbf24;
}

/* Dark Mode Experience Section */
body.dark-mode .timeline-date {
    color: #fbbf24;
}

body.dark-mode .experience-timeline::before {
    background: #fbbf24;
}

body.dark-mode .timeline-marker {
    background: #fbbf24;
    box-shadow: 0 0 0 4px #fbbf24;
}

body.dark-mode .timeline-content ul li::before {
    color: #fbbf24;
}

/* Dark Mode Leadership Philosophy */
body.dark-mode .philosophy-card h3 {
    color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        order: 3;
        flex-basis: 100%;
        font-size: 0.9rem;
    }

    .dark-mode-toggle {
        order: 2;
    }

    /* Hero Section */
    .hero-section {
        padding: 6rem 1.5rem 3rem;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image img {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    /* Achievements Section */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Leadership Section */
    .leadership-content {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-form {
        padding: 2rem 1.5rem;
    }

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-info .title {
        font-size: 1.2rem;
    }

    .social-links {
        justify-content: center;
    }

    .profile-content {
        padding: 2rem 1.5rem;
    }

    .profile-content h2 {
        font-size: 1.5rem;
    }

    .experience-section h2,
    .skills-section h2,
    .blog-section h2 {
        font-size: 2rem;
    }

    .experience-timeline {
        padding-left: 1rem;
    }

    .timeline-content {
        margin-left: 1rem;
        padding: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
    }

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

    .blog-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-controls,
    .sort-controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .tag-filters {
        width: 100%;
    }

    #sortSelect {
        width: 100%;
    }

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

    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .blog-post-full {
        padding: 2rem 1.5rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

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

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .post-image {
        height: 250px;
    }
}

/* Achievement Carousel Indicators */
.achievement-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.achievement-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.achievement-indicator:hover {
    background: var(--primary-color);
    opacity: 0.7;
    transform: scale(1.2);
}

.achievement-indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Achievement Fade Animations */
.achievements-grid.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.achievements-grid.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Dark Mode Indicator Styles */
body.dark-mode .achievement-indicator {
    border-color: #fbbf24;
}

body.dark-mode .achievement-indicator.active {
    background: #fbbf24;
}

body.dark-mode .achievement-indicator:hover {
    background: #fbbf24;
}
