/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #34a853;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --gradient-primary: linear-gradient(135deg, #2196F3 0%, #1a73e8 50%, #0D47A1 100%);
    --gradient-secondary: linear-gradient(135deg, #42A5F5 0%, #1976D2 50%, #0D47A1 100%);
    --gradient-accent: linear-gradient(135deg, #64B5F6 0%, #2196F3 50%, #1565C0 100%);
    --glass-background: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --spacing-unit: clamp(1rem, 2vw, 2rem);
    --container-width: min(1400px, 90vw);
    --section-spacing: clamp(4rem, 8vw, 8rem);
    --card-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --card-hover-shadow: 0 4px 8px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --bounce-timing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --bounce-duration: 0.4s;
    --smooth-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --smooth-duration: 0.6s;
}

@font-face {
    font-family: 'Google Sans';
    src: url('https://fonts.gstatic.com/s/googlesans/v14/4UaGrENHsxJlGDuGo1OIlL3Owp4.woff2') format('woff2');
}

body {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Material Design Background */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background: 
        radial-gradient(circle at 10% 10%, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(52, 168, 83, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 10s ease infinite;
}

@keyframes backgroundPulse {
    0% { opacity: 0.03; }
    50% { opacity: 0.07; }
    100% { opacity: 0.03; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 64px;
    background: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
    width: var(--container-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-unit);
    position: relative;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
    padding: 0.5rem;
    transition: all var(--smooth-duration) var(--smooth-timing);
    margin-right: auto;
}

.nav-logo::before {
    content: 'K';
    display: inline-block;
    animation: smoothLetterK 4s var(--smooth-timing) infinite;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(26, 115, 232, 0.2));
}

.nav-logo::after {
    content: 'Y';
    display: inline-block;
    animation: smoothLetterY 4s var(--smooth-timing) infinite;
    animation-delay: 0.2s;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(52, 168, 83, 0.2));
}

@keyframes smoothLetterK {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    75% {
        transform: translateY(2px);
    }
}

@keyframes smoothLetterY {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(2px) scale(1.05);
    }
    75% {
        transform: translateY(-2px) scale(0.98);
    }
}

.nav-logo:hover::before {
    animation: smoothHoverK 0.8s var(--smooth-timing) both;
}

.nav-logo:hover::after {
    animation: smoothHoverY 0.8s var(--smooth-timing) both;
    animation-delay: 0.1s;
}

@keyframes smoothHoverK {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes smoothHoverY {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth glow effect on hover */
.nav-logo:hover {
    text-shadow: 0 0 20px rgba(26, 115, 232, 0.4);
}

/* Smooth background effect */
.nav-logo span {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(26, 115, 232, 0.08) 0%,
        transparent 70%);
    opacity: 0;
    transition: all var(--smooth-duration) var(--smooth-timing);
    border-radius: 8px;
}

.nav-logo:hover span {
    opacity: 1;
    animation: smoothPulse 2s var(--smooth-timing) infinite;
}

@keyframes smoothPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

/* Hero Section with Profile */
.hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 0;
    display: block;
    padding: calc(64px + var(--spacing-unit)) var(--spacing-unit) 1.5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Left Side Profile */
.profile-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
}

.profile-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-img-container {
    width: 280px;
    height: 280px;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.profile-role {
    margin: 1.5rem 0 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy effect */
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Right Side Profile Content */
.profile-right {
    padding: 2rem;
}

.profile-right h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.profile-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.profile-description {
    margin: 2rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.profile-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Projects Section */
.projects {
    padding: 2.5rem 0 4rem 0;
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%),
        radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.05) 0%, transparent 50%);
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(26, 115, 232, 0.03) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(52, 168, 83, 0.03) 50%, transparent 55%);
    background-size: 30px 30px;
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--text-primary);
    position: relative;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 1rem;
    perspective: 1000px;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: all var(--bounce-duration) var(--bounce-timing);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    animation: bounceIn var(--bounce-duration) var(--bounce-timing) forwards;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.03) translateZ(0);
    box-shadow: 0 12px 24px rgba(26, 115, 232, 0.15);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

.project-content {
    transform: translateZ(0);
    will-change: transform;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    position: relative;
    padding-bottom: 1rem;
    transform: translateZ(0);
    transition: all var(--bounce-duration) var(--bounce-timing);
    will-change: transform, color;
}

.project-card:hover h3 {
    transform: scale(1.05) translateZ(0);
    color: var(--primary-color);
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 1.5px;
    transition: width 0.3s ease;
}

.project-card:hover h3::after {
    width: 60px;
}

.project-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.project-features {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.project-features li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tech-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: var(--surface-color);
    color: var(--primary-color);
    font-weight: 500;
    transform: translateZ(0);
    transition: all var(--bounce-duration) var(--bounce-timing);
    will-change: transform, background-color;
}

.project-card:hover .tech-tag {
    transform: translateY(-5px) scale(1.05) translateZ(0);
    background: rgba(26, 115, 232, 0.1);
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 3rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .profile-img-container {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .profile-img-container {
        width: 120px;
        height: 120px;
    }
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card:nth-child(3) {
    transition-delay: 0.4s;
}

/* Skills Section */
.skills {
    padding: var(--section-spacing) 0;
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%),
        radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    overflow: hidden;
    position: relative;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.core-skills,
.technologies {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 2.5rem;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: all var(--bounce-duration) var(--bounce-timing);
    backface-visibility: hidden;
    position: relative;
    overflow: hidden;
}

.core-skills:hover,
.technologies:hover {
    transform: translateY(-10px) scale(1.02) translateZ(0);
    box-shadow: 0 16px 32px rgba(26, 115, 232, 0.12);
}

.core-skills::before,
.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.core-skills:hover::before,
.technologies:hover::before {
    transform: scaleX(1);
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.core-skills:hover .section-subtitle::after,
.technologies:hover .section-subtitle::after {
    width: 60px;
}

.skill-item {
    margin-bottom: 1.5rem;
    transform: translateZ(0);
    will-change: transform;
    transition: all var(--bounce-duration) var(--bounce-timing);
    padding: 0.5rem;
    border-radius: 8px;
}

.skill-item:hover {
    transform: translateX(10px) translateZ(0);
    background: rgba(26, 115, 232, 0.05);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    transform: translateZ(0);
    will-change: transform;
    transition: all var(--bounce-duration) var(--bounce-timing);
}

.skill-item:hover .skill-name {
    transform: scale(1.02) translateZ(0);
    color: var(--primary-color);
}

.skill-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transform: translateZ(0);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: transform var(--bounce-duration) var(--bounce-timing),
                width var(--bounce-duration) var(--bounce-timing);
    transform-origin: left;
    will-change: transform, width;
}

.skill-progress.animate {
    animation: fillBar 1s var(--bounce-timing) forwards;
}

@keyframes fillBar {
    0% {
        width: 0;
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1.1);
    }
    100% {
        width: var(--progress);
        transform: scaleX(1);
    }
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    perspective: 1000px; /* 3D space for children */
}

.tech-bubble {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform; /* Optimize animations */
    transition: all var(--bounce-duration) var(--bounce-timing); /* Optimized spring effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    backface-visibility: hidden; /* Reduce flickering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tech-bubble:hover {
    transform: translateY(-8px) scale(1.05) translateZ(0);
    background: var(--primary-color);
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(26, 115, 232, 0.2);
}

.tech-bubble i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transform: translateZ(0);
    transition: all var(--bounce-duration) var(--bounce-timing);
    will-change: transform, color;
}

.tech-bubble span {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    transform: translateZ(0);
    transition: all var(--bounce-duration) var(--bounce-timing);
    will-change: transform, color;
}

.tech-bubble:hover i,
.tech-bubble:hover span {
    color: white;
    transform: scale(1.1) translateZ(0);
}

/* Optimized stagger delays */
.tech-bubble:nth-child(1) { transition-delay: 0.02s; }
.tech-bubble:nth-child(2) { transition-delay: 0.04s; }
.tech-bubble:nth-child(3) { transition-delay: 0.06s; }
.tech-bubble:nth-child(4) { transition-delay: 0.08s; }
.tech-bubble:nth-child(5) { transition-delay: 0.10s; }
.tech-bubble:nth-child(6) { transition-delay: 0.12s; }
.tech-bubble:nth-child(7) { transition-delay: 0.14s; }
.tech-bubble:nth-child(8) { transition-delay: 0.16s; }
.tech-bubble:nth-child(9) { transition-delay: 0.18s; }
.tech-bubble:nth-child(10) { transition-delay: 0.20s; }

/* Hover state preparation */
.tech-bubble {
    transform-origin: center center;
}

/* Performance optimizations for touch devices */
@media (hover: hover) {
    .tech-bubble {
        transform: translateY(0) scale(1) translateZ(0);
    }
    
    .tech-bubble:hover {
        transform: translateY(-8px) scale(1.05) translateZ(0);
    }
}

/* Responsive adjustments with performance considerations */
@media (max-width: 768px) {
    .tech-bubble {
        padding: 0.6rem 1rem;
        transform: none; /* Simpler transform on mobile */
    }
    
    .tech-bubble:hover {
        transform: translateY(-4px) scale(1.02); /* Lighter animation on mobile */
    }
    
    .tech-bubble i {
        font-size: 1.1rem;
    }
    
    .tech-bubble span {
        font-size: 0.9rem;
    }
    
    .tech-cloud {
        gap: 0.75rem;
    }
}

/* Preload hover state to prevent initial lag */
@media (hover: hover) {
    .tech-bubble::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary-color);
        border-radius: 50px;
        opacity: 0;
        z-index: -1;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
}

@media (max-width: 1200px) {
    .skills .container {
        padding: 0 1.5rem;
    }
    
    .skills-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .core-skills,
    .technologies {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .skills .container {
        padding: 0 1rem;
    }
    
    .core-skills,
    .technologies {
        padding: 1.5rem;
    }
    
    .tech-bubble {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        gap: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .tech-bubble {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Contact Section */
.contact {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(26, 115, 232, 0.03) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(52, 168, 83, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.email-link {
    text-decoration: none;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all var(--bounce-duration) var(--bounce-timing);
    transform: translateY(0);
    opacity: 1;
    width: 100%;
    display: block;
}

.email-link:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(26, 115, 232, 0.15);
    background: var(--gradient-primary);
}

.email-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.email-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.email-link:hover .email-icon {
    background: white;
    transform: rotate(15deg);
}

.email-icon i {
    font-size: 1.4rem;
    color: white;
    transition: all 0.3s ease;
}

.email-link:hover .email-icon i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.email-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    word-break: break-all;
}

.email-link:hover .email-text {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 1.5rem 1rem;
    }

    .email-link {
        padding: 1.25rem 1.5rem;
    }

    .email-icon {
        width: 40px;
        height: 40px;
    }

    .email-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-wrapper {
        padding: 1rem 0.5rem;
    }

    .email-link {
        padding: 1rem;
    }

    .email-content {
        gap: 1rem;
    }

    .email-icon {
        width: 36px;
        height: 36px;
    }

    .email-text {
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    padding: var(--spacing-unit);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--background-color);
}

/* Scroll Fade Effect */
.fade-on-scroll {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-out {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 6rem;
    }
    
    .container {
        width: 90%;
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 5rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 4rem;
    }
    
    .container {
        width: 95%;
    }
    
    .contact-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .skill-category,
    .project-card {
        padding: 1.5rem;
    }
    
    .tech-cloud {
        gap: 0.75rem;
    }
    
    .tech-bubble {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 3rem;
    }
    
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .skill-category h3,
    .project-content h3 {
        font-size: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 0.875rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .project-card:hover,
    .skill-category:hover,
    .tech-bubble:hover {
        transform: none;
    }
    
    .submit-button:hover {
        transform: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .navbar {
        position: relative;
        box-shadow: none;
    }
    
    .hero,
    .projects,
    .skills,
    .contact {
        page-break-inside: avoid;
    }
}

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

/* Enhanced scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Section transitions */
.section {
    position: relative;
    z-index: 1;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.95)
    );
    pointer-events: none;
}

/* Smooth intersection observer animation */
.scroll-trigger {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation for Profile Image */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Hover Effects for Links */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
}

/* Enhanced Profile Section Spacing */
.profile {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
}

.profile .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.profile-intro {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.profile-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.profile-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

.profile-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15);
}

.highlight-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.highlight-card h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.highlight-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.profile-showcase {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 3rem;
    height: 100%;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(26, 115, 232, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.tech-item i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.tech-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive Design for Profile Section */
@media (max-width: 1200px) {
    .profile-grid {
        gap: 3rem;
    }
    
    .profile-name {
        font-size: 2.25rem;
    }
    
    .highlight-card {
        padding: 1.75rem;
    }
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .profile-content {
        gap: 2.5rem;
    }
    
    .profile-showcase {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .profile {
        margin: 3rem 0;
    }
    
    .profile-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-title {
        font-size: 1.15rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .tech-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .profile {
        margin: 2rem 0;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-content {
        gap: 2rem;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-description {
        font-size: 1rem;
    }
    
    .highlight-card {
        padding: 1.25rem;
    }
    
    .highlight-card i {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .highlight-card h4 {
        font-size: 1.1rem;
    }
}

/* Contact Dialog Styles */
.contact-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.contact-dialog.show {
    display: flex;
    opacity: 1;
}

.dialog-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 500px;
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-dialog.show .dialog-content {
    transform: translateY(0);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #007bff;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .navbar {
        height: 48px;
    }
    .nav-content {
        padding: 0 0.5rem;
        min-height: 48px;
    }
    .nav-logo {
        font-size: 1.5rem;
        padding: 0.25rem 0;
    }
    .mobile-menu-toggle {
        font-size: 1.5rem;
        height: 48px;
        min-width: 48px;
        padding: 0;
    }
    .nav-links {
        position: fixed;
        top: 48px;
        right: 0;
        flex-direction: column;
        background: var(--background-color);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        width: 200px;
        gap: 0.5rem;
        z-index: 1000;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-item {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    .nav-item:hover {
        transform: translateX(5px);
    }
    .profile-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    .profile-left, .profile-right {
        padding: 0;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .profile-img-wrapper {
        align-items: center;
    }
    .profile-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    .hero-content {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.25rem 0;
    }
    .profile-img-container {
        width: 100px;
        height: 100px;
    }
    .profile-name {
        font-size: 1.5rem;
    }
    .profile-title {
        font-size: 1rem;
    }
    .profile-subtitle {
        font-size: 0.95rem;
    }
    .hero-content {
        padding: 0.5rem 0.25rem;
    }
}

/* Hamburger menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
}
.mobile-menu-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100vw;
        background: var(--background-color);
        padding: 2rem 0 1rem 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        z-index: 10000;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    body.menu-open {
        overflow: hidden;
    }
    .navbar {
        position: fixed;
    }
    .nav-content {
        padding: 0 1rem;
    }
}

/* Project Screenshots Carousel */
.project-screenshots {
    width: 100%;
    margin: 0 0 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 12px;
    background: var(--surface-color);
    box-shadow: 0 2px 8px rgba(185, 189, 194, 0.05);
    padding: 0.75rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.screenshots-scroll {
    display: inline-flex;
    padding: 0.5rem;
    gap: 0.75rem;
    align-items: center;
    width: max-content; /* Ensure proper scrolling */
}

.screenshot-img {
    width: 280px; /* Base size */
    height: auto;
    flex: 0 0 auto;
    border-radius: 8px;
    padding: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
    transition: transform 0.3s var(--bounce-timing), box-shadow 0.3s;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .screenshot-img {
        width: 240px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .screenshot-img {
        width: 200px;
    }
    
    .project-card {
        margin: 1rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .button-wrapper {
        flex-direction: row;
        gap: 1rem;
    }
    
    .projects {
        padding: 1rem;
    }
    
    .project-screenshots {
        padding: 0.5rem;
    }
    
    .screenshots-scroll {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .screenshot-img {
        width: 160px;
    }
    
    .project-card {
        margin: 0.5rem;
    }
    
    .button-wrapper {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .project-features li {
        font-size: 0.9rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Fix container width on mobile */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }
    
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .project-card {
        width: 100%;
        margin: 0;
        margin-bottom: 2rem;
    }

}

/* Ensure proper scrolling behavior */
.project-screenshots::-webkit-scrollbar {
    height: 6px;
}

.project-screenshots::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.project-screenshots::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Fix button layout on mobile */
@media (max-width: 480px) {
    .button-wrapper {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        flex: 0 1 auto;
        white-space: nowrap;
    }
}

/* Button styling enhancements */
.button-wrapper {
    display: flex;
    align-items: center;
    gap: 2.5rem;  /* Increased gap between buttons */
    margin-top: 2rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;  /* More rounded corners */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn.go-live {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;  /* Adjusted padding */
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn.go-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.btn.go-live i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn.go-live:hover i {
    transform: scale(1.1);
}

.btn.github {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.2rem;
    transition: all 0.3s ease;
}

.btn.github:hover {
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.btn.github i {
    font-size: 1.3rem;
    margin-right: 0.3rem;
    transition: transform 0.3s ease;
}

.btn.github:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* Button hover effects */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .button-wrapper {
        gap: 1.5rem;
    }

    .btn.go-live {
        padding: 0.7rem 1.5rem;
    }

    .btn.github {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .button-wrapper {
        gap: 1rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .btn.go-live {
        padding: 0.6rem 1.2rem;
    }

    .btn.github {
        padding: 0.5rem 0.9rem;
    }

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

/* Active state for buttons */
.btn:active {
    transform: translateY(1px);
    opacity: 0.9;
}

/* Experience Section */
.experience {
    padding: var(--section-spacing) 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(26, 115, 232, 0.03) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(52, 168, 83, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.experience-item {
    position: relative;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: bounceIn var(--bounce-duration) var(--bounce-timing) forwards;
}

.experience-item.delay-1 {
    animation-delay: 0.2s;
}

.experience-item.delay-2 {
    animation-delay: 0.4s;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    z-index: 1;
}

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

.experience-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--bounce-duration) var(--bounce-timing);
    position: relative;
    z-index: 2;
}

.experience-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(26, 115, 232, 0.15);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

.experience-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.experience-content:hover .company-logo {
    transform: scale(1.1) rotate(5deg);
}

.company-logo i {
    font-size: 1.5rem;
    color: white;
}

.experience-details {
    flex: 1;
}

.experience-details h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.experience-content:hover .experience-details h3 {
    color: var(--primary-color);
}

.company-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.employment-type {
    font-size: 0.9rem;
    color: var(--accent-color);
    background: rgba(52, 168, 83, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location::before {
    content: '📍';
    font-size: 0.8rem;
}

.experience-description {
    margin-bottom: 1.5rem;
}

.experience-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Responsive adjustments for experience */
@media (max-width: 768px) {
    .experience-timeline {
        gap: 1.5rem;
        padding: 1rem;
    }

    .experience-content {
        padding: 1.5rem;
    }

    .experience-header {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .company-logo i {
        font-size: 1.25rem;
    }

    .experience-details h3 {
        font-size: 1.2rem;
    }

    .company-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .experience-content {
        padding: 1.25rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .company-logo {
        align-self: center;
    }

    .experience-item::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Certifications Section */
.certifications {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(26, 115, 232, 0.03) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(52, 168, 83, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--bounce-duration) var(--bounce-timing);
    transform: translateY(20px);
    opacity: 0;
    animation: bounceIn var(--bounce-duration) var(--bounce-timing) forwards;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.certification-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(26, 115, 232, 0.15);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

.certification-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cert-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

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

.cert-details {
    flex: 1;
}

.cert-details h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.certification-card:hover .cert-details h3 {
    color: var(--primary-color);
}

.cert-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Animation delays for cards */
.certification-card.delay-1 {
    animation-delay: 0.2s;
}

.certification-card.delay-2 {
    animation-delay: 0.4s;
}

.certification-card.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .certification-card {
        padding: 1.5rem;
    }

    .cert-icon {
        width: 50px;
        height: 50px;
    }

    .cert-icon i {
        font-size: 1.5rem;
    }

    .cert-details h3 {
        font-size: 1.1rem;
    }

    .cert-details p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .certification-card {
        padding: 1.25rem;
    }

    .certification-content {
        gap: 1rem;
    }

    .cert-icon {
        width: 45px;
        height: 45px;
    }

    .cert-icon i {
        font-size: 1.25rem;
    }
} 