/* ===== CSS Variables ===== */
:root {
  --navbar-bg: #0F172A;
  --dark-bg: #0F172A;
  --darker-bg: #181e2a;
  --card-bg: #1E293B;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --accent: #38BDF8; /* Sky-400 */
  --accent-light: #A78BFA; /* Purple-400 */
  --gradient-hero: linear-gradient(135deg, #38BDF8, #A78BFA);
  --success: #10b981;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode {
  --navbar-bg: #fff;
  --dark-bg: #F9FAFB;
  --darker-bg: #f3f4f6;
  --card-bg: #fff;
  --accent: #6366F1; /* indigo-500 for light */
  --accent-alt: #6366F1;
  --text: #1F2937;
  --text-secondary: #4b5563;
  background-color: #F9FAFB;
  color: #1F2937;
}

body.light-mode .navbar a,
body.light-mode .footer-heading,
body.light-mode .footer-social,
body.light-mode .footer-link,
body.light-mode .text-white,
body.light-mode .text-zinc-300,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode p,
body.light-mode span,
body.light-mode li,
body.light-mode .logo {
  color: #111827 !important;
}

body.dark {
  background-color: #0f172a;
  color: #f1f5f9;
}

body.light-mode header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ===== Animations ===== */
.badge {
  animation: rotateBadge 12s linear infinite;
  display: inline-block;
  padding: 0.5em 1em;
  background: #1e293b;
  border-radius: 9999px;
  white-space: nowrap;
  color: white;
  margin: 0.5rem;
}

@keyframes rotateBadge {
  0%   { transform: translateY(0); opacity: 1; }
  25%  { transform: translateY(-10px); opacity: 0.7; }
  50%  { transform: translateY(0); opacity: 1; }
  75%  { transform: translateY(10px); opacity: 0.7; }
  100% { transform: translateY(0); opacity: 1; }
}

.gradient-text {
  background: linear-gradient(90deg, #2563eb 10%, #8b5cf6 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
  animation: gradient-move 3s linear infinite alternate;
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.creative-underline {
  display: block;
  width: 120px;
  height: 6px;
  margin: 0.5rem auto 0 auto;
  border-radius: 6px;
  background: linear-gradient(90deg, #2563eb 10%, #8b5cf6 90%);
  box-shadow: 0 0 16px 2px #2563eb55;
  opacity: 0.85;
  animation: underline-glow 2s infinite alternate;
}

@keyframes underline-glow {
  0% { box-shadow: 0 0 16px 2px #2563eb55; }
  100% { box-shadow: 0 0 32px 6px #8b5cf655; }
}

/* ===== Component Styles ===== */
/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-l {
  font-family: 'Orbitron', 'Inter', Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.logo-s {
  font-family: 'Orbitron', 'Inter', Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

body.light-mode .logo-l {
  color: #4338ca !important;
}

body.light-mode .logo-s {
  color: #1F2937 !important;
}

@media (max-width: 800px) {
  .logo {
    font-size: 1.5rem;
    margin-right: 12px;
  }
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 10px 0;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--text);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(37, 99, 235, 0.15) 0%,
      rgba(37, 99, 235, 0) 70%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 2.3rem;      /* Match your desktop size */
  font-weight: 800;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.15;
  display: block;
  width: 100%;
}

.hero-text h1 {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-text h1 span {
  font-size: 2.8rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-emphasis-color: transparent;
  display: block;
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  width: 90vw;
  max-width: 300px;
  height: 90vw;
  max-height: 300px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-bg);
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--darker-bg), var(--card-bg));
  color: var(--accent);
}

/* Section Styles */
section {
  padding: 32px 0;
}

.section-header {
  margin-bottom: 32px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 5px;
  background: var(--accent);
  border-radius: 3px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 25px auto 0;
  font-size: 1.15rem;
}

.section-bg {
  background-color: var(--darker-bg);
}

/* Experience Section */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.experience-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 35px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: var(--transition);
}

.experience-card:hover::before {
  height: 100%;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.exp-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.exp-icon {
  width: 65px;
  height: 65px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.7rem;
  color: var(--accent);
}

.exp-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.exp-company {
  color: var(--accent);
  font-weight: 500;
  font-size: 1.1rem;
}

.exp-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 8px;
}

.exp-description {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.exp-list {
  list-style: none;
}

.exp-list li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 1.05rem;
}

.exp-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

/* Skills Section */
.skills {
  padding: 60px 0;
  position: relative;
  margin-left: 40px;
  margin-right: 40px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 35px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.skill-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
  color: var(--accent-light);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .skill-items {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .skill-tag {
    font-size: 0.92rem;
    padding: 7px 14px;
  }
}

.skill-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* Projects Section */
.projects {
  background-color: var(--darker-bg);
  padding: 60px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.2rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent), var(--accent-light));
  opacity: 0.8;
}

.project-img-content {
  z-index: 1;
}

.project-content {
  padding: 35px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-blue {
  background: linear-gradient(45deg, #1e3a8a, #3b82f6);
}

.gradient-teal {
  background: linear-gradient(45deg, #0f766e, #14b8a6);
}

.gradient-green {
  background: linear-gradient(45deg, #166534, #22c55e);
}

.gradient-purple {
  background: linear-gradient(45deg, #701a75, #c026d3);
}

.gradient-indigo {
  background: linear-gradient(45deg, #4338ca, #818cf8);
}

.gradient-pink {
  background: linear-gradient(45deg, #9d174d, #ec4899);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.project-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 25px;
  margin-top: auto;
}

.project-link {
  display: flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent-light);
  transform: translateY(-3px);
}

.project-link i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(124, 58, 237, 0.1) 100%);
  padding: 60px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 18px 14px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 340px;
  margin: 0 auto;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
}

.contact-title i {
  color: var(--accent);
  margin-right: 12px;
  font-size: 1.2rem;
}

.contact-details {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--accent-light);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  transition: var(--transition);
  text-decoration: none;
  gap: 12px;
}

.social-link span {
  font-size: 1.05rem;
  font-weight: 500;
}

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

.contact-form .form-group {
  margin-bottom: 28px;
}

.form-control {
  width: 100%;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  min-height: 170px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--darker-bg);
  color: var(--text-secondary);
  font-size: 1.08rem;
  padding: 32px 0 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100vw;
  left: 0;
  position: relative;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}

.footer-copy {
  font-weight: 500;
  white-space: nowrap;
  font-size: 1.1rem;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

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

.footer-nav span {
  color: var(--text-secondary);
  font-size: 1.1em;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.footer-socials a {
  color: var(--accent);
  font-size: 1.3rem;
  transition: color 0.2s;
  text-decoration: none;
}

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

/* Modern Navbar */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--navbar-bg);
  box-shadow: 0 2px 16px 0 rgba(16, 21, 40, 0.10);
  transition: background 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid rgba(100,116,139,0.08);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px;
}

.logo-img-link {
  display: flex;
  align-items: center;
  height: 56px;
}

.navbar-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.main-nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

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

.main-nav-links a.active::after,
.main-nav-links a:hover::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
}

.theme-toggle-btn:hover {
  color: var(--accent-light);
}

.navbar-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.navbar-social-link {
  color: var(--accent);
  font-size: 1.18rem;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-social-link:hover {
  color: var(--accent-light);
  transform: translateY(-2px) scale(1.08);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
  margin-left: 8px;
}

/* Mobile Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15,23,42,0.98);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
  display: flex;
}

.mobile-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.2rem;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.mobile-nav-links a {
  color: var(--text);
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Creative Contact Section */
.creative-contact-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.10) 0%, rgba(124,58,237,0.10) 100%);
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.creative-contact-card {
  background: rgba(255,255,255,0.03);
  box-shadow: 0 8px 40px 0 rgba(37,99,235,0.10), 0 1.5px 8px 0 rgba(124,58,237,0.08);
  border-radius: 32px;
  padding: 48px 24px 40px 24px;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

.creative-contact-heading {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  position: relative;
  margin-bottom: 0.5rem;
  display: inline-block;
  width: 100%;
}

.creative-contact-subtext {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 0;
  margin-top: 0.5rem;
  text-shadow: 0 1px 8px rgba(37,99,235,0.07);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .hero-content {
    gap: 40px;
  }

  .profile-card {
    width: 380px;
    height: 380px;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-text p {
    margin: 0 auto 40px;
  }

  .hero-btns {
    justify-content: center;
  }

  .profile-card {
    margin: 0 auto;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: var(--darker-bg);
    width: 70%;
    height: calc(100vh - 80px);
    padding: 40px 20px;
    transition: var(--transition);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .profile-card {
    width: 340px;
    height: 340px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 25px;
  }
  
  .main-nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  .container {
    padding: 0 20px;
  }
  .skills {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 576px) {
  .hero-content {
    margin-top: 100px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 32px 0 24px 0;
    min-height: unset;
  }
}

@media (max-width: 400px) {
  .hero-content {
    margin-top: 100px;
  }
  .hero {
    padding: 8px 0 16px 0;
    min-height: unset;
  }
}

/* Fullscreen on large screens */
@media (min-width: 1200px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .profile-card {
    width: 520px;
    height: 520px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-text {
    z-index: 2;
  }
}

/* Medium screens: moderate size */
@media (min-width: 768px) and (max-width: 1199px) {
  .profile-card {
    width: 440px;
    height: 440px;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 16px;
  }
}

@media (max-width: 900px) {
  .creative-contact-card {
    padding: 32px 8px 32px 8px;
    border-radius: 18px;
  }
  .creative-contact-heading {
    font-size: 2.2rem;
  }
  .creative-underline {
    width: 80px;
    height: 4px;
  }
}

@media (max-width: 600px) {
  .creative-contact-section {
    padding: 60px 0 60px 0;
  }
  .creative-contact-card {
    padding: 16px 2px 16px 2px;
    border-radius: 10px;
  }
  .creative-contact-heading {
    font-size: 1.3rem;
  }
  .creative-underline {
    width: 50px;
    height: 3px;
  }
  .creative-contact-subtext {
    font-size: 1.05rem;
  }
}

.project-description {
  font-size: 1.13rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

.project-highlights {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
}

.project-highlights li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: var(--text);
}

.project-highlights li::before {
  content: "\25B8"; /* Unicode for small right-pointing arrow */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2em;
  top: 0.1em;
}

/* Desktop/laptop styles (applied only on large screens) */
@media (min-width: 992px) {
  #typed {
    display: block;
    width: 100%;
    max-width: 340px;
    min-height: 1.5em;      /* Only enough for one line */
    height: auto;
    text-align: center;
    white-space: nowrap;    /* Prevent wrapping on desktop */
    line-height: 1.3em;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    font-size: 2.3rem;
  }
}

/* Hero title styling for both static and animated text */
.hero-title {
  font-size: 2.3rem;      /* Match your desktop size */
  font-weight: 800;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.15;
  display: block;
  width: 100%;
}

/* Typed text inherits size and alignment from .hero-title */
#typed {
  font: inherit;
  color: inherit;
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
}

/* On mobile, allow wrapping and reserve more height */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.1rem;
  }
  #typed {
    font-size: inherit;
    white-space: normal;
    word-break: break-word;
    min-height: 2.8em; /* Reserve space for two lines if needed */
    display: inline;
  }
}

@media (max-width: 767px) {
  .project-card {
    margin-bottom: 24px;
    padding: 16px 8px;
  }
  .projects-grid {
    gap: 18px;
  }
}