/* Root Variables */
:root {
  --primary: #073847;
  --secondary: #1f8a70;
  --accent: #0f5c4a;
  --bg-light: #f8fbfc;
  --text-light: #1a2a32;
  --card-bg-light: rgba(255, 255, 255, 0.9);
  --gradient: linear-gradient(135deg, #073847 0%, #1f8a70 100%);
  --gradient-reverse: linear-gradient(135deg, #1f8a70 0%, #073847 100%);
  --glass-blur: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  scroll-behavior: smooth;
  padding-top: 70px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove default padding from container on mobile */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

/* Section Headings - Centered & REDUCED SIZE with less margin */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Override any left-aligned section titles */
#about .section-title,
#skills .section-title,
#projects .section-title,
#services .section-title,
#contact .section-title {
  text-align: center;
  display: block;
}

.gradient-text {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 0.8rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

/* Text Logo Style */
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

/* Navbar Photo Logo */
.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar-logo:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
}

/* Adjust for mobile */
@media (max-width: 768px) {
  .navbar-logo {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    width: 30px;
    height: 30px;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--text-light) !important;
  transition: var(--transition);
  margin: 0 0.5rem;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 80%;
}

.navbar-toggler {
  border: none;
  outline: none;
  background: transparent;
}

.navbar-toggler i {
  color: var(--text-light);
  font-size: 1.5rem;
}

/* Hero Section - REDUCED MARGINS & PADDING */
#home {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 0 30px;
}

/* Hero heading - REDUCED SIZE */
#home h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

#home h1 .gradient-text {
  font-size: 1.8rem;
}

/* Typing text area */
.typing-text {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.3rem 0 0.8rem;
  color: var(--text-light);
}

#typing {
  color: var(--primary);
  font-weight: 600;
  border-right: 3px solid var(--primary);
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: currentColor; }
}

/* Hero paragraph - Clean and scannable */
#home p {
  max-width: 550px;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.85;
}

/* Hero Section Text Alignment */
@media (min-width: 992px) {
  #home p {
    text-align: left;
  }
}

/* Justify text on tablets and mobile only (not desktop) */
@media (max-width: 991px) {
  #home p {
    text-align: justify;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero Image - REDUCED SIZE ON DESKTOP */
.hero-img-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.bg-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.15;
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}

.bg-circle-secondary {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--gradient-reverse);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.1;
  filter: blur(60px);
  animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.25;
  }
}

.home-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  border-radius: 50% !important;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.home-img:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
  .hero-img-wrapper {
    max-width: 380px;
  }
  .home-img {
    max-width: 340px;
  }
}

/* Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-img-wrapper {
    max-width: 360px;
  }
  .home-img {
    max-width: 320px;
  }
}

/* Standard Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-img-wrapper {
    max-width: 340px;
  }
  .home-img {
    max-width: 300px;
  }
}

/* Buttons - REDUCED SIZE */
.btn-custom {
  background: var(--gradient);
  color: white;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(7, 56, 71, 0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-custom:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(7, 56, 71, 0.35);
  color: white;
}

.btn-custom:active {
  transform: scale(0.98);
}

.btn-outline-custom {
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-custom:hover {
  transform: scale(1.05);
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.btn-outline-custom:active {
  transform: scale(0.98);
}

/* Social Icons - Clean and simple */
.social-icons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-bg-light);
  backdrop-filter: blur(10px);
  color: var(--primary);
  font-size: 0.95rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
  transform: scale(1.1);
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.social-icons a:active {
  transform: scale(0.95);
}

/* Trust badges - reduced margin */
.trust-badges {
  margin-bottom: 1rem !important;
}

/* ===== ABOUT SECTION - REDUCED PADDING ===== */
#about {
  background: linear-gradient(135deg, rgba(7, 56, 71, 0.03) 0%, rgba(31, 138, 112, 0.03) 100%);
  padding: 2.5rem 0;
}

.about-content {
  width: 100%;
}

.about-text {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-box {
  background: var(--card-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem;
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-box ul li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-box ul li i {
  flex-shrink: 0;
}

/* About Section Text Alignment */
@media (min-width: 992px) {
  #about {
    text-align: left;
  }
  
  .about-content {
    text-align: left;
    max-width: 100%;
  }
  
  .about-text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  
  #about .row {
    text-align: left;
  }
  
  .about-box {
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 991px) {
  #about {
    text-align: center;
    padding: 2rem 0;
  }
  
  .about-content {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .about-text {
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  
  #about .row {
    text-align: center;
  }
  
  .about-box {
    margin: 0 auto;
    text-align: left;
  }
  
  .about-box ul li {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ===== SKILLS SECTION - REDUCED PADDING ===== */
#skills {
  padding: 2.5rem 0;
}

.skill-card {
  background: var(--card-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 20px;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress {
  height: 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
}

.progress-bar {
  border-radius: 10px;
  background: var(--gradient);
  transition: width 1.2s ease-in-out;
}

/* ===== PROJECTS SECTION - REDUCED PADDING ===== */
#projects {
  padding: 2.5rem 0;
}

.project-card {
  background: var(--card-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SQUARED IMAGES - Removed border-radius to make them square */
.project-img {
  width: 120px;
  height: 120px;
  border-radius: 5px !important;
  object-fit: cover !important;
  transition: var(--transition);
  display: block;
  background: transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card .card-body {
  padding: 1rem;
}

.project-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.project-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.project-link i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link:hover i {
  transform: translateX(5px);
}

/* ===== SERVICES SECTION - REDUCED PADDING ===== */
#services {
  padding: 2.5rem 0;
}

.service-card {
  background: var(--card-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 20px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1.5rem !important;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  color: white;
  font-size: 1.5rem;
}

.service-card h5 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== CONTACT SECTION - REDUCED PADDING ===== */
#contact {
  padding: 2.5rem 0;
}

.contact-info {
  text-align: left;
}

.contact-info h4 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.contact-info p {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-details {
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  text-align: left;
  justify-content: flex-start;
}

.contact-item i {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item span,
.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  text-align: left;
  word-break: break-word;
  font-size: 0.9rem;
}

.contact-item a:hover {
  color: var(--primary);
}

/* Ensure contact section stays left-aligned on all devices */
@media (max-width: 991px) {
  .contact-info {
    text-align: left;
    margin-bottom: 1.5rem;
  }
  
  .contact-info h4 {
    text-align: left;
  }
  
  .contact-info p {
    text-align: left;
  }
  
  .contact-item {
    justify-content: flex-start;
  }
  
  .contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .contact-info h4 {
    font-size: 1.3rem;
  }
  
  .contact-item {
    gap: 0.75rem;
  }
  
  .contact-item i {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .contact-item span,
  .contact-item a {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .contact-info h4 {
    font-size: 1.2rem;
  }
  
  .contact-info p {
    font-size: 0.9rem;
  }
  
  .contact-item {
    gap: 0.75rem;
  }
  
  .contact-item i {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .contact-item span,
  .contact-item a {
    font-size: 0.85rem;
  }
}

.contact-form .form-control {
  background: var(--card-bg-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.9rem;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(7, 56, 71, 0.1);
}

/* ===== ENHANCED FOOTER STYLES - PROFESSIONAL & CENTERED ===== */
.footer {
  background: linear-gradient(135deg, #0b1f26 0%, #051217 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 1.5rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

/* Footer Brand Section - Centered */
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.8rem;
}

.footer-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

/* Footer Headings - Centered on all devices */
.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  color: white;
  padding-bottom: 0.4rem;
  text-align: center;
  width: 100%;
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Footer Links - Centered on all devices */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.footer-links a i {
  font-size: 0.75rem;
  margin-right: 6px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-links a:hover i {
  transform: translateX(3px);
}

/* Footer Contact - Centered on all devices */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-contact li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.footer-contact li i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.footer-contact li:hover i {
  background: var(--gradient);
  transform: scale(1.1);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--secondary);
}

/* Hours Badges - Centered on all devices */
.footer-hours {
  margin-top: 0.8rem;
  text-align: center;
}

.hour-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  padding: 0.2rem 0;
}

.hour-badge i {
  width: 25px;
  color: var(--secondary);
  font-size: 0.8rem;
}

/* Footer CTA Button - Centered on all devices */
.btn-footer-cta {
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  margin: 0 auto;
  width: fit-content;
  text-align: center;
  gap: 8px;
}

.btn-footer-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(31, 138, 112, 0.3);
  color: white;
}

/* Ensure parent column allows centering */
.footer .col-lg-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Response Badges - Centered on all devices */
.footer-response {
  margin-top: 0.8rem;
  padding-top: 0.5rem;
  text-align: center;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin: 0.3rem auto;
  width: fit-content;
}

.response-badge i {
  color: var(--secondary);
  font-size: 0.8rem;
}

/* Social Icons Footer - Centered on all devices */
.footer-social-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0;
  margin: 0.8rem 0;
}

.social-icons-footer {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icons-footer a {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.social-icons-footer a i {
  font-size: 0.9rem;
}

.social-icons-footer a .social-label {
  font-size: 0.7rem;
}

.social-icons-footer a:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-3px);
}

/* Hide text labels on mobile - show only circular icons */
@media (max-width: 768px) {
  .social-icons-footer a {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .social-icons-footer a .social-label {
    display: none;
  }
  
  .social-icons-footer a i {
    font-size: 1.2rem;
    margin: 0;
  }
  
  .social-icons-footer a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
  }
  
  /* Force button centering on mobile */
  .btn-footer-cta {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .social-icons-footer a {
    width: 42px;
    height: 42px;
  }
  
  .social-icons-footer a i {
    font-size: 1.3rem;
  }
}

/* Copyright - Centered */
.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-align: center;
  margin-bottom: 0;
}

hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.8rem 0;
}

@media (max-width: 768px) {
  .footer-logo {
    width: 45px;
    height: 45px;
  }
  
  .footer-title {
    font-size: 1.2rem;
  }
  
  .footer-tagline {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .footer-logo {
    width: 40px;
    height: 40px;
  }
  
  .footer-title {
    font-size: 1.1rem;
  }
  
  .footer-heading {
    font-size: 0.9rem;
  }
  
  .footer-links a,
  .footer-contact li {
    font-size: 0.75rem;
  }
  
  .footer-contact li i {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  
  .response-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }
  
  .copyright {
    font-size: 0.6rem;
  }
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #20b859;
  color: white;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* ===== FULLY RESPONSIVE DESIGN - ALL DEVICES ===== */
/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  #home h1 {
    font-size: 2rem;
  }
  
  #home h1 .gradient-text {
    font-size: 2rem;
  }
}

/* Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  #home h1 {
    font-size: 1.9rem;
  }
  
  #home h1 .gradient-text {
    font-size: 1.9rem;
  }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .section-title {
    font-size: 1.9rem;
  }
  
  #home h1 {
    font-size: 1.8rem;
  }
  
  #home h1 .gradient-text {
    font-size: 1.8rem;
  }
  
  .typing-text {
    font-size: 0.95rem;
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
  body {
    padding-top: 60px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  #home {
    text-align: center;
    padding: 30px 0 25px;
  }

  #home h1 {
    font-size: 1.7rem;
  }
  
  #home h1 .gradient-text {
    font-size: 1.7rem;
  }

  .typing-text {
    font-size: 0.95rem;
  }

  .d-flex.flex-wrap.gap-3 {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .hero-img-wrapper {
    margin-top: 1.5rem;
  }

  /* Remove row negative margins on mobile */
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Remove column padding on mobile */
  [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* Center skill cards text */
  .skill-card {
    text-align: center;
  }

  /* Center project cards */
  .project-card {
    text-align: center;
  }

  /* Center service cards */
  .service-card {
    text-align: center;
  }
}

/* Tablet portrait (768px) - Profile image size adjustment */
@media (max-width: 768px) {
  #home {
    padding: 25px 0 20px;
  }
  
  .hero-img-wrapper {
    max-width: 260px;
  }
  .home-img {
    max-width: 230px;
  }
  
  #home h1 {
    font-size: 1.6rem;
  }
  
  #home h1 .gradient-text {
    font-size: 1.6rem;
  }

  .typing-text {
    font-size: 0.9rem;
  }

  .btn-custom, .btn-outline-custom {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* Project images responsive - SQUARED */
  .project-img {
    width: 90px !important;
    height: 90px !important;
  }

  .service-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .service-icon {
    font-size: 1.2rem;
  }
  
  #about, #skills, #projects, #services, #contact {
    padding: 2rem 0;
  }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 576px) {
  #home {
    padding: 20px 0 15px;
  }
  
  .hero-img-wrapper {
    max-width: 220px;
  }
  .home-img {
    max-width: 190px;
  }
  
  #home h1 {
    font-size: 1.5rem;
  }
  
  #home h1 .gradient-text {
    font-size: 1.5rem;
  }

  .typing-text {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .whatsapp-float {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    bottom: 20px;
    right: 20px;
  }
  
  /* Extra small devices - remove all extra padding */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Skills Section Mobile */
  .skill-card {
    padding: 1rem;
  }
  
  .skill-icon {
    font-size: 1.8rem !important;
  }
  
  /* Projects Section Mobile - SQUARED images */
  .project-img {
    width: 75px !important;
    height: 75px !important;
  }
  
  .project-card .card-body {
    padding: 0.8rem;
  }
  
  .project-card h5 {
    font-size: 0.95rem;
  }
  
  /* Services Section Mobile */
  .service-card {
    padding: 1rem !important;
  }
  
  .service-icon-wrapper {
    width: 45px;
    height: 45px;
  }
  
  .service-icon {
    font-size: 1.1rem;
  }
  
  .service-card h5 {
    font-size: 1rem;
    margin-top: 0.8rem;
  }
  
  #about, #skills, #projects, #services, #contact {
    padding: 1.5rem 0;
  }
}

/* Mobile Portrait (up to 375px) */
@media (max-width: 375px) {
  #home {
    padding: 15px 0 10px;
  }
  
  .hero-img-wrapper {
    max-width: 190px;
  }
  .home-img {
    max-width: 170px;
  }
  
  #home h1 {
    font-size: 1.3rem;
  }
  
  #home h1 .gradient-text {
    font-size: 1.3rem;
  }
  
  .typing-text {
    font-size: 0.8rem;
  }
  
  .btn-custom, .btn-outline-custom {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .project-img {
    width: 65px !important;
    height: 65px !important;
  }
  
  .contact-item i {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

/* Print styles */
@media print {
  .navbar, .whatsapp-float, .footer, .social-icons {
    display: none;
  }
  
  body {
    padding-top: 0;
  }
  
  .skill-card, .project-card, .service-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Success Message Animation */
.alert-success {
  animation: fadeIn 0.5s ease;
  transition: opacity 0.3s ease;
  border-left: 4px solid #1f8a70;
  background: rgba(31, 138, 112, 0.1);
  color: #1f8a70;
  border-radius: 10px;
  padding: 0.8rem;
  font-weight: 500;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}