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

/* Global Theme: unify background and text across all sections */
:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --heading: #111827;
    --muted: #4b5563;
}

html, body {
    background: var(--bg);
    color: var(--text);
}

/* Ensure every major section inherits the same background */
section, .hero, .about, .skills, .experience, .research, .projects, .resume, .testimonials, .contact {
    background: var(--bg);
}

/* Consistent typography colors */
h1, h2, h3, .section-title { color: var(--heading); }
p, li { color: var(--muted); }

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Focus Styles */
*:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Custom focus for buttons and links */
.btn:focus,
.nav-link:focus,
.project-link:focus,
.research-link:focus,
.social-link:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px #2563eb;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(37, 99, 235, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* Ensure minimum 16px base font size for accessibility */
    line-height: 1.6;
    color: #1a1a1a; /* Improved contrast */
    background-color: #ffffff;
}

.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;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    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: #ffffff;
    color: #1a1a1a;
    position: relative;
    padding: 80px 0;
}

/* removed hero overlay to keep background uniform */


.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.highlight {
    font-weight: 700;
    color: #000000;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineExpand 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #666666;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: #4a4a4a;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
    max-width: 500px;
    font-weight: 400;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.profile-card {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    backdrop-filter: blur(20px);
}

.profile-image {
    width: 220px;
    height: 280px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 17px;
    display: block;
    padding: 8px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: white;
    opacity: 0.7;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background: #000000;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

/* About Section */
.about {
    background: #ffffff;
    position: relative;
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--muted);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    border: 3px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 27px;
    display: block;
    padding: 12px;
}

/* Skills Section */
.skills {
    background: #ffffff;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-align: center;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #000000;
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-item {
    background: #f5f5f5;
    color: #1a1a1a;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    border: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

/* Experience Section */
.experience {
    background: #ffffff;
    padding: 80px 0;
    color: #1f2937;
    position: relative;
}

.experience .container {
    position: relative;
    z-index: 1;
}

.experience .section-title {
    color: var(--heading);
    margin-bottom: 4rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px #e5e7eb;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    display: inline-block;
    border: 1px solid #e5e7eb;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* Research Section */
.research {
    background-color: #ffffff;
}

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

.research-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
}

.research-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.research-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.research-journal {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.research-content p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.research-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.research-link:hover {
    color: #1d4ed8;
}

/* Projects Section */
.projects {
    background-color: #ffffff;
}

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

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #000000;
}

.project-image {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #666666;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.project-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: #f5f5f5;
    color: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e0e0e0;
}

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

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

/* Resume Section */
.resume {
    background-color: #ffffff;
    padding: 80px 0;
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.resume-preview {
    display: flex;
    justify-content: center;
}

.resume-card {
    width: 100%;
    max-width: 400px;
    min-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.resume-card-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 2rem;
    text-align: center;
}

.resume-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.resume-card-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.resume-card-body {
    padding: 2rem;
}

.resume-section {
    margin-bottom: 1.5rem;
}

.resume-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.resume-section p {
    color: var(--muted);
    line-height: 1.6;
}

.resume-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resume-actions p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.resume-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 3rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        left: 0.5rem;
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .timeline-date {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content h4 {
        font-size: 0.9rem;
    }
    
    .timeline-content li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .resume-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .resume-buttons {
        flex-direction: column;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: #ffffff;
    padding: 80px 0;
}

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

.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #2563eb;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content p {
    font-style: italic;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: #2563eb;
    position: absolute;
    top: -10px;
    left: -15px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.achievements {
    text-align: center;
}

.achievements h3 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.achievement-item {
    background: #ffffff;
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-3px);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.achievement-text {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.resume-download {
    margin: 1.5rem 0;
}

.resume-download .btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resume-download .btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.contact-method i {
    color: #2563eb;
    font-size: 1.2rem;
    width: 20px;
    margin-right: 0.5rem;
}

.contact-link {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #2563eb;
    transform: translateX(3px);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.social-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.highlight-form {
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
    transform: translateY(-5px);
    border: 2px solid rgba(37, 99, 235, 0.3);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Form Label Styles */
.form-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Error Message Styles */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    font-weight: 500;
}

/* Form Help Text */
.form-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    min-height: 2.5rem;
}

.form-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

/* Improved Button Contrast */
.btn-primary {
    background: #1f2937;
    color: #ffffff;
    border: 2px solid #1f2937;
}

.btn-primary:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #1f2937;
    border: 2px solid #1f2937;
}

.btn-secondary:hover {
    background: #1f2937;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes underlineExpand {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(10px) translateY(-10px);
    }
    50% {
        transform: translateX(-5px) translateY(5px);
    }
    75% {
        transform: translateX(5px) translateY(-5px);
    }
}

@keyframes gridMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(50px) translateY(50px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .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;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .experience-timeline::before {
        left: 20px;
    }

    .experience-item {
        flex-direction: column !important;
        align-items: flex-start;
    }
    
    .experience-logo-container {
        position: relative;
        left: 20px;
        transform: none;
        margin-bottom: 15px;
        width: 60px;
        height: 60px;
    }
    
    .experience-item:hover .experience-logo-container {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    
    /* Ensure logos are properly sized on mobile */
    .experience-logo {
        max-width: 85%;
        max-height: 85%;
    }

    .experience-item .experience-content {
        margin-left: 3rem !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

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

    .research-card {
        flex-direction: column;
        text-align: center;
    }

}

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}
