/* ===========================================
   Base & General Styles
   =========================================== */
body {
  font-family: 'Montserrat', 'Fira Mono', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

:root {
  --bg-main: #ffffff;
  --text-main: #2c3e50;
  --text-secondary: #5a6c7d;
  --accent: #3498db;
  --accent-dark: #2980b9;
  --accent-rgb: 52, 152, 219;
  --accent2: #2ecc71;
  --card-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --hero-bg: #f8f9fa;
  --hero-text: #2c3e50;
  --card-shadow: 0 2px 15px rgba(0,0,0,0.05);
  --progress-bar: #00796b;
  --footer-bg: #f1f1f1;
  --footer-text: #5a6c7d;
  --nav-bg: rgba(255, 255, 255, 0.95);
}

body.light {
  --bg-main: #ffffff;
  --text-main: #2c3e50;
  --text-secondary: #5a6c7d;
  --accent: #3498db;
  --accent-dark: #2980b9;
  --accent-rgb: 52, 152, 219;
  --accent2: #2ecc71;
  --card-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --hero-bg: #f8f9fa;
  --hero-text: #2c3e50;
  --card-shadow: 0 2px 15px rgba(0,0,0,0.05);
  --progress-bar: #00796b;
  --footer-bg: #f1f1f1;
  --footer-text: #5a6c7d;
  --nav-bg: rgba(255, 255, 255, 0.95);
}

body:not(.light) {
  --bg-main: #1a1a1a;
  --text-main: #ffffff;
  --text-secondary: #cccccc;
  --accent: #3498db;
  --accent-dark: #2980b9;
  --accent-rgb: 52, 152, 219;
  --accent2: #2ecc71;
  --card-bg: #2d2d2d;
  --border-color: #444444;
  --hero-bg: #1a1a1a;
  --hero-text: #ffffff;
  --card-shadow: 0 2px 15px rgba(0,0,0,0.2);
  --progress-bar: #00796b;
  --footer-bg: #222222;
  --footer-text: #cccccc;
  --nav-bg: rgba(26, 26, 26, 0.95);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* ===========================================
   Typography and General Layout
   =========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 700;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-2px);
}

/* ===========================================
   Header & Navigation
   =========================================== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 4px;
  background: var(--progress-bar);
  z-index: 10000;
  transition: width 0.2s;
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1300px;
  height: 80px;
  padding: 0 3rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  transition: all 0.3s ease;
}

body:not(.light) .navbar {
  background: rgba(30, 30, 30, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.navbar:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.theme-toggle {
  width: 45px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-left: 2rem;
  transition: all 0.3s ease;
}

.theme-toggle i {
  font-size: 1.3rem;
}

body.light .icon-moon { display: none; }
body.light .icon-sun { display: inline-block; }
body:not(.light) .icon-sun { display: none; }
body:not(.light) .icon-moon { display: inline-block; }


/* ===========================================
   Hero Section
   =========================================== */
.hero-section {
  min-height: 90vh;
  padding: 90px 0 0 0;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body:not(.light) .hero-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 95%;
  max-width: 1300px;
  height: 55vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)), 
              url('../images/gb.png') center/cover no-repeat;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

body:not(.light) .hero-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)), 
              url('../images/gb.png') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem;
  max-width: 900px;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body:not(.light) .hero-text h1 {
  background: linear-gradient(135deg, #f1f5f9, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--hero-text);
}

.hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.hero-text .tagline {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.btn {
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

/* ===========================================
   About Section
   =========================================== */
.about-section {
  padding: 5rem 2rem;
  background: var(--bg-main);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 6rem;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-details {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4rem;
  margin-top: 2rem;
}

.about-image {
  flex: 0 0 350px;
  text-align: center;
  position: relative;
  max-width: 350px;
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 4px solid var(--card-bg);
}

.profile-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.2rem;
  margin: 2rem 0 1.5rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.3;
}

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

.about-section h3 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--text-main);
  position: relative;
  padding-bottom: 0.8rem;
}

.about-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.education-list, .about-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-list li, .about-section li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
}

.education-list li::before, .about-section li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 2.5rem 0;
}

.skill-tag {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

/* ===========================================
   Projects Section
   =========================================== */
.projects-section {
  padding: 5rem 2rem;
  background: var(--card-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.project-card h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--accent-dark);
}

.project-link i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(3px);
}

/* ===========================================
   Resume Section
   =========================================== */
.resume-section {
  padding: 5rem 2rem;
  background: var(--bg-main);
  text-align: center;
}

.resume-section .btn {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ===========================================
   Contact Section
   =========================================== */
.contact-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--card-bg) 100%);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}

.submit-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

.contact-info-card {
  background: var(--card-bg);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  height: fit-content;
}

.contact-info-card h3 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-main);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-item i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.contact-item span {
  color: var(--text-main);
  font-weight: 500;
}

/* ===========================================
   Footer
   =========================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-section p, .footer-section li {
  color: var(--footer-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 4rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--footer-text);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===========================================
   Mobile Menu & Overlay
   =========================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

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

.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); }

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes textIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* New greeting overlay styles */
.greeting-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: black;
  transition: opacity 0.3s ease;
}

.greeting-text {
  font-size: 4.5rem;
  font-weight: bold;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.greeting-text .main-text {
  animation: fade-in-up 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.greeting-text .lang-name {
  font-size: 1.8rem;
  margin-top: 15px;
  font-weight: 500;
  animation: fade-in-up 0.5s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 1350px) {
  .navbar {
    min-width: unset;
    width: 95%;
  }
}

@media (max-width: 991px) {
  .about-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .about-image {
    max-width: 300px;
    margin: 0;
  }
  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 60px;
    padding: 0 1rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  body:not(.light) .nav-links {
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.active { right: 0; }
  .hamburger { display: flex; }
  .theme-toggle {
    margin-left: auto;
    margin-right: 0.5rem;
  }
  .logo {
    font-size: 1.3rem;
    margin-right: auto;
  }
  .hero-card {
    height: auto;
    min-height: unset;
    border-radius: 25px;
    padding: 2rem 1.5rem; /* Adjusted padding for mobile */
    min-height: 400px; /* Ensures the card has a minimum height */
  }
  .hero-content {
    padding: 1rem;
  }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text .subtitle { font-size: 1.3rem; }
  .hero-text h2 { font-size: 1.6rem; }
  .hero-text .tagline { font-size: 1rem; }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .btn {
    min-width: unset;
    width: 100%;
    max-width: 250px;
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar {
    width: 92%;
    height: 55px;
    padding: 0 0.8rem;
  }
  .nav-links {
    width: 85%;
    max-width: 250px;
    padding: 70px 1.5rem 1.5rem;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-text .subtitle { font-size: 1rem; }
  .hero-text h2 { font-size: 1.3rem; }
  .hero-text .tagline { font-size: 0.9rem; }
  .greeting-text {
    font-size: 2.5rem;
  }
  .greeting-text .lang-name {
    font-size: 1.2rem;
  }
  .container {
    padding: 0 1rem;
  }
  .about-details {
    padding-top: 2rem;
  }
  .about-container {
    padding-top: 4rem;
  }
}
