/* ===== CSS Variables ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --whatsapp-green: #25D366;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent image dragging on mobile */
img, .gallery-image, .certificate-image, .modal-content {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

/* Performance optimizations for mobile */
.gallery-item,
.certificate-item {
    will-change: transform, opacity;
}

.gallery-image-wrapper,
.certificate-image-wrapper {
    will-change: transform;
}

/* Smooth scrolling on mobile */
@media (max-width: 768px) {
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    touch-action: manipulation;
}

/* Touch-friendly tap targets */
a, button, .btn, .contact-item, .contact-card, .filter-btn, .view-cert-btn {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    touch-action: manipulation;
}

/* Smooth animations on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero content animations */
.hero-content {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-image {
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0s both;
}

/* Hero name and title hover effects */
.hero-name {
    transition: var(--transition);
    cursor: default;
}

.hero-name:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.hero-title {
    transition: var(--transition);
}

.hero-title:hover {
    transform: translateX(10px);
    opacity: 1;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1000;
    transition: var(--transition);
    animation: fadeInDown 0.6s ease-out;
}

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

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

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    min-width: 300px;
    min-height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.image-placeholder:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.image-placeholder i {
    font-size: 150px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-image {
    width: 300px;
    height: 300px;
    min-width: 300px;
    min-height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), 
                0 20px 25px -5px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
    display: block;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.5), 
                0 25px 50px -12px rgba(0, 0, 0, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-content {
    text-align: left;
}

.hero-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-location {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-item.contact-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.contact-item.contact-whatsapp:hover {
    background: rgba(37, 211, 102, 0.3);
    box-shadow: 0 12px 40px 0 rgba(37, 211, 102, 0.4);
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
    animation-play-state: paused;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.scroll-indicator:hover i {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

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

/* ===== Section Styles ===== */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, rgba(249, 250, 251, 0.8) 100%);
    position: relative;
}

.section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: -1;
}

.section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ===== About Section ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: var(--transition);
}

.summary-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.skill-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.skill-tag:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.skill-tag:hover::before {
    width: 200px;
    height: 200px;
}

/* ===== Experience Section ===== */
.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.25);
    transform: translateX(8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-title {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.company {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.job-location,
.job-period {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-list {
    margin-top: 1.5rem;
    list-style: none;
    padding-left: 0;
}

.job-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.job-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.projects-worked {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.projects-worked h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 56px 0 rgba(31, 38, 135, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-icon i {
    font-size: 1.8rem;
    color: white;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-tech {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* ===== Education Section ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    text-align: center;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.education-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.education-icon i {
    font-size: 2rem;
    color: white;
}

.degree {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.institution {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-period {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== Certifications Section ===== */
.certifications-content {
    max-width: 900px;
    margin: 0 auto;
}

.certifications-completed {
    margin-bottom: 3rem;
}

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

.cert-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.cert-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.cert-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cert-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cert-tag {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cert-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cert-provider {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

/* ===== Languages Section ===== */
.languages-table {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

th, td {
    padding: 1.5rem;
    text-align: left;
}

th {
    font-weight: 600;
    font-size: 1.1rem;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--bg-light);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    color: var(--text-dark);
    font-weight: 500;
}

td i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.proficiency-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.proficiency-badge.professional {
    background: #dbeafe;
    color: #1e40af;
}

.proficiency-badge.native {
    background: #d1fae5;
    color: #065f46;
}

.proficiency-badge.conversational {
    background: #fef3c7;
    color: #92400e;
}

/* ===== Contact Section ===== */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-card:hover::before {
    width: 300px;
    height: 300px;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-card.contact-whatsapp-card {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
}

.contact-card.contact-whatsapp-card:hover {
    background: rgba(37, 211, 102, 0.15);
    box-shadow: 0 12px 48px 0 rgba(37, 211, 102, 0.3);
}

.contact-card.contact-whatsapp-card i {
    color: var(--whatsapp-green);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
}

/* ===== Infrastructure Gallery Section ===== */
.gallery-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    transition: var(--transition);
}

.gallery-intro:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px 0 rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
}

.infrastructure-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    opacity: 1;
    transition: var(--transition);
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.gallery-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: var(--transition);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.gallery-image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 56px 0 rgba(31, 38, 135, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.gallery-image-wrapper {
    -webkit-tap-highlight-color: transparent;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
    align-self: flex-end;
}

/* ===== Certificates Gallery Section ===== */
.certificates-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.certificate-item {
    transition: var(--transition);
}

.certificate-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.certificate-card:hover::before {
    opacity: 0.1;
}

.certificate-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px 0 rgba(31, 38, 135, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.certificate-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 210 / 297; /* A4 aspect ratio (portrait) */
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    margin-bottom: 1.5rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.certificate-image-wrapper:hover {
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    transition: var(--transition-slow);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.certificate-image-wrapper {
    -webkit-tap-highlight-color: transparent;
}

.certificate-image-wrapper:hover .certificate-image {
    transform: scale(1.08);
}

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

.certificate-image-wrapper:hover .certificate-overlay {
    opacity: 1;
}

.view-cert-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.view-cert-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.certificate-info {
    text-align: center;
}

.certificate-info h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.certificate-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Modal/Lightbox ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
    background: white;
}

/* A4 format styling for certificates in modal */
.modal-content.certificate-format {
    max-width: 70%;
    max-height: 85vh;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    min-width: 200px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    z-index: 10000;
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-note {
    margin-top: 0.5rem;
    opacity: 0.8;
}

.footer-note i {
    color: #ef4444;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

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

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

    .hero-image {
        margin-bottom: 1rem;
    }

    .profile-image {
        width: 280px;
        height: 280px;
        min-width: 280px;
        min-height: 280px;
    }

    .image-placeholder {
        width: 280px;
        height: 280px;
        min-width: 280px;
        min-height: 280px;
    }

    .image-placeholder i {
        font-size: 130px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        padding: 2rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        padding: 0.75rem 1.5rem;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Tablet gallery optimizations */
    .infrastructure-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .certificates-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

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

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

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

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

    .hero-name {
        font-size: 2rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
        min-width: 250px;
        min-height: 250px;
    }

    .image-placeholder i {
        font-size: 120px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
        min-width: 250px;
        min-height: 250px;
    }

    /* Gallery optimizations */
    .gallery-intro {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .gallery-filter {
        gap: 0.75rem;
        margin-bottom: 2rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.5rem 1rem 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        scroll-padding: 0 1rem;
        scroll-snap-type: x proximity;
    }

    .gallery-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px;
        touch-action: manipulation;
        scroll-snap-align: start;
    }

    .infrastructure-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificates-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }

    .certificate-card {
        padding: 1.5rem;
    }

    .certificate-image-wrapper {
        margin-bottom: 1rem;
    }

    /* Modal optimizations */
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        border-radius: 8px;
    }

    .modal-content.certificate-format {
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .modal-prev,
    .modal-next {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-caption {
        bottom: 15px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-width: auto;
        max-width: 90%;
        word-wrap: break-word;
    }

    /* Contact section */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Timeline */
    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-marker {
        width: 16px;
        height: 16px;
        left: -8px;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-contact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-name {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }

    .image-placeholder i {
        font-size: 100px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }

    .hero-container {
        gap: 2rem;
    }

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

    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-icon {
        font-size: 1.5rem;
    }

    /* Gallery mobile optimizations */
    .gallery-intro {
        padding: 1rem;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .gallery-filter {
        gap: 0.5rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .infrastructure-gallery {
        gap: 1.25rem;
    }

    .gallery-image-wrapper {
        border-radius: 15px;
    }

    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-overlay h4 {
        font-size: 1rem;
    }

    .gallery-overlay p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    /* Certificate mobile optimizations */
    .certificates-gallery {
        gap: 1.5rem;
    }

    .certificate-card {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .certificate-info h4 {
        font-size: 1rem;
    }

    .certificate-info p {
        font-size: 0.85rem;
    }

    .view-cert-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Modal mobile optimizations */
    .modal {
        padding: 0;
    }

    .modal-content {
        max-width: 98%;
        max-height: 85vh;
        border-radius: 8px;
    }

    .modal-content.certificate-format {
        max-width: 98%;
        max-height: 80vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
        touch-action: manipulation;
    }

    .modal-prev,
    .modal-next {
        width: 44px;
        height: 44px;
        padding: 0.5rem;
        font-size: 1.25rem;
        touch-action: manipulation;
    }

    .modal-prev {
        left: 5px;
    }

    .modal-next {
        right: 5px;
    }

    .modal-caption {
        bottom: 10px;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        max-width: 95%;
        border-radius: 30px;
        left: 50%;
        transform: translateX(-50%);
        white-space: normal;
        word-break: break-word;
    }

    /* Skills mobile */
    .skill-category {
        padding: 1.5rem;
    }

    .skill-header h3 {
        font-size: 1.1rem;
    }

    .skill-header i {
        font-size: 1.5rem;
    }

    /* Project cards */
    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    /* Education cards */
    .education-card {
        padding: 2rem 1.5rem;
    }

    .degree {
        font-size: 1.1rem;
    }

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

    .contact-card i {
        font-size: 2rem;
    }

    /* Section padding */
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Summary text */
    .summary-text {
        font-size: 1rem;
        padding: 1.5rem;
        text-align: left;
    }

    /* Job list */
    .job-list li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }
}

