/* Fonts are now imported in HTML for better performance */

/* ===============================================
   MODERN UI/UX DESIGN SYSTEM
   Color Theory: 60-30-10 Rule Applied
   Typography: Elegant Font Pairing
   =============================================== */

/* Global Typography - Elegant Fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f5f5f5;
    color: #2c3e50;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 17px;
}

/* Hide scrollbars globally */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Top Navigation - Translucent without overlap */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 72px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-family: 'Crimson Text', serif;
    color: rgba(44, 62, 80, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #2c3e50;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

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

.nav-links a.active {
    color: #2c3e50;
    font-weight: 600;
}

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

/* Ultra Smooth Background System */
.background-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    transform: translateZ(0); /* GPU acceleration */
}

.gradient-layer {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    transition: none; /* Controlled by JS for smoother animation */
    will-change: transform, opacity;
    transform: translateZ(0); /* GPU acceleration */
}

.gradient-primary {
    z-index: 1;
    mix-blend-mode: normal;
}

.gradient-secondary {
    z-index: 2;
    mix-blend-mode: soft-light;
    opacity: 0.7;
}

/* Removed particle system - now using smooth color morphing */
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Sections Container */
.sections-container {
    position: relative;
    padding-top: 72px; /* Account for fixed header */
    padding-bottom: 20px;
}

.section {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Reveal animations on scroll - Smooth morphing */
.section > * {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered reveal with rotation */
.glass-card {
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transform-origin: center bottom;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section.visible .glass-card {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Project orbs with scale and fade */
.project-orb {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section.visible .project-orb {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Smooth parallax */
.about-image {
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 0.2em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

.section.visible h2, .section.visible h3 {
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sections now have transparent backgrounds */
.section {
    background: transparent !important;
}

/* Keep sections visible but smooth */

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.subsection-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
    opacity: 0.95;
}

/* Section 0: About Me */
#about-section {
    min-height: calc(100vh - 72px);
    padding-top: 40px;
}
.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 0 0 350px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    pointer-events: none;
}

.about-text {
    flex: 1;
}

.about-text .poetry-line {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-description {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #f7edfc;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: 'Crimson Text', serif;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.volunteering-highlight {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.volunteering-highlight h3 {
    font-family: 'Crimson Text', serif;\n    font-style: italic;
    color: #2c3e50;
    margin-bottom: 20px;
}

.volunteer-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.volunteer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2c3e50;
    font-family: 'Crimson Text', serif;
}

.volunteer-item i {
    color: #667eea;
    font-size: 1.2rem;
}

/* Section 1: Interactive Code Canvas */
#code-canvas {
    padding: 60px 20px;
    margin-bottom: 40px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: none !important;
}

.code-editor {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 900px;
    height: auto;
    overflow: visible;
    margin: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: none !important;
}

.code-header {
    background: rgba(44, 62, 80, 0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    color: #b8b8b8;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-style: italic;
    letter-spacing: 0;
}

.code-content {
    padding: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    line-height: 1.8;
    overflow: visible;
    letter-spacing: 0;
    color: #d4d4d4;
}

.code-content span {
    opacity: 1;
}

.code-content .keyword {
    color: #569cd6;
}

.code-content .variable {
    color: #9cdcfe;
}

.code-content .property {
    color: #9cdcfe;
}

.code-content .string {
    color: #ce9178;
}

.code-content .comment {
    color: #6a9955;
}

.code-content .function {
    color: #dcdcaa;
}

/* Section 2: Combined Professional Journey & Tech Stack */
#experience-skills {
    padding: 60px 20px;
    margin-bottom: 40px;
}

.combined-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.experience-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.timeline-section {
    flex: 1;
}

.timeline-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    padding: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    min-height: 150px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px; 
    text-transform: none;
}

.card-content h4 {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 20px;
    color: #b64ae4;
    font-style: italic;
}

.card-content p {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.011em;
    opacity: 0.9;
    line-height: 1.6;
}

/* Skills Section */
.skills-section {
    flex: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: #7d2ba0;
}

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

.skill-bubble {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: rgba(44, 62, 80, 0.9);
    cursor: default;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: inline-block;
    opacity: 0;
    transform: scale(0.9);
}

.section.visible .skill-bubble {
    opacity: 1;
    transform: scale(1);
}

.skill-bubble:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Skill Category Card - Demo1 Style */
.skill-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* Section 3: Projects Ecosystem - Centered */
#projects-ecosystem {
    padding: 60px 20px;
    margin-bottom: 40px;
}

.ecosystem-container {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 40px;
    padding: 40px;
    justify-content: center;
}

.projects-grid.centered {
    justify-content: center;
    align-items: center;
}

a.project-orb {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.orb-inner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 40px rgba(240, 147, 251, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-orb:nth-child(1) .orb-inner { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-orb:nth-child(2) .orb-inner { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-orb:nth-child(3) .orb-inner { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-orb:nth-child(4) .orb-inner { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-orb:nth-child(5) .orb-inner { 
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.project-orb:nth-child(6) .orb-inner { 
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.project-orb:nth-child(7) .orb-inner { 
    background: linear-gradient(135deg, #ff6ec4 0%, #7873f5 100%);
}

.project-orb:nth-child(8) .orb-inner { 
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.project-orb:nth-child(9) .orb-inner { 
    background: linear-gradient(135deg, #fc6076 0%, #ff9a44 100%);
}

.orb-inner i {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    opacity: 0.95;
}

.orb-inner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: none;
}

.orb-inner p {
    font-family: 'Crimson Text', serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(44, 62, 80, 0.85);
    line-height: 1.4;
    margin-bottom: 5px;
    letter-spacing: -0.011em;
}

a.project-orb:hover .orb-inner {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.5);
}

/* Section 4: Certifications */
#certifications {
    padding: 60px 20px;
    margin-bottom: 40px;
}

.certs-container {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
}

.certs-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cert-card h3 {
    font-family: 'Crimson Text', serif;\n    font-style: italic;
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(44, 62, 80, 0.95);
    margin-bottom: 10px;
}

.cert-card p {
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 10px;
    font-family: 'Crimson Text', serif;
}

.instructor {
    font-style: italic;
    color: #667eea;
    font-size: 0.9rem;
    font-family: 'Crimson Text', serif;
}

/* Section 5: Publications */
#publications {
    padding: 60px 20px;
    margin-bottom: 40px;
}

.pub-container {
    width: 90%;
    max-width: 1000px;
    text-align: center;
    margin: 0 auto;
}

.pub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pub-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.pub-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pub-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-icon i {
    font-size: 2rem;
    color: #2c3e50;
}

.pub-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.pub-card p {
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(44, 62, 80, 0.9);
    font-family: 'Crimson Text', serif;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: #2c3e50;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: 'Crimson Text', serif;
}

.pub-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* Section 6: Contact */
#contact {
    padding: 60px 20px;
    margin-bottom: 60px;
}

.contact-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
    font-family: 'Crimson Text', serif;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Crimson Text', serif;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b64ae4;
}

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

.social-contact {
    display: flex;
    gap: 20px;
}

.social-contact a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-contact a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 10px;
    color: #2c3e50;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(44, 62, 80, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(44, 62, 80, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #b64ae4, #a754cb);
    color: #333;
    border: none;
    border-radius: 30px;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.011em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px #c8aed4;
}

/* Footer - Hidden to prevent overlap */
.footer {
    display: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Enhanced project orb transitions */
a.project-orb {
    transition: transform 0.3s ease;
}

a.project-orb .orb-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
    z-index: 1002;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu - Hidden by default */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-links a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: rgba(44, 62, 80, 0.1);
    border-radius: 5px;
}

.mobile-menu-links a.active {
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive Styles for Better Fit */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .experience-skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .timeline-cards {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 150px);
        gap: 30px;
    }
    
    .orb-inner {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .experience-skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .code-editor {
        width: 95%;
        max-height: 80vh;
    }
    
    .code-content {
        font-size: 12px;
        padding: 20px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 150px);
        gap: 25px;
        padding: 20px;
    }
    
    .orb-inner {
        width: 150px;
        height: 150px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pub-cards {
        grid-template-columns: 1fr;
    }
    
    .certs-carousel {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #2c3e50;
        transition: all 0.3s ease;
    }
    
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 120px);
        gap: 20px;
        padding: 20px;
    }
    
    .orb-inner {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .orb-inner i {
        font-size: 1.2rem;
    }
    
    .orb-inner h3 {
        font-size: 0.9rem;
    }
    
    .orb-inner p {
        font-size: 0.7rem;
    }
}