/* Base */
:root {
  --bg: #0b0d12;
  --bg-elev: #11151d;
  --text: #e7ebf3;
  --muted: #9aa3b2;
  --primary: #4f8cff;
  --primary-600: #3b6edd;
  --border: #1c2230;
  --reveal-distance: 18px;
  --reveal-duration: 700ms;
  --reveal-ease: cubic-bezier(.2,.7,.2,1);
}

:root.light {
  --bg: #ffffff;
  --bg-elev: #f6f7f9;
  --text: #0b1220;
  --muted: #5a6372;
  --primary: #2957ff;
  --primary-600: #1f43cc;
  --border: #e6e9ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(79,140,255,0.15), transparent 60%), var(--bg);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--reveal-duration) var(--reveal-ease), transform var(--reveal-duration) var(--reveal-ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; }
.brand-name { font-size: 20px; font-weight: 600; color: var(--text); text-decoration: none; }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 12px 20px; color: var(--text-muted); text-decoration: none; border-radius: 12px; transition: all 0.4s ease; font-weight: 500; font-size: 15px; position: relative; overflow: hidden; }
.site-nav a:hover { color: var(--text); background: rgba(79, 172, 254, 0.1); transform: translateY(-2px); }
.site-nav a.active { color: var(--primary); background: rgba(79, 172, 254, 0.15); box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2); }
.site-nav a::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.1), transparent); transition: left 0.6s ease; }
.site-nav a:hover::before { left: 100%; }

/* Mobile menu button */
.mobile-menu-button { display: none; background: none; border: none; font-size: 24px; color: var(--text); cursor: pointer; padding: 8px; border-radius: 8px; transition: background-color 0.3s ease; }
.mobile-menu-button:hover { background: rgba(79, 172, 254, 0.1); }

/* Theme toggle */
.icon-button { background: none; border: none; padding: 8px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.icon-button:hover { background: rgba(79, 172, 254, 0.1); transform: scale(1.1); }
.icon { width: 20px; height: 20px; }
.icon.sun { display: none; }
.icon.moon { display: block; }

[data-theme="light"] .icon.sun { display: block; }
[data-theme="light"] .icon.moon { display: none; }

/* Light blue accents */
.accent-blue { color: #4facfe; }
.accent-bg { background: rgba(79, 172, 254, 0.05); }
.accent-border { border-color: rgba(79, 172, 254, 0.3); }
.accent-shadow { box-shadow: 0 4px 20px rgba(79, 172, 254, 0.15); }

/* Enhanced section headers */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; color: var(--text); position: relative; }
.section-header h2::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, #4facfe, #00f2fe); border-radius: 2px; }
.section-header p { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* Enhanced cards */
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all 0.4s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(79, 172, 254, 0.15); border-color: rgba(79, 172, 254, 0.3); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #4facfe, #00f2fe); opacity: 0; transition: opacity 0.4s ease; }
.card:hover::before { opacity: 1; }

/* Light blue accents for various elements */
.about-list li::before { content: '▸'; color: #4facfe; font-weight: bold; margin-right: 8px; }
.skill-item { background: rgba(79, 172, 254, 0.05); border: 1px solid rgba(79, 172, 254, 0.1); }
.skill-item:hover { background: rgba(79, 172, 254, 0.1); border-color: rgba(79, 172, 254, 0.3); }
.timeline-item::before { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.contact-card { border-left: 4px solid #4facfe; }
.contact-card:hover { border-left-color: #00f2fe; background: rgba(79, 172, 254, 0.02); }
.technology-category h3 { color: #4facfe; border-bottom: 2px solid rgba(79, 172, 254, 0.3); }
.logo-grid img:hover { transform: scale(1.1); filter: drop-shadow(0 4px 12px rgba(79, 172, 254, 0.3)); }

/* Enhanced buttons */
.btn { background: linear-gradient(135deg, #4facfe, #00f2fe); border: none; color: white; padding: 12px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.4s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4); }
.btn:active { transform: translateY(0); }

/* Enhanced scroll reveal animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Light blue gradient backgrounds for special sections */
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%; background: linear-gradient(135deg, rgba(79, 172, 254, 0.02) 0%, transparent 50%, rgba(0, 242, 254, 0.02) 100%); pointer-events: none; z-index: -1; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 0; padding: 32px 20px 64px; margin: 0 auto; width: min(1100px, 92%); }
.hero-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hero-content { max-width: 500px; position: relative; }
.hero-greeting { font-size: clamp(24px, 3.5vw, 32px); line-height: 1.1; margin: 0 0 8px; color: rgba(156, 163, 175, 0.7); font-weight: 400; text-align: left; }
.hero-content h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 12px; font-weight: 600; transition: transform 0.5s ease, color 0.5s ease; cursor: pointer; }
.hero-content h2:hover { transform: translateX(8px); color: var(--primary); }
.hero-content h3 { font-size: clamp(20px, 2.5vw, 28px); line-height: 1.1; margin: 0 0 24px; color: var(--muted); font-weight: 500; }
.hero-content p { margin: 0 0 18px; color: var(--muted); }
.hero-content::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 80px; height: 3px; background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); border-radius: 2px; }
.hero-cta { display: flex; flex-direction: column; gap: 16px; }
.hero-cta .linkedin-container { align-self: flex-start; }
.social-icon { width: 24px; height: 24px; cursor: pointer; transition: opacity 0.4s ease; }
.social-icon:hover { opacity: 0.8; }
.hero-cta .btn { align-self: flex-end; background: linear-gradient(135deg, #4facfe, #00f2fe); border: none; color: white; padding: 10px 20px; border-radius: 12px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.4s ease; cursor: pointer; font-size: 14px; }
.hero-cta .btn:hover { transform: translateX(4px); box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4); }
.hero-cta .btn::after { content: '→'; font-size: 16px; font-weight: bold; transition: transform 0.3s ease; }
.hero-cta .btn:hover::after { transform: translateX(4px); }
.hero-visual { height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual img.hero-avatar { width: 320px !important; height: 400px !important; object-fit: cover; border-radius: 20px; border: 2px solid color-mix(in srgb, var(--primary), #fff 50%); box-shadow: 0 12px 35px rgba(79, 172, 254, 0.2); margin-bottom: 20px; transition: transform 0.5s ease, box-shadow 0.5s ease; }
.hero-visual img.hero-avatar:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(79, 172, 254, 0.3); }
.cv-download-section { display: flex; justify-content: center; width: 100%; }

@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { height: 400px; padding: 20px; }
  .hero-visual img.hero-avatar { width: 280px !important; height: 350px !important; }
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-elev); }
.section h2 { font-size: 24px; margin: 0 0 18px; }

.about-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.about-list li { border: 1px solid var(--border); background: var(--bg-elev); padding: 14px 16px; border-radius: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .about-list { grid-template-columns: 1fr; }
}

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skill { border: 1px solid var(--border); background: var(--bg); padding: 14px; border-radius: 12px; }
.skill h3 { margin: 4px 0 8px; font-size: 16px; }
.skill p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* Experience Timeline */
.timeline { position: relative; display: grid; gap: 18px; }
.timeline:before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-left: 32px; }
.timeline-item:before { content: ""; position: absolute; left: 4px; top: 10px; width: 14px; height: 14px; background: var(--primary); border-radius: 9999px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary), transparent 80%); }
.timeline-card { border: 1px solid var(--border); background: var(--bg); border-radius: 14px; padding: 16px; box-shadow: 0 8px 20px color-mix(in srgb, #000, transparent 85%); }
.timeline-card header { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.timeline-role { font-weight: 700; }
.timeline-time { color: var(--muted); font-size: 14px; }
.timeline-company { color: var(--muted); font-weight: 600; }
.timeline-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.timeline-list li { margin: 6px 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge { border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); border-radius: 999px; padding: 6px 10px; font-size: 12px; }

/* Tech Logo Grids */
.logo-group { margin-top: 16px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 16px; align-items: center; justify-items: center; }
.logo-tile { border: 1px solid var(--border); background: var(--bg); border-radius: 12px; padding: 10px; display: grid; place-items: center; height: 84px; }
.logo-img { max-width: 100%; max-height: 44px; object-fit: contain; opacity: 0.9; }
.logo-title { margin: 6px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 1100px) { .logo-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 820px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .logo-grid { grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 12px; }
  .logo-grid img { width: 40px; height: 40px; }
}

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { border: 1px solid var(--border); background: var(--bg); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: 160px auto; }
.project-media { background: linear-gradient(180deg, rgba(79,140,255,0.22), transparent 60%), var(--bg-elev); border-bottom: 1px solid var(--border); }
.project-content { padding: 14px; }
.project-content h3 { margin: 4px 0 6px; font-size: 18px; }
.project-content p { margin: 0 0 10px; color: var(--muted); }
.project-actions { display: flex; gap: 8px; }

@media (max-width: 1020px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* Contact */
/* Contact Section - redesigned */
#iletisim .container h2 { position: relative; text-align: center; margin-bottom: 28px; }
#iletisim .container h2::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -14px; width: 120px; height: 10px; background: linear-gradient(90deg, #bfe3ff 0%, #4facfe 100%); border-radius: 12px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }

.contact-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }

.contact-card-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--bg-hover); border-bottom: 1px solid var(--border); }
.contact-card-header .contact-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); }
.contact-card-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-primary); }

.contact-card-content { padding: 16px 18px; color: var(--text-secondary); font-size: 15px; }
.contact-card-content a { color: var(--text-primary); text-decoration: none; font-weight: 600; }

/* Social buttons */
.social-links { display: flex; align-items: center; gap: 14px; }
.social-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text-primary); font-weight: 600; transition: all 0.2s ease; text-decoration: none; }
.social-pill:hover { transform: translateY(-2px); border-color: rgba(79,172,254,0.4); box-shadow: 0 8px 18px rgba(79,172,254,0.12); }
.social-pill img { width: 16px; height: 16px; }

@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; gap: 16px; padding: 0 16px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); cursor: pointer; }
.button.primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); border-color: color-mix(in srgb, var(--primary), #000 30%); color: white; }
.button.secondary { background: var(--bg); }
.button.small { padding: 8px 10px; border-radius: 10px; font-size: 14px; }

/* Technology Categories */
.technology-categories { display: grid; gap: 32px; }
.technology-category { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.technology-category h3 { color: #4facfe; border-bottom: 2px solid rgba(79, 172, 254, 0.3); padding-bottom: 12px; margin-bottom: 20px; font-size: 20px; font-weight: 600; }
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; justify-items: start; max-width: 600px; margin: 0; }
.logo-grid img { width: 48px; height: 48px; object-fit: contain; transition: all 0.3s ease; cursor: pointer; }
.logo-grid img:hover { transform: scale(1.1); filter: drop-shadow(0 4px 12px rgba(79, 172, 254, 0.3)); }

@media (max-width: 768px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 400px; }
  .logo-grid img { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; }
}

/* Header Controls */
.header-controls { display: flex; align-items: center; gap: 12px; }

.btn-icon { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; }

.btn-icon:hover { background: var(--bg-hover); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2); }

#language-toggle { font-weight: 600; font-size: 14px; color: var(--text-primary); }

#language-toggle:hover { color: #4facfe; }

.theme-icon { width: 20px; height: 20px; transition: all 0.3s ease; }

/* Section title underline accents */
#hakkimda .container h2,
#deneyim .container h2,
#egitim .container h2,
#teknolojiler .container h2,
#sertifikalar .container h2 { position: relative; text-align: center; margin-bottom: 28px; }
#hakkimda .container h2::after,
#deneyim .container h2::after,
#egitim .container h2::after,
#teknolojiler .container h2::after,
#sertifikalar .container h2::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -14px; width: 120px; height: 10px; background: linear-gradient(90deg, #bfe3ff 0%, #4facfe 100%); border-radius: 12px; }

@media (max-width: 768px) {
  #hakkimda .container h2,
  #deneyim .container h2,
  #egitim .container h2,
  #teknolojiler .container h2,
  #sertifikalar .container h2 { margin-bottom: 24px; }
  #hakkimda .container h2::after,
  #deneyim .container h2::after,
  #egitim .container h2::after,
  #teknolojiler .container h2::after,
  #sertifikalar .container h2::after { width: 100px; height: 8px; bottom: -12px; }
}

/* Education Section */
.education-content { 
  max-width: 800px; 
  margin: 0; 
  text-align: left;
}

.education-item, .language-item { 
  background: transparent; 
  border: none; 
  border-radius: 0; 
  padding: 0; 
  margin-bottom: 32px;
  position: relative;
}

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

.education-item::before, .language-item::before {
  display: none;
}

.education-item:hover, .language-item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.education-item h3, .language-item h3 { 
  color: var(--text-primary); 
  margin-bottom: 16px; 
  font-size: 24px; 
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.education-item p, .language-item p { 
  color: var(--text-secondary); 
  margin-bottom: 8px; 
  font-size: 16px; 
  line-height: 1.6;
}

.education-item p:last-child, .language-item p:last-child { 
  margin-bottom: 0; 
  font-weight: 600;
  color: var(--text-primary);
}

.education-item .education-degree {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.education-item .education-period {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.education-item .education-gpa {
  font-size: 16px;
  font-weight: 700;
  color: #4facfe;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline;
  border: none;
}

.language-item .language-level {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline;
  border: none;
}

@media (max-width: 768px) {
  .education-content { 
    padding: 0 16px;
  }
  
  .education-item, .language-item { 
    margin-bottom: 24px;
  }
  
  .education-item h3, .language-item h3 { 
    font-size: 22px; 
    margin-bottom: 12px;
  }
  
  .education-item p, .language-item p { 
    font-size: 15px; 
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  /* Header Mobile */
  .header {
    padding: 0.75rem 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 12px 20px;
  }
  
  .brand-logo {
    width: 120px;
    height: auto;
  }
  
  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
    background: var(--bg-secondary);
    margin: 0;
  }
  
  .nav-link:hover {
    background: var(--border);
  }
  
  /* Hero Section Mobile - Fix navbar overlap */
  .hero {
    padding: 120px 20px 2rem 20px; /* Added top padding to prevent navbar overlap */
    text-align: center;
    margin-top: 0; /* Reset margin */
  }
  
  .hero-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-main {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
    margin: 0 auto;
  }
  
  .hero-avatar {
    width: 200px !important;
    height: 200px !important;
  }
  
  .hero-greeting {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-main h2 {
    font-size: 2rem;
  }
  
  .hero-main h3 {
    font-size: 1.2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Technology Categories Mobile */
  .technology-categories {
    gap: 2rem;
  }
  
  .technology-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 100%;
  }
  
  .logo-grid img {
    width: 40px;
    height: 40px;
  }
  
  /* Timeline Mobile */
  .timeline {
    gap: 1.5rem;
  }
  
  .timeline-card {
    padding: 1.5rem;
    margin-left: 0;
  }
  
  .timeline-card::before {
    display: none;
  }
  
  .timeline-card header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .timeline-role {
    font-size: 1.1rem;
  }
  
  .timeline-company {
    font-size: 1rem;
  }
  
  .timeline-time {
    font-size: 0.9rem;
  }
  
  .timeline-list {
    margin: 1rem 0;
  }
  
  .timeline-list li {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .badges {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Education Mobile */
  .education-content {
    gap: 1.5rem;
  }
  
  .education-item {
    padding: 1rem;
  }
  
  .education-item h3 {
    font-size: 1.2rem;
  }
  
  .education-item p {
    font-size: 0.95rem;
  }
  
  /* Contact Section Mobile */
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-card h3 {
    font-size: 1.2rem;
  }
  
  .contact-card p {
    font-size: 0.95rem;
  }
  
  .social-pills {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  
  .social-pill {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Section Headers Mobile */
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header h2::after {
    width: 80px;
    height: 3px;
  }
  
  /* Buttons Mobile */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  /* Extra Small Mobile */
  .hero {
    padding: 100px 20px 1.5rem 20px; /* Adjusted top padding for smaller screens */
  }
  
  .hero-avatar {
    width: 150px !important;
    height: 150px !important;
  }
  
  .hero-greeting {
    font-size: 1.3rem;
  }
  
  .hero-main h2 {
    font-size: 1.8rem;
  }
  
  .hero-main h3 {
    font-size: 1.1rem;
  }
  
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .logo-grid img {
    width: 35px;
    height: 35px;
  }
  
  .technology-category h3 {
    font-size: 1.2rem;
  }
  
  .timeline-card {
    padding: 1.25rem;
  }
  
  .timeline-role {
    font-size: 1rem;
  }
  
  .timeline-list li {
    font-size: 0.9rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-card {
    padding: 1.25rem;
  }
  
  .social-pill {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero {
    padding: 80px 20px 1rem 20px; /* Adjusted top padding for smallest screens */
  }
  
  .hero-avatar {
    width: 120px !important;
    height: 120px !important;
  }
  
  .hero-main h2 {
    font-size: 1.6rem;
  }
  
  .hero-main h3 {
    font-size: 1rem;
  }
  
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .logo-grid img {
    width: 30px;
    height: 30px;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .timeline-card {
    padding: 1rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
}
