/* Global Styles */
:root {
    --primary-color: #2563eb; /* Blue-600 */
    --secondary-color: #1e40af; /* Blue-800 */
    --accent-color: #3b82f6; /* Blue-500 for highlights */
    --light-color: #f8fafc; /* Slate-50 - cleaner background */
    --dark-color: #0f172a; /* Slate-900 - deeper dark */
    --text-color: #475569; /* Slate-600 - better readability */
    --text-light: #64748b; /* Slate-500 */
    --gray-light: #e2e8f0; /* Slate-200 */
    --gray-medium: #94a3b8; /* Slate-400 */
    --gray-dark: #64748b; /* Slate-500 */
    --white-color: #ffffff;
    --black-color: #000000;
    --success-color: #10b981; /* Emerald-500 */
    --error-color: #ef4444;   /* Red-500 */
    --border-color: #e2e8f0; /* Consistent border color */
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth; /* Apply smooth scrolling globally */
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color); /* Base background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Alternating section backgrounds for better visual separation */
section:nth-child(even) {
    background-color: var(--light-color);
}

section:nth-child(odd) {
    background-color: var(--white-color);
}

/* Section Title Styling */
h2 {
    font-size: 2.5rem; /* Slightly larger section titles */
    color: var(--dark-color);
    margin-bottom: 40px; /* More space below title */
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px; /* Refined letter spacing */
}

/* Underline effect for H2 */
h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem; /* Slightly larger card/item titles */
    color: var(--dark-color);
    margin-bottom: 10px; /* Adjusted spacing */
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1rem; /* Ensure readable base font size */
    line-height: 1.6;
}

ul {
    list-style-position: outside; /* Standard list style position */
    margin-left: 20px; /* Standard indent */
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Button Styling */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white-color);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-speed) var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover,
.btn:focus { /* Add focus style for accessibility */
    background-color: var(--secondary-color);
    color: var(--white-color); /* Ensure text stays white */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none; /* Remove underline on hover */
    outline: none; /* Remove default focus outline */
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4); /* Custom focus ring */
}

/* Ensure disabled button state is clear */
.btn:disabled {
    background-color: var(--gray-medium);
    color: var(--gray-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) var(--transition-smooth);
}

/* Optional: Add scrolled state for header */
/* header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
} */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* Slightly reduced padding */
    height: 70px; /* Fixed header height */
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none; /* Remove underline from logo link */
}
.logo:hover {
    text-decoration: none; /* Keep underline removed */
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px; /* Slightly more space */
    margin-bottom: 0; /* Reset margin-bottom for li in nav */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

/* Underline effect for nav links */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active { /* Style for active link if using JS */
    color: var(--primary-color);
    text-decoration: none; /* Remove default underline */
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--dark-color);
    padding: 5px; /* Make it easier to click */
    z-index: 1100; /* Ensure hamburger is clickable */
}

/* Hero Section */
.hero {
    padding: 150px 0 120px; /* Adjusted padding */
    /* background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%); */
    background: linear-gradient(to bottom right, var(--white-color) 0%, var(--light-color) 100%); /* Lighter gradient */
    min-height: 100vh; /* Make hero take full viewport height */
    display: flex;
    align-items: center; /* Vertically center content */
    border-bottom: none; /* Remove border from hero section */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Add gap between text and image */
}

.hero-text {
    flex: 1.2; /* Give slightly more space to text */
    padding-right: 30px;
}

.hero-text h1 {
    font-size: 3.5rem; /* Larger heading */
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--dark-color);
    text-align: left; /* Override centered h2 */
    font-weight: 700;
    padding-bottom: 0; /* Override h2 padding */
}
.hero-text h1::after {
    display: none; /* Remove underline from hero h1 */
}


.hero-text p { /* Summary */
    font-size: 1.25rem; /* Larger, more readable summary */
    margin-bottom: 30px;
    color: var(--gray-dark);
    max-width: 600px;
    line-height: 1.7;
}

.hero-img {
    flex: 1;
    text-align: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover; /* Ensure image covers the circle */
    border: 8px solid var(--white-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* More pronounced shadow */
    margin-top: 0; /* Reset margin */
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--white-color) 0%, var(--light-color) 100%);
    border-radius: 12px;
    margin-right: 16px;
    color: var(--primary-color);
    font-size: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white-color);
    transform: translateY(-6px) scale(1.1);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
    text-decoration: none;
}
.social-icons a:last-child {
    margin-right: 0; /* Remove margin from last icon */
}


/* About Section */
.about {
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px; /* Add gap */
}

.about-text {
    flex: 1.5;
    min-width: 300px;
    padding-right: 0; /* Remove padding, use gap */
}

.about-info {
    flex: 1;
    min-width: 280px;
    background-color: var(--light-color); /* Add subtle background */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
}

.info-item {
    margin-bottom: 15px;
    font-size: 1rem; /* More readable info text */
}
.info-item:last-child {
    margin-bottom: 0;
}

.info-item span {
    font-weight: 600;
    margin-right: 8px;
    color: var(--dark-color);
    display: inline-block; /* Ensure alignment */
    min-width: 80px; /* Align values */
}
.info-item a {
    text-decoration: none; /* Remove underline */
}
.info-item a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Experience & Education (Timeline) Section */
.experience, .education {
    background-color: var(--light-color);
}
.education {
    background-color: var(--white-color); /* Alternate background */
}

.timeline {
    position: relative;
    max-width: 850px; /* Slightly wider */
    margin: 60px auto 0; /* More space above timeline */
}

.timeline::after { /* The vertical line */
    content: '';
    position: absolute;
    width: 3px; /* Slightly thicker line */
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 40px; /* More space between items */
}
.timeline-item:last-child {
    margin-bottom: 0; /* No margin on last item */
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px; /* Ensure space from center line */
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px; /* Ensure space from center line */
}

/* Timeline Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px; /* Smaller dot */
    height: 18px;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 25px; /* Adjust vertical position */
    right: -11px; /* Adjust position based on dot size+border */
    z-index: 1;
    transition: transform var(--transition-speed) ease;
}

.timeline-item:nth-child(even)::after {
    left: -11px;
}

.timeline-item:hover::after {
    transform: scale(1.2); /* Scale dot on hover */
}


.timeline-card {
    background-color: var(--white-color);
    padding: 30px; /* More padding */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */
    position: relative; /* For pseudo-elements */
    border: 1px solid var(--gray-light);
    transition: all var(--transition-speed) ease;
}
.timeline-item:hover .timeline-card {
     border-left: 4px solid var(--primary-color); /* Highlight on hover */
     transform: translateX(5px);
}
.timeline-item:nth-child(even):hover .timeline-card {
     border-left: none;
     border-right: 4px solid var(--primary-color); /* Highlight on hover */
     transform: translateX(-5px);
}

.timeline-card h3 { /* Job Title / Degree */
    margin-bottom: 5px;
    font-size: 1.25rem; /* Adjusted size */
}

.timeline-card h4 { /* Company / Institution */
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.timeline-card .date {
    font-size: 0.95rem; /* Slightly larger dates */
    font-style: italic;
    color: var(--gray-medium);
    margin-bottom: 15px;
    display: block;
}
 .timeline-card .location {
    font-size: 0.95rem; /* Slightly larger location text */
    color: var(--gray-dark);
    margin-bottom: 15px;
    display: block;
}
.timeline-card ul {
    margin-top: 15px;
    margin-left: 5px; /* Align with text */
    padding-left: 15px; /* Indent bullet points */
}
.timeline-card li {
    font-size: 1rem; /* More readable timeline list items */
    color: var(--text-color);
    line-height: 1.6;
}

/* Education Awards Grid */
.awards-grid {
    margin-top: 40px;
}
.award-card {
    text-align: center;
    padding: 25px;
}
.award-card h4 {
    color: var(--secondary-color); /* Use secondary color */
    margin-bottom: 5px;
}
.award-card p {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0;
}


/* Projects Section */
.projects {
    background-color: var(--light-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Slightly larger minmax */
    grid-gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.project-img {
    width: 100%;
    height: 220px; /* Increased height */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--gray-light);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 10px; /* Less space */
    font-size: 1.3rem;
}

.project-content p { /* Description */
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 1rem; /* More readable project descriptions */
    color: var(--text-color);
    line-height: 1.6;
}

.project-link {
    margin-top: auto;
    margin-bottom: 15px;
    font-size: 0.95rem; /* Slightly larger project links */
}
.project-link a {
     color: var(--primary-color);
     text-decoration: none;
     font-weight: 600;
     transition: letter-spacing var(--transition-speed) ease;
}
.project-link a::after { /* Add arrow */
    content: ' →';
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}
.project-link a:hover {
    text-decoration: underline;
    letter-spacing: 0.5px; /* Subtle effect */
}
.project-link a:hover::after {
    transform: translateX(4px);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px; /* Space above tags */
}

.tag {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--light-color) 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem; /* Slightly larger tags */
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent tags from breaking line */
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


/* Skills Section */
.skills {
    background-color: var(--white-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: linear-gradient(135deg, var(--white-color) 0%, var(--light-color) 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-speed) var(--transition-smooth);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 45px; /* Larger icon */
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1; /* Ensure icon is centered */
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.skill-card p { /* Description */
    font-size: 1rem; /* More readable skill descriptions */
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.skill-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center tags */
}
 .skill-tags .tag { /* Re-use tag style with modifications */
    padding: 5px 14px;
    background-color: var(--white-color);
    border: 1px solid var(--gray-medium);
    color: var(--gray-dark);
    font-size: 0.8rem; /* Slightly larger skill tags */
    margin: 4px;
}


/* Certifications Section */
.certifications {
    background-color: var(--light-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
    transition: all var(--transition-speed) ease;
}
.cert-card:hover {
     transform: scale(1.03);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cert-card h3 { /* Certification Title */
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.cert-card p { /* Issuing Organization */
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1rem; /* More readable certification organization */
}

.cert-date {
    font-size: 0.9rem; /* Slightly larger certification dates */
    color: var(--gray-medium);
}
/* Optional: Link style for certs */
.cert-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.95rem; /* Slightly larger certification links */
    font-weight: 600;
}


/* Publications Section */
.publications {
    background-color: var(--white-color);
}

.publication-card {
    background-color: var(--light-color);
    padding: 35px; /* More padding */
    border-radius: 10px;
    margin-top: 40px;
    max-width: 850px; /* Align width with timeline */
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--gray-light);
}

.publication-card h3 { /* Publication Title */
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.publication-card .journal { /* Conference/Journal */
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.publication-card .date {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 15px;
}
.publication-card p { /* Abstract/description */
    font-size: 0.95rem;
    margin-bottom: 0; /* Remove margin if it's the last element */
}
/* Optional: Link style for publications */
.publication-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}


/* Contact Section */
.contact {
    background-color: var(--light-color);
}

/* Optional: Add intro text styling */
.contact > .container > p {
    text-align: center;
    max-width: 650px;
    margin: -20px auto 50px auto; /* Adjust spacing */
    font-size: 1.05rem;
    color: var(--gray-dark);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Use gap for spacing */
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 0; /* Remove padding, use gap */
}

.contact-form {
    flex: 1.5;
    min-width: 350px; /* Slightly larger min-width */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background-color: var(--white-color); /* Add background to items */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    transition: all var(--transition-speed) ease;
}
.contact-item:hover {
    border-left: 4px solid var(--primary-color);
    transform: translateX(5px);
}


.contact-icon {
    width: 45px; /* Slightly smaller */
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px; /* More margin */
    font-size: 18px;
    color: var(--white-color);
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 3px;
    font-size: 1rem; /* Adjusted size */
    color: var(--dark-color);
}
 .contact-text p,
 .contact-text p a {
     margin-bottom: 0;
     font-size: 1rem; /* More readable contact text */
     color: var(--text-color);
     text-decoration: none;
 }
 .contact-text p a:hover {
     text-decoration: underline; /* Add underline on hover */
     color: var(--secondary-color);
 }

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem; /* Slightly larger form labels */
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px; /* Adjust padding */
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: var(--white-color);
    color: var(--text-color);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); /* Focus shadow */
}

.form-group textarea {
    resize: vertical;
    min-height: 130px; /* Slightly taller textarea */
}

#form-status {
    margin-top: 20px;
    font-weight: 600;
    min-height: 1.2em; /* Prevent layout shift */
    transition: color var(--transition-speed) ease;
}
#form-status.success {
    color: var(--success-color);
}
#form-status.error {
    color: var(--error-color);
}


/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--gray-light); /* Lighter text for footer */
    padding: 60px 0 30px;
    text-align: center;
}

.footer-social {
    margin-bottom: 30px;
}

.footer-social a {
    display: inline-flex; /* Use flex */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    color: var(--white-color);
    transition: all var(--transition-speed) ease;
    font-size: 18px;
    text-decoration: none; /* Remove underline */
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

.footer-nav {
     margin: 30px 0;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0 15px 10px 15px; /* Add bottom margin for wrapping */
}

.footer-links a {
    color: var(--gray-light); /* Lighter link color */
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    padding: 5px 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px; /* More space */
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--gray-medium); /* Medium gray for copyright */
}


/* Responsive Styles */

/* Tablet - Large */
@media screen and (max-width: 992px) {
    h2 { font-size: 2.2rem; } /* Slightly smaller titles */
    .hero { padding: 120px 0 100px; min-height: auto; } /* Adjust padding */
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { padding-right: 0; margin-bottom: 50px; }
    .hero-text h1 { text-align: center; font-size: 3rem; }
    .hero-text p { margin-left: auto; margin-right: auto; } /* Center paragraph */

    .about-content { flex-direction: column; }
    .about-text { margin-bottom: 30px; }
    .about-info { min-width: 100%; } /* Full width info box */

    .timeline::after { left: 31px; margin-left: -1.5px; } /* Adjust line position */
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) { left: 0; padding-left: 70px; padding-right: 25px; } /* Force all items left */

    .timeline-item::after { left: 21px; right: auto; } /* Adjust dot position (accounting for thicker line) */
    .timeline-item:nth-child(even)::after { left: 21px; }

     .timeline-item:hover .timeline-card,
     .timeline-item:nth-child(even):hover .timeline-card {
         transform: translateX(5px); /* Consistent hover transform */
         border-left: 4px solid var(--primary-color);
         border-right: none;
     }

    .contact-container { flex-direction: column; }
    .contact-info { padding-right: 0; }
}

/* Tablet - Small */
@media screen and (max-width: 768px) {
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }

    nav { padding: 10px 0; height: 60px; } /* Shorter header */
    .nav-links {
        position: fixed;
        top: 60px; /* Match new header height */
        left: -100%; /* Start off-screen */
        flex-direction: column;
        background-color: var(--white-color);
        width: 80%; /* Don't take full width */
        max-width: 300px; /* Max width */
        height: calc(100vh - 60px); /* Full height minus header */
        text-align: left; /* Align text left */
        transition: left 0.35s ease-in-out;
        box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.1);
        padding: 30px;
        border-top: 1px solid var(--gray-light);
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links li {
        margin: 0 0 20px 0; /* Vertical spacing, remove left margin */
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block; /* Make links block level */
    }
    .nav-links a::after { display: none; } /* Remove underline effect on mobile */

    .hamburger {
        display: block; /* Show hamburger */
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }

    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .cert-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* Mobile */
@media screen and (max-width: 576px) {
    .container { padding: 0 15px; } /* Less padding */
    h2 { font-size: 1.8rem; margin-bottom: 30px; }
    section { padding: 50px 0; }

    .hero { padding: 100px 0 80px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { font-size: 1rem; }

    .profile-img { width: 220px; height: 220px; border-width: 6px; }

    .timeline::after { left: 20px; } /* Adjust line position */
    .timeline-item { padding-left: 50px; padding-right: 15px; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) { padding-left: 50px; padding-right: 15px; }

    .timeline-item::after { left: 10px; width: 15px; height: 15px; border-width: 3px; top: 28px; } /* Adjust dot */
    .timeline-item:nth-child(even)::after { left: 10px; }

    .timeline-card { padding: 20px; }
    .timeline-card h3 { font-size: 1.1rem; }
    .timeline-card h4 { font-size: 0.95rem; }

    .projects-grid { grid-template-columns: 1fr; } /* Single column */
    .skills-grid { grid-template-columns: 1fr; } /* Single column */
    .cert-grid { grid-template-columns: 1fr; } /* Single column */

    .contact-info, .contact-form { min-width: 100%; } /* Full width */
    .contact-item { padding: 12px; }
    .contact-icon { width: 40px; height: 40px; font-size: 16px; margin-right: 15px; }
    .contact-text h4 { font-size: 0.95rem; }
    .contact-text p, .contact-text p a { font-size: 0.9rem; }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea { padding: 10px 12px; font-size: 0.95rem; }

    .footer-links { flex-direction: column; }
    .footer-links li { margin: 0 0 10px 0; } /* Adjust margin for vertical */
    .footer-links a { padding: 8px 0; }
}


/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Improve focus visibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: none; /* Remove default/custom shadows on focus if outline is clear */
}
/* Special case for button focus already handled */
.btn:focus {
    outline: none; /* Use box-shadow for buttons */
     box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}
/* Special case for hamburger focus */
.hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

section.education .awards-grid.projects-grid:last-of-type {
    margin-bottom: 60px;
}

/* Certificate Link Styles */
.cert-link {
    margin-top: 10px;
}

.cert-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.cert-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
