/* =============================
   1. VARIABLES & RESET
============================= */
:root {
   /* Colors: Light Mode */
   --bg-body: #ffffff;
   --bg-alt: #f8fafc;
   --text-main: #1e293b; 
   --text-light: #64748b;
   --primary: #2563eb;
   --primary-dark: #1d4ed8;
   --border: #e2e8f0;
   
   /* Effects */
   --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
   --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
   --radius: 12px;
   --header-height: 70px;
   --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =============================
  2. REUSABLE CLASSES
============================= */
.container { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Buttons */
.btn, .btn-small { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; border: none; font-family: inherit; }
.btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-small { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

.btn-primary { background-color: var(--primary); color: white; border: 2px solid var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }

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

.nav-cta { background-color: var(--primary); color: white !important; }
.nav-cta:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

.link-item { color: var(--primary); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link-item:hover { gap: 8px; }

/* =============================
  3. HEADER & NAV
============================= */
#header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); z-index: 1000; height: var(--header-height); box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-brand { font-weight: 700; font-size: 1.25rem; color: var(--text-main); }
.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-weight: 500; color: var(--text-light); font-size: 0.95rem; }
.nav-link:hover { color: var(--primary); }
.nav-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* =============================
  4. HERO SECTION
============================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-height); background: radial-gradient(circle at top right, #eff6ff, transparent 40%); }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem; }

/* Status Badge */
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: #ecfdf5; color: #059669; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; border: 1px solid #d1fae5; }
.status-badge i { font-size: 0.6rem; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

.hero-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
.hero-title span { color: var(--primary); }
.hero-description { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; }

.hero-trust { margin-top: 2rem; font-size: 0.9rem; color: var(--text-light); display: flex; align-items: center; gap: 0.5rem; }
.trust-company { font-weight: 600; color: var(--text-main); }

.hero-img-wrapper { display: flex; justify-content: center; }
.hero-img { width: 280px; height: 280px; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; object-fit: cover; box-shadow: var(--shadow-hover); border: 4px solid white; animation: morph 8s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }

/* =============================
  5. BENTO GRID (UPDATED)
============================= */
.about { background-color: var(--bg-alt); }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 1.5rem; max-width: 900px; margin: 0 auto; }

.bento-card { background: white; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: center; }
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }

.location-card { grid-column: span 2; }
.stack-card { grid-column: span 2; }
.edu-card-bento { grid-column: span 3; }
.stat-card { grid-column: span 1; background: var(--primary); color: white; align-items: center; text-align: center; }

/* Stats (Experience) */
.stat-card .stat-number { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; opacity: 0.9; }

/* Text Styles */
.big-text { font-size: 1.25rem; font-weight: 600; color: var(--text-main); }
.sub-text { font-size: 0.85rem; color: var(--text-light); }

/* Updated Education Style */
.edu-item { display: flex; flex-direction: column; gap: 0.2rem; }
.degree { font-weight: 600; font-size: 1.1rem; }
.edu-details { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.school { font-size: 0.95rem; color: var(--text-light); }
.grad-date { font-size: 0.85rem; background: #eff6ff; color: var(--primary); padding: 4px 8px; border-radius: 4px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* Tech Icons Grid with Tooltips */
.stack-icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 0.5rem; }
.tech-icon { font-size: 2rem; color: var(--text-main); display: flex; justify-content: center; align-items: center; position: relative; cursor: help; transition: 0.2s; }
.tech-icon:hover { color: var(--primary); transform: scale(1.1); }

/* CSS Tooltip */
.tech-icon::after {
   content: attr(data-tooltip);
   position: absolute;
   bottom: 100%;
   left: 50%;
   transform: translateX(-50%);
   background: #1e293b;
   color: white;
   padding: 5px 10px;
   border-radius: 6px;
   font-size: 0.75rem;
   white-space: nowrap;
   opacity: 0;
   visibility: hidden;
   transition: 0.2s;
   pointer-events: none;
   margin-bottom: 8px;
}
.tech-icon:hover::after { opacity: 1; visibility: visible; }

/* =============================
  6. TESTIMONIALS & WORK
============================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: #fafafa; padding: 2rem; border-radius: 16px; position: relative; border: 1px solid var(--border); }
.quote-icon { font-size: 2rem; color: var(--primary); opacity: 0.2; margin-bottom: 1rem; }
.testimonial-card p { font-style: italic; color: var(--text-main); margin-bottom: 1.5rem; }
.author-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.author-info span { font-size: 0.85rem; color: var(--text-light); }

.work { background-color: var(--bg-alt); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card { background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.project-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.project-content { padding: 2rem; }
.project-tag { background: #eff6ff; color: var(--primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; margin-bottom: 1rem; display: inline-block; }
.project-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.project-meta { margin-top: 1.5rem; display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-light); }
.project-meta span { display: flex; align-items: center; gap: 4px; }
.project-action { background: #f8fafc; padding: 1rem 2rem; border-top: 1px solid var(--border); }
.btn-link { font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }

/* =============================
  7. EXPERIENCE & CONTACT
============================= */
.experience { background-color: var(--bg-body); }
.timeline { position: relative; max-width: 768px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 100%; background-color: var(--border); }
.timeline-item { padding-left: 2.5rem; margin-bottom: 3rem; position: relative; }
.timeline-marker { position: absolute; left: -5px; top: 0; width: 12px; height: 12px; background-color: var(--primary); border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.timeline-content { background-color: white; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); transition: 0.3s; }
.timeline-content:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.timeline-title { font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline-company { display: block; color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.timeline-date { font-size: 0.85rem; color: var(--text-light); }
.timeline-desc { color: var(--text-light); margin: 1rem 0; font-size: 0.95rem; }

/* Contact Section Updates */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: flex-start; }
.contact-card { background-color: var(--bg-alt); padding: 2rem; text-align: center; border-radius: var(--radius); transition: 0.3s; margin-bottom: 1rem; }
.contact-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }

/* Connect & Download Section */
.connect-section { background: #eff6ff; padding: 1.5rem; border-radius: var(--radius); margin-top: 2rem; text-align: center; border: 1px solid #dbeafe; }
.connect-section h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-main); }
.connect-links { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.resume-btn { display: inline-flex; align-items: center; gap: 6px; background: white; padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: 600; color: var(--text-main); border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: 0.3s; width: 100%; justify-content: center; }
.resume-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.social-icons { display: flex; gap: 1rem; justify-content: center; width: 100%; }
.social-icons a { font-size: 1.8rem; color: var(--text-light); background: white; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); transition: 0.3s; }
.social-icons a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; background: white; padding: 2rem; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* =============================
  8. FOOTER & RESPONSIVE
============================= */
.footer { padding: 2rem 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-light); font-size: 0.9rem; margin-top: 2rem; }

@media (max-width: 768px) {
   .hero-container { grid-template-columns: 1fr; text-align: center; }
   .hero-buttons, .hero-img-wrapper, .hero-trust { justify-content: center; }
   .hero-title { font-size: 2.5rem; }
   .bento-grid { display: flex; flex-direction: column; }
   .nav-menu { position: fixed; top: var(--header-height); right: -100%; width: 80%; height: 100vh; background-color: white; padding: 2rem; transition: 0.4s; box-shadow: -2px 0 4px rgba(0,0,0,0.1); flex-direction: column; }
   .nav-menu.show-menu { right: 0; }
   .nav-list { flex-direction: column; align-items: flex-start; width: 100%; }
   .nav-toggle { display: block; }
   .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
   .timeline::before { left: 16px; }
   .timeline-item { padding-left: 3rem; }
   .timeline-marker { left: 11px; }
}