/* ===== CSS VARIABLES AND RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #4a90e2;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e6ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

body.modal-open {
    overflow: hidden;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.nav-brand:hover {
    border-bottom-color: currentColor;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 14px;
}

/* ===== HEADER SECTION ===== */
header {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f0f4f8 100%);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.contact-info h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-details span {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details span::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--bg-white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== BUSINESS CARD SECTION ===== */
.business-card-section {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, #f0f4f8 100%);
}

.business-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 40px;
    color: white;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.profile-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 1;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: opacity 0.6s ease-in-out, transform 0.3s ease;
    opacity: 0;
}

.profile-photo.loaded {
    opacity: 1;
}

.profile-photo.loaded~.profile-image-container::before {
    opacity: 0;
}

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

.profile-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.profile-loading-spinner.hidden {
    opacity: 0;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: profileSpin 1s linear infinite;
}

.profile-info h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.profile-title {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.profile-summary {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.card-body {
    padding: 40px;
}

/* ===== COMPANY SUMMARY SECTION ===== */
.company-summary {
    background: var(--bg-light);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.company-summary .container {
    text-align: center;
    max-width: 800px;
}

.company-summary h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.company-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    margin-bottom: 30px;
}

.skills-section h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-category {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.skill-category h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--bg-white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

/* ===== FOCUS AREAS ===== */
.focus-areas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.focus-pill {
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

/* ===== HIGHLIGHTS SECTION ===== */
.highlights-section {
    margin-bottom: 30px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.highlight-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.highlight-title {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.highlight-value {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== EDUCATION SECTION ===== */
.education-section {
    margin-bottom: 30px;
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.education-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.education-degree {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 5px;
}

.education-gpa {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 13px;
}

.education-date {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 10px;
}

/* ===== CONTENT SECTIONS ===== */
.section {
    padding: 60px 0;
    background: var(--bg-white);
    margin-bottom: 2px;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-header {
    margin-bottom: 40px;
}

.section-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.section h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-left: 55px;
}

/* ===== CHALLENGE & APPROACH GRIDS ===== */
.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.challenge-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.challenge-card h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-icon {
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.challenge-card ul {
    list-style: none;
}

.challenge-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.8;
}

.challenge-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== RESULTS SECTION ===== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.result-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
}

.result-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.result-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TECH STACK ===== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.tech-badge {
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tech-category {
    margin-top: 30px;
}

.tech-category h5 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-pill {
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.experience-header {
    text-align: center;
    margin-bottom: 30px;
}

.experience-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.experience-header p {
    color: var(--text-light);
    font-size: 18px;
}

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

.experience-item {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.experience-image-link {
    display: block;
    width: 40%;
    min-height: 300px;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    order: 1;
}

.experience-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(74, 144, 226, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.experience-item:hover .experience-image::after {
    opacity: 1;
}

.experience-image.show-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerEffect 2s ease-in-out 2;
    animation-fill-mode: forwards;
    z-index: 4;
}

.experience-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.3s ease;
    transform: scale(1.1);
}

.experience-img.loaded {
    opacity: 1;
    transform: scale(1);
}

.experience-img.error {
    display: none;
}

.experience-item:hover .experience-img {
    transform: scale(1.05);
}

.experience-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.experience-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.pulse-loader {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    animation: experiencePulse 1.5s ease-in-out infinite;
}

.pulse-loader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: experiencePulseInner 1.5s ease-in-out infinite;
}

.pulse-loader.stop-pulse {
    animation: none;
    display: none;
}

.pulse-loader.stop-pulse::before {
    animation: none;
}

.experience-icon-overlay {
    font-size: 48px;
    color: white;
    z-index: 1;
    transition: all 0.5s ease;
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.experience-img.loaded~.experience-icon-overlay {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.experience-image.error-state {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.experience-image.error-state .experience-icon-overlay {
    opacity: 0.5;
}

.experience-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}

.experience-company {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.experience-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.experience-description {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.experience-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.experience-link:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

/* Alternating layout */
.experience-item:nth-child(even) {
    flex-direction: row;
}

.experience-item:nth-child(even) .experience-image-link {
    order: 2;
}

.experience-item:nth-child(even) .experience-content {
    order: 1;
}

/* Prevent default anchor styles */
a.experience-image-link:link,
a.experience-image-link:visited,
a.experience-image-link:hover,
a.experience-image-link:active {
    color: inherit;
    text-decoration: none;
}

/* ===== VIDEO SECTION ===== */
.video-showcase {
    margin: 40px 0;
    text-align: center;
}

.video-showcase h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.video-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e6ed 0%, #f0f4f8 100%);
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.lazy-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-video.loaded {
    opacity: 1;
}

.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.video-loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* ===== IMAGE GALLERY ===== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.image-container {
    margin: 0;
    position: relative;
}

.image-container figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

.lazy-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e6ed 0%, #f0f4f8 100%);
    border-radius: 12px;
    min-height: 200px;
    transition: transform 0.3s ease;
}

.lazy-image-wrapper:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    aspect-ratio: 16/11.5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.5s ease-in-out;
}

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

.project-image.lazy {
    opacity: 0;
}

.project-image.loaded {
    opacity: 1;
}

/* ===== LOADING SPINNERS ===== */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== ARTICLE LINK SECTION ===== */
.article-link-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.article-link-card {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 30px;
}

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

.article-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 12px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.article-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-link-btn:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.link-arrow {
    transition: transform 0.3s ease;
}

.article-link-btn:hover .link-arrow {
    transform: translateX(3px);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 60px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.contact-link-item {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link-item:hover {
    background: white;
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    font-size: 16px;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10000;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes shimmerEffect {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes profileSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes experiencePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

@keyframes experiencePulseInner {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet Styles */
@media (max-width: 768px) {

    /* Navigation */
    .navbar-container {
        flex-direction: column;
        padding: 10px 15px;
    }

    .navbar {
        position: relative;
        margin-bottom: -100px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin: 10px 0;
        width: 100%;
    }

    .nav-link {
        font-size: 14px;
        padding: 5px 0;
    }

    .nav-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .nav-contact-item {
        font-size: 12px;
    }

    /* Header */
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
    }

    /* Hero */
    .hero h2 {
        font-size: 28px;
    }

    .project-meta {
        gap: 20px;
    }

    /* Business Card */
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-header {
        padding: 30px 20px;
    }

    .profile-info h1 {
        font-size: 32px;
    }

    /* Grids */
    .challenge-grid,
    .skills-grid,
    .education-cards {
        grid-template-columns: 1fr;
    }

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

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

    .image-gallery {
        grid-template-columns: 1fr;
    }

    /* Experience */
    .experience-item,
    .experience-item:nth-child(even) {
        flex-direction: column;
    }

    .experience-item .experience-image-link,
    .experience-item:nth-child(even) .experience-image-link {
        width: 100%;
        order: 1;
    }

    .experience-content {
        margin-top: -40px;
    }

    .experience-item .experience-content,
    .experience-item:nth-child(even) .experience-content {
        order: 2;
    }

    .experience-img {
        height: 250px;
        object-position: center;
    }

    .pulse-loader {
        width: 40px;
        height: 40px;
    }

    .experience-icon-overlay {
        font-size: 36px;
    }

    .experience-image-link {
        width: 100%;
        min-height: 250px;
    }

    .experience-image {
        width: 100%;
        min-height: 200px;
        height: 300px;
        flex-shrink: 0;
    }

    .experience-image-placeholder {
        font-size: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .experience-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Sections */
    .section h3 {
        font-size: 24px;
    }

    /* Article Link */
    .article-link-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .article-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 14px;
    }

    /* Contact */
    .contact-section {
        padding: 40px 20px;
    }

    .contact-section h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .contact-link-item {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Modal */
    .modal-content {
        max-width: 100%;
        max-height: 80vh;
    }

    .modal-prev,
    .modal-next {
        font-size: 20px;
        padding: 5px 10px;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {

    /* Navigation */
    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
    }

    .nav-contact {
        flex-direction: column;
        gap: 5px;
    }

    .nav-brand {
        font-size: 20px;
        text-align: center;
        width: 100%;
    }

    /* Hero */
    .hero h2 {
        font-size: 24px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    /* Focus Areas */
    .focus-areas {
        gap: 10px;
    }

    .focus-pill {
        font-size: 12px;
        padding: 6px 15px;
    }

    /* Tech */
    .tech-badge {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Results */
    .result-number {
        font-size: 28px;
    }

    /* Article Link */
    .article-link-card {
        padding: 20px;
    }

    .article-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .article-content h3 {
        font-size: 18px;
    }

    .article-link-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Contact */
    .contact-section {
        padding: 30px 15px;
    }

    .contact-section h2 {
        font-size: 20px;
    }

    .contact-link-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}