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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8efc;
    --secondary-color: #48bb78;
    --accent-color: #f6ad55;
    --accent-orange: #ed8936;
    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-light: #edf2f7;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-accent: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    --gradient-dark: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f7fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.nav-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding-bottom: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(72, 187, 120, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.orb3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

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

.hero-greeting {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typing Animation Styles */
.typing-container {
    margin-bottom: 1.5rem;
}

#typed-text {
    display: inline;
    min-width: 1px;
    text-align: left;
}

.role {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
    min-height: 3rem;
    display: inline;
    letter-spacing: 0.5px;
    line-height: 1.4;
    width: auto;
    cursor: none; /* Hide default cursor */
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: #2d3748;
    animation: blink 1s infinite;
    margin-left: 1px;
    vertical-align: baseline;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-subtitle-container {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-secondary);
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

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

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

.btn-primary.glow-effect:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.profile-card-3d {
    position: relative;
    perspective: 1000px;
    margin-bottom: 60px;
}

.avatar-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: var(--shadow-2xl);
    position: relative;
    border: 5px solid white;
    overflow: hidden;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-badge {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary-color);
}

.card1 {
    top: 20px;
    right: -50px;
    animation-delay: 0s;
}

.card2 {
    top: 120px;
    left: -70px;
    animation-delay: 1s;
}

.card3 {
    bottom: 40px;
    right: -60px;
    animation-delay: 2s;
}

/* Scroll indicator removed */

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 1rem;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 2s linear infinite;
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
    margin: 0;
}

/* Ensure no gaps between sections */
section + section {
    margin-top: 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

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

/* About Section */
.about {
    background: var(--bg-secondary);
    margin-top: 0;
    padding-top: 6rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-main {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 800;
    text-align: center;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Impact Metrics Styles */
.experience-highlights {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.company-logos-mini {
    display: flex;
    gap: 1rem;
}

.logo-mini {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    cursor: pointer;
}

.logo-mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.tech-focus-tag {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.tech-focus-tag:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.impact-metrics {
    margin: 2.5rem 0;
}

.impact-metrics h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.impact-metrics h4 i {
    color: var(--primary-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

.technical-achievements {
    margin: 2.5rem 0;
}

.technical-achievements h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.technical-achievements h4 i {
    color: var(--primary-color);
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.achievement:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.achievement-content {
    flex: 1;
}

.achievement-content strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.achievement-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.current-focus {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--border-radius-xl);
    border-left: 4px solid var(--primary-color);
}

.current-focus h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.current-focus h4 i {
    color: var(--primary-color);
}

.current-focus p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.mission-statement {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-xl);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

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

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

.category-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

/* Icon-specific colors */
.react-icon { background: linear-gradient(135deg, #61dafb, #21759b); }
.angular-icon { background: linear-gradient(135deg, #dd0031, #c3002f); }
.typescript-icon { background: linear-gradient(135deg, #007acc, #00599e); }
.html-icon { background: linear-gradient(135deg, #e34f26, #d23527); }
.node-icon { background: linear-gradient(135deg, #339933, #227722); }
.python-icon { background: linear-gradient(135deg, #3776ab, #2d5f8b); }
.java-icon { background: linear-gradient(135deg, #007396, #005a75); }
.fastapi-icon { background: linear-gradient(135deg, #009688, #00695c); }
.tensorflow-icon { background: linear-gradient(135deg, #ff6f00, #e65100); }
.pytorch-icon { background: linear-gradient(135deg, #ee4c2c, #c73028); }
.openai-icon { background: linear-gradient(135deg, #412991, #321a6b); }
.llm-icon { background: linear-gradient(135deg, #673ab7, #512da8); }
.aws-icon { background: linear-gradient(135deg, #ff9900, #ec7211); }
.docker-icon { background: linear-gradient(135deg, #2496ed, #0db7ed); }
.git-icon { background: linear-gradient(135deg, #f05032, #d93826); }
.ci-icon { background: linear-gradient(135deg, #6db33f, #5a9e2f); }
.mongodb-icon { background: linear-gradient(135deg, #47a248, #3e8e41); }
.postgres-icon { background: linear-gradient(135deg, #336791, #2b5d84); }
.redis-icon { background: linear-gradient(135deg, #dc382d, #a82820); }
.kafka-icon { background: linear-gradient(135deg, #231f20, #141414); }

.skill-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-level {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    position: relative;
    transition: width 2s ease;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* New Compact Skills Layout */
.skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-group {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.skill-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-group h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

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

.skill-tag {
    background: white;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Experience Section */
.experience {
    background: var(--bg-secondary);
}

.experience-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 200px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-year {
    width: 180px;
    text-align: right;
    padding-right: 2rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    margin-left: 2rem;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--primary-color);
}

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

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    padding: 8px;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-logo:hover .company-logo-img {
    transform: scale(1.1);
}

.position-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.position-info h4 {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

.timeline-details ul {
    list-style: none;
    margin-bottom: 2rem;
}

.timeline-details li {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    font-size: 1rem;
}

.timeline-details li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 1.125rem;
    width: 1.5rem;
}

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

.tech-tag {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Timeline Year Badge Styles */
.timeline-year-badge,
.education-year-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.timeline-year-badge:hover,
.education-year-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.timeline-year-badge i,
.education-year-badge i {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Education Section */
.education {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.education-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.education-item {
    margin-bottom: 4rem;
    position: relative;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-content-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.education-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    border-bottom: 1px solid var(--border-color);
}

.school-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: var(--shadow-md);
    margin-right: 1.5rem;
}

.school-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.school-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.education-meta {
    display: flex;
    gap: 1rem;
}

.gpa-badge,
.location-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: transparent;
    transition: var(--transition-normal);
}

.gpa-badge:hover,
.location-badge:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.education-details {
    padding: 2rem;
}

.education-section {
    margin-bottom: 2rem;
}

.education-section:last-child {
    margin-bottom: 0;
}

.education-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-section h5 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.course-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.research-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.research-role {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.research-role strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.research-professor {
    color: var(--primary-color);
    font-weight: 500;
}

.research-highlights {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.research-highlights li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    list-style: none;
}

.research-highlights li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.achievement-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.achievement-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

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

.focus-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.focus-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition-fast);
}

.focus-area:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.focus-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.focus-area span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

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

.project-image {
    height: 300px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.project-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 20px;
    background: white;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

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

.project-achievements {
    margin: 1.5rem 0;
}

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

.project-achievements li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.project-achievements li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
}

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

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

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

.contact-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-size: 1.125rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.contact-info-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info-text a,
.contact-info-text span {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    font-weight: 600;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-link i {
    font-size: 1.25rem;
    width: 1.5rem;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-header h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

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

.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
    background: white;
    padding: 0 0.25rem;
    opacity: 0;
    transform: translateY(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    padding: 0 0.5rem;
    opacity: 1;
    transform: translateY(0);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-content p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-content i {
    color: var(--accent-color);
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.back-to-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-image-container {
        order: -1;
    }

    .about-main {
        padding: 0 1rem;
    }

    .impact-metrics {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 3rem 0;
    }

    .about {
        padding: 0 0 2rem 0;
        margin-top: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-xl);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }

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

    .navbar {
        height: 70px;
        padding: 0 1rem;
    }

    .nav-container {
        height: 70px;
    }

    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
        background: rgba(102, 126, 234, 0.05);
    }

    .nav-link::after {
        display: none;
    }
}

    .nav-menu {
        gap: 2rem;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-year {
        width: 40px;
        height: 40px;
        padding-right: 0;
        padding-left: 0;
    }

    .timeline-content {
        margin-left: 0;
        padding: 2rem 2rem 2rem 3rem;
    }

    .timeline-content::before {
        left: 10px;
        top: 2rem;
    }

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

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-xl);
        padding: 2rem 0;
        gap: 1rem;
    }

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

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .hero-stats {
        justify-content: center;
        gap: 3rem;
        margin: 1.5rem 0;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        background: var(--gradient-primary);
        -webkit-text-fill-color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
        display: block;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
        color: var(--text-secondary);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

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

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    section {
        padding: 3rem 0;
    }

    /* Remove top padding from about section on mobile */
    .about {
        padding: 0 0 2rem 0;
        margin-top: 0;
    }

    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    .hamburger span {
        background: var(--text-primary);
        width: 25px;
        height: 3px;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

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

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

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

    /* Extra padding for hero section to accommodate profile */
    .hero {
        padding: 5rem 0 5rem 0;
    }

    /* Scroll indicator removed on mobile */

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .avatar-placeholder {
        width: 180px;
        height: 180px;
        font-size: 3rem;
    }

    .floating-card {
        width: 60px;
        height: 60px;
        font-size: 0.65rem;
        padding: 0.3rem;
    }

    .floating-card i {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .card1 {
        right: -50px;
        top: -20px;
    }

    .card2 {
        left: -60px;
        top: 40%;
    }

    .card3 {
        right: -55px;
        bottom: -30px;
    }

    .profile-card-3d {
        margin-bottom: 30px;
    }

    .cursor {
        display: none; /* Hide custom cursor on mobile */
    }

    /* Profile Picture Mobile Fix - Keep same design as desktop */
    .hero-image-container {
        order: -1;
        margin: 1.5rem 0;
        padding: 1rem;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .profile-card-3d {
        position: relative;
        margin: 0 auto;
        perspective: 800px;
        transform-style: preserve-3d;
    }

    .avatar-placeholder {
        width: 160px !important;
        height: 160px !important;
        font-size: 2.8rem !important;
        border: 4px solid white;
        position: relative;
        z-index: 2;
    }

    .status-badge {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.7rem !important;
        bottom: -8px !important;
        white-space: nowrap;
    }

    /* Show floating cards on mobile - attached to profile edges */
    .floating-card {
        display: flex !important;
        position: absolute;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.12);
        z-index: 3;
        width: 45px;
        height: 45px;
        font-size: 0.55rem;
        font-weight: 600;
        padding: 0.25rem;
        animation: float 4s ease-in-out infinite;
    }

    .floating-card i {
        font-size: 0.75rem;
        color: var(--primary-color);
        margin-bottom: 0.15rem;
    }

    /* Position floating cards attached to profile picture edges */
    .card1 {
        right: -35px;
        top: 10px;
        animation-delay: 0s;
    }

    .card2 {
        left: -35px;
        top: 50%;
        transform: translateY(-50%);
        animation-delay: 1s;
    }

    .card3 {
        right: -35px;
        bottom: -20px;
        animation-delay: 2s;
    }

    /* Contain everything within hero section */
    .hero {
        overflow: visible;
        position: relative;
    }

    .hero-bg {
        overflow: hidden;
    }

    /* Quantifiable Impact Mobile Redesign */
    .metrics-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0.5rem !important;
        background: none !important;
        box-shadow: none !important;
    }

    .metric-item {
        padding: 1rem !important;
        background: var(--bg-secondary) !important;
        border-radius: 12px !important;
        border-left: 4px solid var(--primary-color) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }

    .metric-number {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
        background: var(--gradient-primary) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .metric-label {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        color: var(--text-secondary) !important;
    }

    .skill-category {
        padding: 1.5rem;
    }

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

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

    .project-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    /* Education Section Mobile Styles */
    .education-item {
        margin-bottom: 3rem;
    }

    .education-content-card {
        width: 100%;
    }

    .education-content-card:hover {
        transform: none;
    }

    /* Profile Picture Responsive for Tablets */
    .avatar-placeholder {
        width: 220px;
        height: 220px;
    }

    .floating-card {
        width: 75px;
        height: 75px;
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    .floating-card i {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .card1 {
        right: -70px;
        top: -25px;
    }

    .card2 {
        left: -80px;
        top: 45%;
    }

    .card3 {
        right: -75px;
        bottom: -35px;
    }

    .cursor {
        display: none; /* Hide custom cursor on tablets */
    }

    /* Profile Picture Tablet Fix */
    .hero-image-container {
        margin: 1.5rem 0;
    }

    .profile-card-3d {
        margin: 0 auto;
        width: fit-content;
    }

    .avatar-placeholder {
        width: 180px !important;
        height: 180px !important;
        font-size: 3rem !important;
    }

    .status-badge {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.8rem !important;
        bottom: -10px !important;
    }

    .floating-card {
        width: 65px !important;
        height: 65px !important;
        font-size: 0.65rem !important;
        padding: 0.3rem !important;
    }

    .floating-card i {
        font-size: 0.9rem !important;
    }

    .card1 {
        right: -60px !important;
        top: -25px !important;
    }

    .card2 {
        left: -70px !important;
        top: 45% !important;
    }

    .card3 {
        right: -65px !important;
        bottom: -35px !important;
    }

    /* Quantifiable Impact for Tablets */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .metric-item {
        padding: 1.25rem;
    }

    .metric-number {
        font-size: 1.65rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }

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

    .school-logo {
        width: 80px;
        height: 80px;
        margin-right: 0;
    }

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

    .school-info h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

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

    .education-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .gpa-badge,
    .location-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .education-details {
        padding: 1.5rem;
    }

    .education-section {
        margin-bottom: 1.5rem;
    }

    .education-section h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .course-grid {
        gap: 0.5rem;
    }

    .course-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .research-item {
        padding: 1rem;
    }

    .research-role {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .research-role strong {
        font-size: 1rem;
    }

    .research-professor {
        font-size: 0.9rem;
    }

    .research-highlights {
        padding-left: 1rem;
        margin-top: 0.75rem;
    }

    .research-highlights li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .achievement-list {
        gap: 1rem;
    }

    .achievement-item {
        gap: 0.75rem;
    }

    .achievement-item i {
        font-size: 1rem;
        width: 24px;
        height: 24px;
    }

    .achievement-item strong {
        font-size: 0.95rem;
    }

    .achievement-item p {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .back-to-top,
    .scroll-indicator,
    .hero-buttons,
    .contact-form {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    .timeline-item,
    .project-card,
    .education-card {
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
.project-link:focus,
.social-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --border-color: #000000;
    }
}

/* Pulse animation for heart icon */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}