* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

:root {
  --bg-primary: #f0f9ff;
  /* Light blue tint */
  --bg-secondary: #0a1f33;
  /* Darker blue for contrast */
  --text-primary: #1a2b3c;
  --text-secondary: #fff;
  --text-muted: #5a7184;
  --accent-aqua: #00e5ff;
  --accent-blue: #007bff;
  --accent-blue-dark: #0056b3;
  --card-bg: #fff;
  --card-dark: #122233;
  --border-color: #e1e8ed;
  --nav-bg: rgba(240, 249, 255, 0.95);
}

body.dark-mode {
  --bg-primary: #0a1118;
  --bg-secondary: #121e2a;
  --text-primary: #e1e8ed;
  --text-secondary: #fff;
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
  --nav-bg: rgba(10, 17, 24, 0.95);
  --border-color: #2d3748;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

/* NAVBAR */
nav {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  padding: 20px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.logo {
  font-size: 26px;
  font-weight: 700;
}

.logo .accent {
  color: var(--accent-orange);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

body.dark-mode .nav-links a {
  color: #9ca3af;
}

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

.cv-btn {
  padding: 10px 28px;
  border: 2px solid var(--accent-blue);
  border-radius: 30px;
  background: transparent;
  color: var(--accent-blue);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* HAMBURGER (Mobile) */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-primary);
}

/* Dark Mode Toggle - Bulb with String */
.theme-toggle {
  width: 60px;
  height: 90px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.3s;
  position: relative;
  padding: 0;
  /* Revised layout for desktop to avoid misalignment */
  margin-left: 0;
}

.theme-toggle:hover {
  animation: pullString 0.5s ease-in-out;
}

@keyframes pullString {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.bulb-string {
  width: 2px;
  height: 35px;
  background: linear-gradient(to bottom, #999 0%, #666 100%);
  margin-bottom: 0;
  transition: all 0.3s;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .bulb-string {
  background: linear-gradient(to bottom, #6b7280 0%, #4b5563 100%);
}

.bulb-container {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
}

.bulb-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
}

body.dark-mode .bulb-container::before {
  background: #6b7280;
}

.theme-toggle:hover .bulb-container {
  transform: translateY(3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.bulb-icon {
  font-size: 24px;
  color: var(--accent-blue);
  transition: all 0.3s;
}

body.dark-mode .bulb-icon {
  color: #00e5ff;
  animation: bulbGlow 2s ease-in-out infinite;
}

@keyframes bulbGlow {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.5) drop-shadow(0 0 10px #00e5ff);
  }
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: calc(120px + env(safe-area-inset-top)) 80px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: linear-gradient(120deg, #f7f9ff, #fff0f7, #f7fff3);
  position: relative;
  transition: all 0.3s ease;
}

body.dark-mode .hero {
  background: linear-gradient(120deg, #0f0f0f, #1a1a1a, #0f0f0f);
}

/* LEFT */
.hero-left {
  max-width: 540px;
}

.hello {
  color: var(--accent-blue);
  font-size: 28px;
}

.hero-left h1 {
  font-size: 70px;
  margin: 10px 0;
  line-height: 1.1;
}

.name {
  white-space: nowrap;
  color: var(--text-primary) !important;
}

body.dark-mode .name {
  color: #ffffff !important;
}

/* Static white for specific sections on dark backgrounds */
.about-title,
.stat-number,
.projects-title,
.footer-logo,
.footer-logo span,
.footer-section h3 {
  color: #ffffff !important;
}

.name-initial {
  margin-left: 16px;
  display: inline-block;
}

.hero-left h3 {
  font-size: 26px;
  color: #555;
  min-height: 40px;
}

body.dark-mode .hero-left h3 {
  color: #9ca3af;
}

.hero-left h3 span {
  color: var(--accent-blue);
}

.dynamic-text {
  position: relative;
  display: inline-block;
}

.dynamic-text::after {
  content: '|';
  animation: blink 0.7s infinite;
  margin-left: 5px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.desc {
  margin: 25px 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.cta {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  /* Fix for mobile wrapping */
}

.primary {
  padding: 16px 42px;
  background: var(--accent-blue);
  border: none;
  color: white;
  border-radius: 30px;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  color: #555;
  font-size: 20px;
  transition: all 0.3s;
  text-decoration: none;
}

body.dark-mode .socials a {
  color: #9ca3af;
}

.socials a:hover {
  color: var(--accent-blue);
  transform: translateY(-3px);
}

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  min-height: 500px;
}

body.dark-mode .hero-right {
  background: rgba(255, 255, 255, 0.02);
}

.image-wrapper {
  position: relative;
  flex: 0 0 60%;
  max-width: 60%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

/* PAINT BACKGROUND */
.paint-bg {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 110%;
  height: 110%;
  z-index: 1;
  opacity: 0.9;
  background-image: url('../assets/images/paint.png');
  /* Correct path relative to css */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* PERSON IMAGE */
.person-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: visible;
  /* IMPORTANT */
}

.person-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center bottom;

  /* Increase image size */
  transform: scale(1.69) translateY(-20px) translateX(20px);

  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.25));
  border-radius: 12px;
}




/* Badge removed for cleaner professional look */

/* OWNER INFORMATION */
.owner-info {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  margin-left: -50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .owner-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.owner-name {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

body.dark-mode .owner-name {
  color: #ffffff;
}

.owner-title {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  opacity: 0.8;
  line-height: 1.4;
  margin-top: -4px;
}

body.dark-mode .owner-title {
  color: #ffffff;
}

.owner-status {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-blue);
  padding: 8px 16px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 8px;
  margin-top: 8px;
}

/* SCROLL INDICATOR */
.scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #999;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ABOUT SECTION */
.about {
  padding: 100px 80px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

body.dark-mode .about {
  background: #1a1a1a;
}

.about-left {
  max-width: 100%;
}

.about-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  color: var(--accent-blue-dark);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.about-title {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 30px;
  font-weight: 700;
  color: #fff !important;
}

.about-title .highlight {
  color: var(--accent-blue-dark) !important;
}

.about-description {
  font-size: 17px;
  color: #9ca3af !important;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-description p {
  margin-bottom: 20px;
  color: #9ca3af !important;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
  /* Safety wrap */
}

.stat-card {
  background: var(--card-dark);
  padding: 30px 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  min-width: 150px;
  flex: 1;
  transition: all 0.3s;
}

body.dark-mode .stat-card {
  background: #0f0f0f;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue-dark);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-image-container {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--accent-blue-dark) 0%, #9333ea 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.about-image-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* SKILLS SECTION */
.skills {
  padding: 100px 80px;
  background: linear-gradient(135deg, #f7fff3, #fff0f7);
  transition: background 0.3s ease;
}

body.dark-mode .skills {
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
}

.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  color: var(--text-primary);
}

.section-title span {
  color: var(--accent-blue);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-card {
  background: var(--card-bg);
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 15px 40px rgba(255, 107, 74, 0.2);
}

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

.skill-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
}

.skill-card:nth-child(1) .skill-icon {
  background: #e3f2ff;
  color: #0066cc;
}

.skill-card:nth-child(2) .skill-icon {
  background: #f3e8ff;
  color: #9333ea;
}

.skill-card:nth-child(3) .skill-icon {
  background: #dcfce7;
  color: #16a34a;
}

.skill-card:nth-child(4) .skill-icon {
  background: #dcfce7;
  color: #059669;
}

.skill-card:nth-child(5) .skill-icon {
  background: #fce7f3;
  color: #db2777;
}

.skill-header h3 {
  font-size: 22px;
  color: var(--text-primary);
}

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

.skill-list li {
  padding: 10px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dark-mode .skill-list li {
  color: #9ca3af;
}

.skill-list li:before {
  content: "○";
  color: #999;
  font-size: 18px;
}

/* PROJECTS SECTION */
.projects {
  padding: 100px 80px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

body.dark-mode .projects {
  background: #1a1a1a;
}

.projects-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects-title {
  font-size: 48px;
  color: #fff !important;
  margin-bottom: 15px;
}

body.dark-mode .projects-title {
  color: #fff !important;
}

.projects-title span {
  color: var(--accent-orange);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fdfdfd;
  border-radius: 12px;
  padding: 30px;
  /* Subtle bottom shadow only for grounded look */
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  transition: transform 0.3s ease;
  min-height: 400px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  /* Grounded/Baseline gravity */
  justify-content: center;
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* No tilt, rotation, or floating */
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}




/* CONTACT SECTION */
.contact {
  padding: 100px 80px;
  background: linear-gradient(135deg, #f0f8ff, #fff5f2);
  transition: background 0.3s ease;
}

body.dark-mode .contact {
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-left h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.contact-left h2 span {
  color: var(--accent-blue);
}

.contact-desc {
  color: #666;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 40px;
}

body.dark-mode .contact-desc {
  color: #9ca3af;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
}

.contact-item:nth-child(1) .contact-icon {
  background: #e3f2ff;
  color: #0066cc;
}

.contact-item:nth-child(2) .contact-icon {
  background: #dcfce7;
  color: #16a34a;
}

.contact-item:nth-child(3) .contact-icon {
  background: #f3e8ff;
  color: #9333ea;
}

.contact-text small {
  display: block;
  color: #999;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.contact-form {
  background: #fff !important;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  color: #666 !important;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  background: #fafafa !important;
  color: #222 !important;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: white !important;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-blue) !important;
  color: white !important;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-blue-dark) !important;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: transform 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
}

/* VIDEO SECTION */
.video-section {
  padding: 100px 80px;
  background: var(--bg-primary);
  text-align: center;
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  background: black;
}

.video-section video {
  width: 100%;
  display: block;
}

/* GALLERY SECTION */
.gallery {
  padding: 100px 80px;
  background: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* REVIEWS SECTION */
.reviews {
  padding: 100px 80px;
  background: var(--bg-primary);
}

.reviews-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.reviews .card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  text-align: center;
}

.rating-value {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent-blue);
  margin: 10px 0;
}

.stars-display {
  color: #ffc107;
  font-size: 24px;
  margin-bottom: 10px;
}

.total-ratings {
  color: var(--text-muted);
  font-size: 14px;
}

.stars-clickable {
  font-size: 40px;
  color: #ccc;
  margin: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.stars-clickable i {
  transition: all 0.2s;
}

.stars-clickable i.fas,
.stars-clickable i.hover {
  color: #ffc107;
}

.rating-hint {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .reviews-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .reviews .card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 35px 25px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stars-clickable {
    font-size: 36px;
    gap: 8px;
  }
}

/* APP DOWNLOAD */
.app-download {
  padding: 80px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-aqua));
  color: white !important;
  text-align: center;
  border-radius: 40px;
  margin: 40px 80px;
}

.app-download h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: black;
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 25px;
  transition: transform 0.3s;
}

.app-btn:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .app-download {
    margin: 20px;
    padding: 40px 20px;
  }
}

/* FOOTER */
footer {
  padding: 60px 80px 30px;
  background: var(--bg-secondary);
  color: #9ca3af;
}

body.dark-mode footer {
  background: #1a1a1a;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.footer-left {
  max-width: 500px;
}

.footer-logo {
  font-size: 32px;
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent-blue-dark) !important;
}

.footer-tagline {
  font-size: 16px;
  color: #9ca3af !important;
  line-height: 1.6;
  margin-bottom: 30px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-dark);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s;
}

body.dark-mode .footer-social-link {
  background: #0f0f0f;
}

.footer-social-link:hover {
  background: var(--border-color);
  color: var(--accent-blue-dark);
  border-color: var(--accent-blue-dark);
  transform: translateY(-3px);
}

.footer-social-link i {
  font-size: 18px;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-section h3 {
  font-size: 16px;
  color: #fff !important;
  margin-bottom: 20px;
  font-weight: 600;
}

.coding-profiles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 25px;
  background: var(--card-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  min-width: 280px;
}

body.dark-mode .profile-card {
  background: #0f0f0f;
}

.profile-card:hover {
  background: var(--border-color);
  border-color: var(--accent-blue-dark);
  transform: translateX(5px);
}

.profile-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.profile-username {
  font-size: 15px;
  color: #fff !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-username i {
  font-size: 12px;
  color: #6b7280 !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 30px;
}

.footer-bottom p {
  font-size: 14px;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* --- RESPONSIVE DESIGN ENHANCEMENTS --- */

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  nav {
    padding: 15px 40px;
  }

  .hero,
  .about,
  .skills,
  .projects,
  .contact {
    padding: 60px 40px;
    /* Reduced padding */
  }

  .hero {
    padding: calc(100px + env(safe-area-inset-top)) 40px 80px;
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .hero-left {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 52px;
    width: 100%;
    white-space: normal;
  }

  .cta {
    justify-content: center;
  }

  .image-wrapper {
    width: 450px;
    margin-top: 0;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-right {
    display: none;
    /* Hide image in about on tablet? No, strictly stack */
    display: flex;
    margin-top: 40px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  nav {
    padding: 15px 25px;
  }

  .hamburger {
    display: block;
    /* Show hamburger */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    display: none;
    /* Hidden by default */
    backdrop-filter: blur(10px);
    box-sizing: border-box;
  }

  .nav-links.active {
    display: flex;
    /* Show when active */
  }

  .hero {
    padding: calc(100px + env(safe-area-inset-top)) 20px 60px;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .about,
  .skills,
  .projects,
  .contact {
    padding: 60px 25px;
  }

  .hero-left {
    width: 100%;
    order: 1;
    display: block;
  }

  .hero-left h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 15px 0;
    width: 100%;
    white-space: normal !important;
    display: block;
    text-align: center;
  }

  .name {
    white-space: normal !important;
  }

  .hero-left h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 5px;
  }

  .desc {
    font-size: 15px;
    text-align: center;
    margin: 15px 0 25px;
  }

  .cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
  }

  .hero-right {
    width: 100%;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    min-height: auto;
  }

  .image-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 0;
    order: 1;
  }

  .paint-bg {
    display: none;
  }

  .person-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    display: flex;
    justify-content: center;
    overflow: visible;
  }

  .person-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    transform: scale(1.05);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
  }

  .owner-info {
    width: 100%;
    max-width: 320px;
    margin-left: 0;
    order: 2;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
  }

  .owner-name {
    font-size: 24px;
  }

  .owner-title {
    font-size: 15px;
  }

  .owner-status {
    font-size: 13px;
    padding: 6px 12px;
  }



  .about-title {
    font-size: 32px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .projects-title,
  .section-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .contact-left h2 {
    font-size: 32px;
  }

  .contact-form {
    padding: 25px;
  }

  .footer {
    padding: 40px 25px;
  }

  .footer-logo {
    font-size: 26px;
  }
}

/* CALL MODAL */
.call-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.call-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.call-modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 35px 35px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.call-modal-overlay.active .call-modal-content {
  transform: scale(1);
}

.call-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.call-modal-close:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.call-modal-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-aqua));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
}

.call-modal-content h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.call-modal-numbers {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 0;
}

.phone-number-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.phone-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.copy-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: var(--accent-blue-dark);
  transform: translateY(-2px);
}

.copy-btn.copied {
  background: #16a34a;
}

@media (max-width: 768px) {
  .call-modal-content {
    padding: 30px 25px 25px;
  }

  .call-modal-content h3 {
    font-size: 22px;
  }

  .phone-number {
    font-size: 16px;
  }

  .phone-number-item {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}