/* Base Reset & Fonts */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: #F9F9F9; font-family: 'Inter', sans-serif; color: #333; overflow-x: hidden; line-height: 1.6; }

#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }

/* Glassmorphism Classes */
.glass-panel, .glass-nav {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 16px;
}

.glass-panel-inner {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(209, 209, 209, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 35px; 
}

.glass-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; position: fixed; width: 100%; top: 0; z-index: 100; border-radius: 0; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 700; color: #0047AB; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: #444; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: #0047AB; }

.page-section { min-height: 100vh; padding: 120px 50px 50px; display: flex; align-items: center; justify-content: center; max-width: 1200px; margin: 0 auto; }

.full-width-panel { width: 100%; padding: 50px; }
.text-center-panel { width: 100%; max-width: 700px; padding: 50px; text-align: center; margin: 0 auto; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 34px; color: #111; margin-bottom: 40px; text-align: center; }

/* Hero Section Fixes */
.hero-container { display: flex; align-items: center; gap: 60px; width: 100%; }

.hero-image-container { flex: 1; display: flex; justify-content: center; align-items: center; }
.profile-photo {
    width: 260px; height: 260px; object-fit: cover; object-position: center 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 6px solid white; box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    animation: morph 8s ease-in-out infinite; transition: transform 0.3s ease;
}
.profile-photo:hover { transform: scale(1.05); }

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-text-container { flex: 1.3; padding: 40px; } /* This padding fixes the squished text box */
.greeting { font-size: 18px; font-weight: 500; color: #555; margin-bottom: 5px; }
h1 { font-family: 'Montserrat', sans-serif; font-size: 52px; color: #111; margin-bottom: 10px; line-height: 1.1; }

.role-text p { font-size: 22px; font-weight: 600; color: #333; margin-bottom: 25px; }
.typing-role { color: #0047AB; }
.cursor { color: #0047AB; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.summary { font-size: 16px; color: #555; margin-bottom: 35px; }

.btn-group { display: flex; gap: 15px; margin-bottom: 35px; }
.btn { padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; cursor: pointer; }
.primary-btn { background-color: #0047AB; color: white; border: 2px solid #0047AB; }
.primary-btn:hover { background-color: transparent; color: #0047AB; }
.secondary-btn { background-color: transparent; color: #0047AB; border: 2px solid #0047AB; }
.secondary-btn:hover { background-color: #0047AB; color: white; }

.stats-row { display: flex; gap: 40px; border-top: 1px solid #ddd; padding-top: 25px; }
.stat h3 { font-family: 'Montserrat', sans-serif; font-size: 26px; color: #0047AB; }
.stat p { font-size: 13px; font-weight: 600; color: #666; }

/* Grid Layouts */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; color: #444; }
.education-timeline h3 { color: #0047AB; margin-bottom: 15px; font-family: 'Montserrat', sans-serif;}
.education-timeline ul { list-style: none; }
.education-timeline li { margin-bottom: 20px; padding-left: 20px; border-left: 3px solid #0047AB; }
.education-timeline span { font-size: 14px; color: #777; }

.experience-grid { display: grid; gap: 40px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.experience-card, .project-card { transition: transform 0.3s; }
.experience-card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

.card-header { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.experience-card h3, .project-card h3 { color: #111; font-size: 22px; font-family: 'Montserrat', sans-serif; margin-bottom: 8px; }
.experience-card h4 { font-weight: 600; color: #0047AB; font-size: 14px; }

.clean-list { list-style-position: outside; padding-left: 20px; color: #444; }
.clean-list li { margin-bottom: 12px; }

.project-icon { font-size: 36px; color: #0047AB; margin-bottom: 20px; display: block; }
.project-card p { color: #555; }

/* Contact Area */
.contact-subtitle { margin-bottom: 30px; color: #555; }
.contact-info { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.contact-link { display: flex; align-items: center; justify-content: flex-start; gap: 15px; width: 100%; max-width: 320px; padding: 16px 25px; background: rgba(255,255,255,0.8); border-radius: 8px; text-decoration: none; color: #333; font-weight: 600; transition: all 0.3s; border: 1px solid #eee; margin: 0 auto; }
.contact-link i { font-size: 22px; color: #0047AB; width: 30px; text-align: center; }
.contact-link:hover { background: white; border-color: #0047AB; color: #0047AB; transform: scale(1.02); }

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .glass-nav { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 14px; }
    .page-section { padding: 180px 20px 50px; }
    .full-width-panel, .hero-text-container { padding: 30px; }
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-image-container { order: -1; } 
    .profile-photo { width: 220px; height: 220px; } 
    .btn-group, .stats-row { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
}