
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Professional Light Theme */
    --primary-color: #0077b6;
    --primary-dark: #005f8a;
    --primary-light: #90e0ef;
    --secondary-color: #023e8a;
    --accent-color: #00b4d8;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-light: #6b6b8a;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===================================
   Utility Classes
   =================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ===================================
   Header & Navigation
   =================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===================================
   Hero Section
   =================================== */
#hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 3rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.greeting {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 1.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

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

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 0 0 350px;
}

.hero-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 6px solid white;
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
}

/* ===================================
   About Section
   =================================== */
#about {
    padding: 5rem 0 4.5rem;
    background: var(--bg-primary);
}

.about-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.about-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-subtitle i {
    font-size: 0.9rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0 0.5rem;
}

.about-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.about-photo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-photo:hover img {
    transform: scale(1.05);
}

/* Individual photo positioning */
.photo-1 img {
    object-position: 70% 45%;
}

.photo-2 img {
    object-position: 30% 40%;
}

.photo-3 img {
    object-position: 70% 100%;
}

.photo-4 img {
    object-position: 70% 30%;
}

.photo-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
    color: #ffffff;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.photo-caption i {
    font-size: 0.7rem;
    opacity: 0.9;
}

.skills-aside {
    flex: 0 0 320px;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.skills-aside::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

.skills-aside h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-aside h3::before {
    content: '⚡';
}

.skills-category {
    margin-bottom: 1.5rem;
}

.skills-category h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-category h4 i {
    color: var(--primary-color);
}

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

.skill-tag {
    background: white;
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===================================
   Experience Section
   =================================== */
#experience {
    padding: 4.5rem 0;
    background: var(--bg-secondary);
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-table-container h3,
.education-container h3 {
    margin-bottom: 1.35rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.experience-table-container,
.education-container {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 119, 182, 0.1);
    overflow: hidden;
}

.experience-table-container::before,
.education-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Table Styling with CSS Selectors */
.experience-table {
    display: block;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    background: transparent;
}

.experience-table-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.experience-table thead,
.experience-table tbody {
    display: block;
    width: 100%;
}

.experience-table thead {
    display: none;
}

.experience-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-table tbody tr:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 119, 182, 0.2);
    box-shadow: var(--shadow-md);
}

.experience-table tbody tr {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(0, 119, 182, 0.14);
    border-left: 5px solid var(--primary-color);
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1.15fr) auto;
    grid-template-areas:
        "company role duration"
        "contributions contributions duration";
    gap: 0.85rem 1.25rem;
    align-items: start;
}

.experience-table td {
    padding: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    min-width: 0;
}

.experience-table th:nth-child(2),
.experience-table td:nth-child(2) {
    width: auto;
    white-space: normal;
}

.experience-table th:nth-child(1),
.experience-table td:nth-child(1) {
    width: auto;
}

.experience-table th:nth-child(3),
.experience-table td:nth-child(3) {
    width: auto;
    white-space: normal;
}

.experience-table th:nth-child(4),
.experience-table td:nth-child(4) {
    width: auto;
    white-space: normal;
}

.experience-table td strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.08rem;
}

.experience-table td:first-child {
    font-weight: 500;
}

.experience-table td:nth-child(1) {
    grid-area: company;
}

.experience-table td:nth-child(2) {
    grid-area: role;
}

.experience-table td:nth-child(3) {
    grid-area: contributions;
}

.experience-company {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.experience-location {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-light);
}

.experience-location i {
    color: var(--primary-color);
    font-size: 0.82rem;
}

.experience-role-cell {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.experience-role-title {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.45;
}

.experience-type {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.experience-type-training {
    background: rgba(2, 62, 138, 0.1);
    color: var(--secondary-color);
}

.experience-table td[data-label="Key Contributions"] {
    position: relative;
    padding-top: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    border-top: 1px solid rgba(222, 226, 230, 0.8);
}

.experience-table td[data-label="Key Contributions"]::before {
    content: 'Highlights';
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.experience-table td:nth-child(4) {
    grid-area: duration;
    display: flex;
    justify-content: flex-end;
    align-self: start;
}

.experience-duration-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(144, 224, 239, 0.22));
    color: var(--text-primary);
    font-size: 0.87rem;
    font-weight: 600;
    text-align: center;
}

/* Education Cards */
.education-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.education-card {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 119, 182, 0.1);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.edu-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.edu-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.degree {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem !important;
}

.edu-details {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem !important;
}

.edu-location {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===================================
   Projects / Image Gallery Section
   =================================== */
#projects {
    padding: 4.5rem 0;
    background: var(--bg-primary);
}

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

.gallery-item {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
    max-width: 520px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 35, 75, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 1.25rem;
}

.overlay-content h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.overlay-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.overlay-links a:hover {
    background: white;
    color: var(--primary-color);
}

.gallery-info {
    padding: 1.25rem;
}

.gallery-info h3 {
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===================================
   Testimonials Section
   =================================== */
#testimonials {
    padding: 4.5rem 0;
    background: var(--bg-secondary);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.testimonial-card {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 300px;
    max-width: 380px;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   Contact Section
   =================================== */
#contact {
    padding: 4.5rem 0;
    background: var(--bg-primary);
}

.contact-content {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
}

.contact-summary h3 {
    margin-bottom: 0.75rem;
}

.contact-summary .btn {
    margin-top: 0.5rem;
}

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

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

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

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

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

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--text-primary);
    color: white;
    padding: 2.5rem 0 1.25rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

@media screen and (max-width: 1024px) {
    .experience-table tbody tr {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "company duration"
            "role duration"
            "contributions contributions";
    }
}

/* ===================================
   Responsive Design - iPad (768px)
   =================================== */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Header */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    #hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.25rem;
    }

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

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

    .hero-image {
        flex: 0 0 250px;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    /* About */
    .about-content {
        flex-direction: column;
        align-items: stretch;
    }

    .about-lead {
        font-size: 1.1rem;
    }

    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .about-photo img {
        aspect-ratio: 4 / 3;
    }

    .skills-aside {
        flex: 1 1 100%;
        width: 100%;
    }

    /* Experience */
    .experience-table-container,
    .education-container {
        padding: 1.25rem;
    }

    .education-cards {
        grid-template-columns: 1fr;
    }

    /* Experience Table - Card Layout */
    .experience-table {
        display: block;
    }

    .experience-table thead {
        display: none;
    }

    .experience-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .experience-table tr {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-radius: 16px;
        padding: 1rem;
    }

    .experience-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .experience-table td > * {
        width: 100%;
    }

    .experience-table td:nth-child(4) > * {
        width: auto;
    }

    .experience-table td[data-label="Key Contributions"] {
        flex-direction: column;
        gap: 0.35rem;
        padding-top: 0;
        border-top: none;
    }

    .experience-table td:last-child {
        border-bottom: none;
    }

    .experience-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .experience-table td[data-label="Key Contributions"]::before {
        content: attr(data-label);
        margin-bottom: 0;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }

    .experience-table td:nth-child(4) {
        justify-content: flex-start;
    }

    .experience-duration-badge {
        align-self: flex-start;
    }

    /* Gallery */
    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Testimonials */
    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Contact */
    .contact-content {
        flex-direction: column;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===================================
   Responsive Design - Mobile (375px)
   =================================== */
@media screen and (max-width: 375px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }

    /* General */
    .section-container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Header */
    .header-container {
        padding: 0.875rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hero */
    #hero {
        padding: 5rem 1rem 2rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.125rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

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

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

    .hero-image {
        flex: 0 0 200px;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    /* About */
    .about-lead {
        font-size: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

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

    .about-photo img {
        aspect-ratio: 16 / 10;
    }

    .photo-caption {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-subtitle {
        font-size: 0.95rem;
    }

    .skills-aside {
        padding: 1.5rem;
    }

    .experience-table-container,
    .education-container {
        padding: 1rem;
    }

    /* Education Cards */
    .education-cards {
        grid-template-columns: 1fr;
    }

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

    .experience-location {
        font-size: 0.84rem;
    }

    .experience-role-title {
        font-size: 0.98rem;
    }

    /* Gallery */
    .gallery-image {
        height: 180px;
    }

    .gallery-info {
        padding: 1rem;
    }

    .tech-stack {
        justify-content: center;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

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

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    /* Footer */
    .footer-links {
        gap: 1rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }
}

/* ===================================
   Animations & Hover Effects
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item,
.testimonial-card,
.education-card {
    animation: fadeIn 0.6s ease forwards;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 96px;
}
