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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.6;
    scroll-behavior: smooth;
    --primary-color: #1d1d1f;
    --accent-color: #c9a227; /* Gold */
    --text-color: #515154;
    --light-bg: #f5f5f7;
}

/* Skip to main content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #1a1a2e;
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.back-to-top:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
}

/* Section Padding */
section {
    padding: 100px 0;
}

/* Container improvements for full screen */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Skills section container override */
.skills-section .container {
    max-width: 1200px;
}

/* Section titles with better spacing */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.logo-text {
    color: #1a1a2e;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-text:hover {
    opacity: 0.8;
}

.logo-text:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

@keyframes logoGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

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

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

.nav-link:hover {
    color: #3498db;
}

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

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

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
    outline: none;
}

.burger-menu:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

/* Content Wrapper */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f5f5f7 100%);
    position: relative;
    overflow: hidden;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: #1d1d1f;
    z-index: 2;
    position: relative;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.hero-name {
    font-size: clamp(1.8rem, 3.6vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1d1d1f;
    letter-spacing: -0.025em;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: #515154;
    max-width: 1100px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.5;
    letter-spacing: -0.01em;
    white-space: nowrap;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@media (max-width: 900px) {
    .hero-name,
    .hero-tagline {
        white-space: normal;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

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

/* About Section */
.about-section {
    background-color: #E0DCD7;
    padding: 6rem 0;
}

/* About Section Title */
.about-section .section-title {
    color: #1a1a2e;
    font-weight: 800;
}

/* About Section Content */
.about-section .bio-text {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.8;
}

.about-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #c9a227, #009688);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    text-align: center;
}

.about-image .profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid #c9a227;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.about-image .profile-photo:hover {
    transform: scale(0.95);
}

.about-text {
    padding-left: 2rem;
}

.about-text .bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1a1a2e;
    font-weight: 400;
}

/* Particle Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

#particlesCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.name {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.name-animated {
    display: inline-block;
    background: linear-gradient(135deg, #2c3e50, #3498db, #5dade2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: nameGradient 3s ease-in-out infinite, nameFloat 4s ease-in-out infinite;
    position: relative;
}

.name-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2c3e50, #3498db, #5dade2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(1px);
    opacity: 0.7;
    z-index: -1;
    animation: nameGlow 2s ease-in-out infinite alternate;
}

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

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

@keyframes nameGlow {
    0% { filter: brightness(1) blur(1px); }
    100% { filter: brightness(1.3) blur(2px); }
}

.subheading {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* Photo Section */
.photo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.photo-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 4px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Bio Section */
.bio-section {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555555;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
    text-align: center;
}

/* Apple-style Button Styles */
.btn-gold {
    background: linear-gradient(135deg, #c9a227, #b08d1e);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b08d1e, #967819);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.btn-outline-gold {
    background-color: transparent;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline-gold:hover {
    background-color: #1a1a2e;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.3);
}

.btn-outline-gold i {
    margin-right: 0.5rem;
}

.btn-teal {
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 14px rgba(78, 205, 196, 0.3);
}

.btn-teal:hover {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a); /* Changed to Navy on hover for better consistency */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.4);
}

.btn-teal i {
    margin-right: 0.5rem;
}

.btn-teal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Education Section */
.education-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.education-section .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #4ECDC4 0%, #26A69A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.5px;
}

.education-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4ECDC4, #26A69A);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.education-section .section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 400;
    font-style: italic;
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4ECDC4, #26A69A);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.education-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.education-item:nth-child(odd) .education-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.education-item:nth-child(even) .education-content {
    margin-left: 50%;
    padding-left: 2rem;
    text-align: left;
}

.education-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.education-item:hover .education-marker {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5);
}

.education-content {
    flex: 1;
}

.education-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ECDC4, #26A69A);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.education-header {
    margin-bottom: 1rem;
}

.education-degree {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
}

.education-institution {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4ECDC4;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    hyphens: auto;
}

.education-dates {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.education-location {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
    margin-bottom: 0;
}

.education-description {
    margin-top: 1rem;
}

.education-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    hyphens: auto;
}

/* Certifications & Publications Section - 3D Carousel */
.certifications-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: visible;
}

.certifications-section .container {
    overflow: visible;
}

.cert-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 2rem 5rem;
    overflow: visible;
}

.cert-carousel-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    perspective: 1200px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
}

.cert-carousel-container:active {
    cursor: grabbing;
}

.cert-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cert-card {
    min-width: 320px;
    max-width: 380px;
    height: 420px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    transform-style: preserve-3d;
    opacity: 0.9;
}

.cert-card:hover {
    transform: scale(1.05) translateZ(20px);
    opacity: 1;
    z-index: 5;
}

.cert-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cert-card:hover .cert-card-inner {
    transform: rotateY(180deg);
}

.cert-card-front,
.cert-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e8e8e8;
    transform: rotateY(0deg);
}

.cert-card-back {
    color: #ffffff;
    transform: rotateY(180deg);
}

/* Different color schemes for each card */
.cert-color-1 .cert-card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cert-color-2 .cert-card-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cert-color-3 .cert-card-back {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cert-color-4 .cert-card-back {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.cert-color-5 .cert-card-back {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.cert-color-6 .cert-card-back {
    background: linear-gradient(135deg, #4ECDC4 0%, #26A69A 100%);
}

/* Different icon colors for front */
.cert-color-1 .cert-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.cert-color-2 .cert-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.cert-color-3 .cert-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.cert-color-4 .cert-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.cert-color-5 .cert-icon {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.cert-color-6 .cert-icon {
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
}

/* Different org text colors */
.cert-color-1 .cert-org {
    color: #667eea;
}

.cert-color-2 .cert-org {
    color: #f5576c;
}

.cert-color-3 .cert-org {
    color: #4facfe;
}

.cert-color-4 .cert-org {
    color: #43e97b;
}

.cert-color-5 .cert-org {
    color: #fa709a;
}

.cert-color-6 .cert-org {
    color: #4ECDC4;
}

.cert-card:hover .cert-card-front {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
}

.cert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    min-height: 3.2rem;
}

.cert-org {
    font-size: 1rem;
    color: #4ECDC4;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-date {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    background: #f0f0f0;
    border-radius: 20px;
    display: inline-block;
}

.cert-card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cert-card-back p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.cert-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.cert-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: underline;
    margin-top: 0.5rem;
    display: inline-block;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.cert-link:hover {
    opacity: 0.8;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.9;
}

.carousel-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
}

.carousel-dot:hover {
    background: #4ECDC4;
    transform: scale(1.2);
}

/* Responsive Design for Certifications */
@media (max-width: 1024px) {
    .cert-carousel-container {
        gap: 1.5rem;
    }
    
    .cert-card {
        min-width: 300px;
        height: 400px;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .cert-carousel-wrapper {
        padding: 1rem 0;
    }
    
    .cert-carousel-container {
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .cert-card {
        min-width: 280px;
        height: 380px;
    }
    
    .cert-card-front,
    .cert-card-back {
        padding: 2rem 1.5rem;
    }
    
    .cert-title {
        font-size: 1.1rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .cert-card {
        min-width: 260px;
        height: 360px;
    }
    
    .cert-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cert-title {
        font-size: 1rem;
    }
}

/* Skills Section */
.skills-section {
    padding: 6rem 0;
    background: #F8F7F5;
    position: relative;
    overflow: hidden;
    /* Performance optimizations */
    contain: layout style paint;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Skills section container override */
.skills-section .container {
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.skills-section .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.skills-section .section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}

/* Skills Grid - Responsive Layout */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0 auto 3rem;
    max-width: 1200px;
    width: 100%;
    padding: 0;
    /* Performance optimizations */
    contain: layout;
    box-sizing: border-box;
    /* Ensure grid items have equal height */
    grid-auto-rows: 1fr;
    /* Prevent stacking - ensure 2 columns */
    align-items: stretch;
    /* Prevent wrapping to single column */
    grid-auto-flow: row;
}

/* Ensure equal height cards */
.skills-grid > .skill-category {
    height: 100%;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    /* Prevent cards from shrinking below minimum */
    flex-shrink: 0;
    /* Ensure cards stay within grid cell */
    box-sizing: border-box;
    position: relative;
    /* Ensure all cards have equal height */
    display: flex;
    flex-direction: column;
}

/* Skill Category */
.skill-category {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    /* Prevent overflow - critical for preventing overlap */
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Ensure card stays within bounds */
    margin: 0;
    float: none;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #5dade2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    /* Ensure hover doesn't cause overflow */
    z-index: 1;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #5dade2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.skill-category:hover .category-icon {
    transform: rotate(10deg) scale(1.1);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Skills List */
.skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    flex: 1;
    align-content: start;
    width: 100%;
    min-width: 0;
    /* Ensure consistent grid layout */
    grid-auto-rows: auto;
}

/* Skill Item */
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.8rem;
    background: #f8f9fa;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    min-height: 120px;
    min-width: 0;
    box-sizing: border-box;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

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

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skill-item:active {
    transform: translateY(-2px) scale(1.02);
}

/* Apple-style Skill Icons */
.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #007AFF, #0056CC);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
    will-change: transform;
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 1.4rem;
    color: white;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1) translateY(-2px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056CC, #003D99);
}

/* Design Software Icons */
.skill-category:nth-child(1) .skill-icon {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.skill-category:nth-child(1) .skill-item:hover .skill-icon {
    background: linear-gradient(135deg, #FF5252, #FF1744);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Project Management Icons */
.skill-category:nth-child(2) .skill-icon {
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.25);
}

.skill-category:nth-child(2) .skill-item:hover .skill-icon {
    background: linear-gradient(135deg, #26A69A, #00695C);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Soft Skills Icons */
.skill-category:nth-child(3) .skill-icon {
    background: linear-gradient(135deg, #FFD93D, #FFC107);
    box-shadow: 0 4px 12px rgba(255, 217, 61, 0.25);
}

.skill-category:nth-child(3) .skill-item:hover .skill-icon {
    background: linear-gradient(135deg, #FFC107, #FF8F00);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.4);
}

/* Languages Icons */
.skill-category:nth-child(4) .skill-icon {
    background: linear-gradient(135deg, #AB47BC, #9C27B0);
    box-shadow: 0 4px 12px rgba(171, 71, 188, 0.25);
}

.skill-category:nth-child(4) .skill-item:hover .skill-icon {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    box-shadow: 0 8px 25px rgba(171, 71, 188, 0.4);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555555;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-weight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

.skill-item:hover .skill-name {
    color: #2c3e50;
    font-weight: 600;
}

/* Experience Section */
.experience-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #007AFF, #0056CC);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 2rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #007AFF, #0056CC);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:hover .timeline-marker {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.timeline-content {
    flex: 1;
}

/* Job Card */
.job-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007AFF, #0056CC);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.job-header {
    margin-bottom: 1.5rem;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.job-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007AFF;
    margin-bottom: 0.5rem;
}

.job-dates {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.job-location {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

.job-description {
    margin-top: 1rem;
}

.job-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.job-achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: #007AFF;
    font-size: 0.8rem;
    font-weight: bold;
}

.job-achievements li:last-child {
    margin-bottom: 0;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Projects Subsection */
.projects-subsection {
    margin-bottom: 4rem;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #5dade2);
    border-radius: 2px;
}

/* Academic Projects Subsection Title */
.projects-subsection:first-child .subsection-title {
    background: linear-gradient(135deg, #AB47BC, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.2rem;
}

.projects-subsection:first-child .subsection-title::after {
    background: linear-gradient(90deg, #AB47BC, #9C27B0);
    width: 80px;
    height: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(171, 71, 188, 0.3);
}

/* Professional Projects Subsection Title */
.projects-subsection:last-child .subsection-title {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.2rem;
}

.projects-subsection:last-child .subsection-title::after {
    background: linear-gradient(90deg, #FF9800, #FF5722);
    width: 80px;
    height: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Project Card */
.project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    position: relative;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FF5252);
    z-index: 1;
}

/* Academic Projects - Purple/Blue Gradient */
.projects-subsection:first-child .project-card::before {
    background: linear-gradient(90deg, #AB47BC, #9C27B0);
}

.projects-subsection:first-child .project-placeholder {
    background: linear-gradient(135deg, #AB47BC, #9C27B0);
    box-shadow: 0 4px 12px rgba(171, 71, 188, 0.25);
}

.projects-subsection:first-child .project-title {
    color: #AB47BC;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.projects-subsection:first-child .project-role {
    color: #9C27B0;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #AB47BC, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-subsection:first-child .btn-outline {
    border: 2px solid #AB47BC;
    color: #AB47BC;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(171, 71, 188, 0.1);
}

.projects-subsection:first-child .btn-outline:hover {
    background: linear-gradient(135deg, #AB47BC, #9C27B0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 71, 188, 0.4);
}

/* Professional Projects - Orange/Red Gradient */
.projects-subsection:last-child .project-card::before {
    background: linear-gradient(90deg, #FF9800, #FF5722);
}

.projects-subsection:last-child .project-placeholder {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.25);
}

.projects-subsection:last-child .project-title {
    color: #FF9800;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.projects-subsection:last-child .project-role {
    color: #FF5722;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-subsection:last-child .btn-outline {
    border: 2px solid #FF9800;
    color: #FF9800;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

.projects-subsection:last-child .btn-outline:hover {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

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

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Project Image */
.project-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

.project-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.project-card:hover .project-placeholder {
    transform: scale(1.1) rotate(5deg);
}

/* Project Content */
.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-role {
    font-size: 1rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 1.5rem;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 0.8rem 1.5rem;
    border: 2px solid #FF6B6B;
    background: transparent;
    color: #FF6B6B;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn-outline:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Contact Section */
.contact-section {
    background-color: #F8F7F5;
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Email Icon - Blue */
.contact-info-item:nth-child(1) .contact-icon {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.contact-info-item:nth-child(1) .contact-icon:hover {
    background: linear-gradient(135deg, #0056CC, #003D99);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Location Icon - Green */
.contact-info-item:nth-child(2) .contact-icon {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.contact-info-item:nth-child(2) .contact-icon:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* LinkedIn Icon - Professional Blue */
.contact-info-item:nth-child(3) .contact-icon {
    background: linear-gradient(135deg, #0077B5, #005885);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.25);
}

.contact-info-item:nth-child(3) .contact-icon:hover {
    background: linear-gradient(135deg, #005885, #003D5F);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}

.contact-text p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.contact-text a {
    color: #4ECDC4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #26A69A;
}

/* Email Link - Blue */
.contact-info-item:nth-child(1) .contact-text a {
    color: #007AFF;
}

.contact-info-item:nth-child(1) .contact-text a:hover {
    color: #0056CC;
}

/* Location Link - Green */
.contact-info-item:nth-child(2) .contact-text a {
    color: #4CAF50;
}

.contact-info-item:nth-child(2) .contact-text a:hover {
    color: #388E3C;
}

/* LinkedIn Link - Professional Blue */
.contact-info-item:nth-child(3) .contact-text a {
    color: #0077B5;
}

.contact-info-item:nth-child(3) .contact-text a:hover {
    color: #005885;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    padding: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Contact Details */
.contact-details {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    height: fit-content;
}

.contact-details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info-grid {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #5dade2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.contact-text p {
    font-size: 1rem;
    color: #555555;
    margin: 0;
}

.contact-text a {
    color: #555555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link {
    color: #3498db !important;
    font-weight: 500;
}

.email-link:hover {
    color: #2980b9 !important;
}

.linkedin-link {
    color: #0077b5 !important;
    font-weight: 500;
}

.linkedin-link:hover {
    color: #005885 !important;
}

.linkedin-icon {
    background: linear-gradient(135deg, #0077b5, #005885) !important;
}

.linkedin-icon i {
    font-size: 1.1rem;
}

.resume-download {
    text-align: center;
    margin-top: 2rem;
}

.resume-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-btn i {
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    padding: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.form-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.form-submit i {
    font-size: 1.1rem;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-input.error,
.form-textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: none;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Footer */
.footer {
    background-color: #ffffff;
    padding: 2rem 0;
    border-top: 1px solid #e8e8e8;
}

.footer-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive Design */
/* Large Desktop (1441px and above) */
@media (min-width: 1441px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        max-width: 1200px;
        /* Force 2 columns - prevent stacking */
        grid-auto-flow: row;
        grid-template-rows: auto;
    }
    
    .skill-category {
        padding: 3rem 2.5rem;
        min-height: 450px;
    }
}

/* Laptop screens (1025px - 1440px) - Includes 14" MacBook Pro */
@media (max-width: 1440px) and (min-width: 1025px) {
    .skills-section {
        padding: 6rem 0;
    }
    
    .skills-section .container {
        max-width: 1200px;
        padding: 0 2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
        /* Force 2 columns - prevent stacking */
        grid-auto-flow: row;
        /* Ensure columns don't collapse */
        grid-template-rows: auto;
        /* Prevent any wrapping */
        grid-auto-columns: auto;
    }
    
    .skill-category {
        padding: 2rem 1.5rem;
        min-height: 400px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        /* Critical: ensure no overflow */
        overflow: hidden;
        position: relative;
    }
    
    .skills-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    
    .skill-item {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 900px;
        /* Force 2 columns - prevent stacking */
        grid-auto-flow: row;
        grid-template-rows: auto;
    }
    
    .skill-category {
        padding: 2rem 1.5rem;
        min-height: 380px;
    }
    
    .skills-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }
    
    .skill-item {
        padding: 1rem 0.6rem;
        min-height: 110px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
    }
    
    .skill-icon i {
        font-size: 1.2rem;
    }
}

/* Tablet Portrait and Mobile Landscape (481px - 768px) */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .skill-category {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .timeline::before,
    .education-timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content,
    .education-item:nth-child(odd) .education-content,
    .education-item:nth-child(even) .education-content {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-marker,
    .education-marker {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0 1.5rem;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .content-wrapper {
        padding: 0 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text {
        padding-left: 0;
    }
    
    .skills-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1rem 0.8rem;
        min-height: 110px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.6rem;
    }
    
    .skill-icon i {
        font-size: 1.2rem;
    }
    
    .skill-name {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .education-degree {
        font-size: 1.15rem;
        line-height: 1.5;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        word-break: keep-all;
    }
    
    .name {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    
    .subheading {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .photo-frame {
        width: 160px;
        height: 160px;
    }
    
    .skills-section {
        padding: 4rem 0;
    }
    
    .skills-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .skills-grid {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .skill-category {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .category-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 0.8rem;
    }
    
    .category-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .skills-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 0.9rem 0.5rem;
        min-height: 100px;
        border-radius: 12px;
    }
    
    .skill-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .skill-icon i {
        font-size: 1rem;
    }
    
    .skill-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .timeline::before,
    .education-timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content,
    .education-item:nth-child(odd) .education-content,
    .education-item:nth-child(even) .education-content {
        margin-left: 50px;
        padding-left: 1.5rem;
    }
    
    .timeline-marker,
    .education-marker {
        left: 20px;
        width: 16px;
        height: 16px;
    }
    
    .education-card {
        padding: 1.5rem;
    }
    
    .education-degree {
        font-size: 1.2rem;
        line-height: 1.5;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        word-break: keep-all;
    }
    
    .education-institution {
        font-size: 1rem;
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    .job-title {
        font-size: 1.2rem;
    }
    
    .job-company {
        font-size: 1rem;
    }
    
    .job-achievements li {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-outline {
        width: 100%;
        min-width: auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-details,
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-info-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-text h4 {
        font-size: 1rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
    }
    
    .form-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Reduce motion for better performance on mobile */
@media (max-width: 768px) {
    .skill-category:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .skill-item:hover {
        transform: translateY(-3px) scale(1.03);
    }
    
    /* Disable parallax on mobile for better performance */
    .skill-category {
        transform: none !important;
    }
}

/* Disable parallax transforms on skill categories to prevent overlap */
.skill-category {
    transform: none;
}

/* Allow hover transforms but keep them minimal */
.skill-category:hover {
    transform: translateY(-4px) !important;
}

/* Small Mobile Devices (max-width: 430px) */
@media (max-width: 430px) {
    .education-degree {
        font-size: 1.1rem;
        line-height: 1.5;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        word-break: keep-all;
    }
    
    .skills-section {
        padding: 3rem 0;
    }
    
    .skills-section .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 0.8rem;
    }
    
    .skills-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2.5rem;
    }
    
    .skills-grid {
        gap: 1.2rem;
        padding: 0 0.5rem;
    }
    
    .skill-category {
        padding: 1.2rem 0.8rem;
    }
    
    .category-header {
        margin-bottom: 1.2rem;
        padding-bottom: 0.6rem;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.6rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .skill-item {
        padding: 0.7rem 0.4rem;
        min-height: 90px;
        border-radius: 10px;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.4rem;
    }
    
    .skill-icon i {
        font-size: 0.9rem;
    }
    
    .skill-name {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* iPhone 14 Pro Max and large mobile devices */
@media (max-width: 430px) and (max-height: 932px) {
    .home-section {
        padding-top: 100px;
        min-height: 100vh;
    }
    
    .name {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    
    .subheading {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 2rem;
    }
    
    .photo-frame {
        width: 150px;
        height: 150px;
    }
    
    .bio-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .cta-section {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .skill-item {
        padding: 0.8rem 0.5rem;
    }
    
    .skill-icon {
        width: 35px;
        height: 35px;
    }
    
    .skill-name {
        font-size: 0.7rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
        padding-left: 1rem;
    }
    
    .timeline-marker {
        left: 15px;
        width: 14px;
        height: 14px;
    }
    
    .job-card {
        padding: 1.2rem;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
    
    .job-company {
        font-size: 0.9rem;
    }
    
    .job-achievements li {
        font-size: 0.85rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .btn-outline {
        width: 100%;
        min-width: auto;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-details,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-info-item {
        margin-bottom: 1.2rem;
        padding: 0.8rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-text h4 {
        font-size: 0.9rem;
    }
    
    .contact-text p {
        font-size: 0.85rem;
    }
    
    .form-submit {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations */
.skill-category:nth-child(1) { transition-delay: 0.1s; }
.skill-category:nth-child(2) { transition-delay: 0.2s; }
.skill-category:nth-child(3) { transition-delay: 0.3s; }

.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:nth-child(5) { transition-delay: 0.5s; }
.project-card:nth-child(6) { transition-delay: 0.6s; }

/* Focus states for accessibility */
.skill-item:focus,
.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ============================================
   Custom UI Enhancements (Job Cards Layout)
   ============================================ */

.job-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-header-top .job-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
}

.job-dates {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.job-company {
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 0.25rem;
}

.job-location {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.job-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Hero Section Highlights (Apple Glass Cards) */
.hero-key-highlights {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-card-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.9rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.hero-card-stat:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(197, 155, 39, 0.4);
    background: #ffffff;
}

.stat-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #1d1d1f;
    color: #c59b27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.stat-value {
    font-size: 0.78rem;
    color: #86868b;
    font-weight: 400;
}

/* Education Branding Layout */
.university-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.uni-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #c59b27 0%, #e0c068 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.25);
}

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

.education-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.education-meta-right .education-dates {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c59b27;
    background: rgba(197, 155, 39, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 15px;
}

.education-meta-right .education-location {
    font-size: 0.82rem;
    color: #777777;
}

@media (max-width: 768px) {
    .hero-key-highlights {
        flex-direction: column;
        align-items: stretch;
    }
    .education-meta-right {
        align-items: flex-start;
    }
}



