/* =========================================================
   🌟 BASE STYLES
   ========================================================= */
* {
  box-sizing: border-box;
}

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

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f4f7fb, #e9f0ff);
  color: #222;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* =========================================================
   🧭 TOP NAVIGATION MENU
   ========================================================= */
.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #004aad;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 5px;
}

.nav-links a:hover {
  color: #ffcc00;
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   💫 HERO SPLIT HEADER - TWO COLUMN LAYOUT (50% / 50%)
   ========================================================= */
.hero-header {
  margin-top: 60px; /* Account for fixed navbar */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero-split {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-height: 500px;
  background: linear-gradient(135deg, #004aad, #007bff);
  color: #fff;
  overflow: hidden;
}

/* LEFT COLUMN: Profile Picture (50%) */
.hero-split .hero-left {
  flex: 0 0 50%;
  width: 50%;
  position: relative;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.hero-image-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(95%);
  transition: transform 0.4s ease, filter 0.3s ease;
  display: block;
  max-width: 100%;
}

.hero-split .hero-left:hover .hero-image-large {
  transform: scale(1.03);
  filter: brightness(100%);
}

/* RIGHT COLUMN: Details & Contacts (50%) */
.hero-split .hero-right {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  color: #fff;
  box-sizing: border-box;
}

.hero-info {
  max-width: 550px;
}

.profile-name {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.profile-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 30px;
}

.hero-split .highlight-tech {
  color: #ffcc00;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 10px;
  border-radius: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   ✉️ CONTACT ICONS + TOOLTIP
   ========================================================= */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.contact-item {
  position: relative;
}

.contact-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item img:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Tooltip */
.tooltip {
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 10;
}

.contact-item:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   📱 RESPONSIVE STYLES
   ========================================================= */
@media (max-width: 900px) {
  .hero-header {
    margin-top: 60px;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-split {
    flex-direction: column;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: auto;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
  }

  .hero-left {
    flex: 0 0 auto;
    width: 100vw !important;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    margin: 0 !important;
    padding-top: 80px !important; /* Push image below menu */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-image-large {
    width: 100% !important;
    height: 100%;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero-right {
    flex: 0 0 auto;
    width: 100vw !important;
    text-align: center;
    padding: 30px 15px;
    box-sizing: border-box;
    min-height: auto;
    margin: 0 !important;
  }

  .hero-info {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
  }

  .contact-bar {
    justify-content: center;
  }

  .profile-name {
    font-size: 2rem;
    padding: 0 10px;
    margin-bottom: 16px;
  }

  .profile-subtitle {
    padding: 0 10px;
    margin-bottom: 30px;
  }
}

@media (max-width: 720px) {
  .top-menu {
    padding: 12px 15px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 12px;
    padding: 5px 6px;
  }

  .hero-header {
    margin-top: 50px;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-split {
    overflow-x: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: auto;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-left {
    flex: 0 0 auto;
    width: 100vw !important;
    height: auto;
    min-height: 280px;
    max-height: 350px;
    overflow: hidden;
    margin: 0 !important;
    padding-top: 80px !important; /* Push image below menu */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-image-large {
    width: 100% !important;
    height: 100%;
    min-height: 280px;
    max-height: 350px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero-right {
    flex: 0 0 auto;
    width: 100vw !important;
    padding: 25px 12px;
    min-height: auto;
    margin: 0 !important;
  }

  .profile-name {
    font-size: 1.7rem;
    padding: 0 5px;
    margin-bottom: 12px;
  }

  .profile-subtitle {
    font-size: 0.9rem;
    padding: 0 5px;
    margin-bottom: 25px;
  }

  .contact-item img {
    width: 40px;
    height: 40px;
  }

  .contact-bar {
    gap: 12px;
  }
}

/* =========================================================
   📋 COPY ICON STYLES
   ========================================================= */
.copy-icon {
  width: 14px;
  height: 14px;
  cursor: pointer;
  filter: invert(1);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.copy-icon:hover {
  opacity: 1;
}

/* =========================================================
   📄 CONTENT SECTIONS
   ========================================================= */
.container {
  overflow-x: hidden;
  max-width: 100%;
}

section {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  overflow-x: hidden;
}

section h3 {
  color: #004aad;
  font-size: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
  border-left: 5px solid #ffcc00;
  padding-left: 10px;
}

p, li {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

ul {
  padding-left: 20px;
}

/* =========================================================
   ✨ BEAUTIFUL ABOUT ME SECTION
   ========================================================= */
.about-me-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
  padding: 60px 40px;
  border-top: none;
}

.about-me-container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-me-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.about-me-header h3 {
  font-size: 2.2rem;
  color: #004aad;
  margin: 0;
  border: none;
  padding: 0;
  text-transform: none;
}

.view-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #004aad, #0066cc);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.view-resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4);
  background: linear-gradient(135deg, #0066cc, #004aad);
}

.view-resume-btn svg {
  transition: transform 0.3s ease;
}

.view-resume-btn:hover svg {
  transform: translateX(3px);
}

.about-me-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 74, 173, 0.1);
  border-left: 6px solid #ffcc00;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-me-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 74, 173, 0.15);
}

.about-me-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.about-intro {
  font-size: 18px !important;
  font-weight: 500;
  color: #222;
}

.about-detail {
  color: #444;
}

/* Highlight Styles */
.highlight-skill {
  color: #004aad;
  font-weight: 600;
}

.highlight-tech {
  color: #0066cc;
  font-weight: 600;
  background: rgba(0, 102, 204, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.highlight-keyword {
  color: #ff6b6b;
  font-weight: 500;
}

.highlight-personal {
  color: #9b59b6;
  font-weight: 500;
}

.highlight-project {
  color: #27ae60;
  font-weight: 600;
}

.highlight-impact {
  color: #e67e22;
  font-weight: 600;
}

/* =========================================================
   ⚙️ CARD GRID (Experience / Projects)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 28px 30px;
  border-left: 5px solid #004aad;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-left-color: #ffcc00;
}

.info-card h4 {
  font-size: 1.05rem;
  color: #004aad;
  margin-bottom: 8px;
  font-weight: 600;
}

.info-card h4 span {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  float: right;
}

.info-card p,
.info-card li {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

/* Certificate Link Button - Beautiful Card Style */
.certificate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ffcc00 0%, #ffa500 100%);
  color: #004aad;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.certificate-link:hover::before {
  left: 100%;
}

.certificate-link:hover {
  background: linear-gradient(135deg, #ffa500 0%, #ffcc00 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.6);
  border-color: #004aad;
}

.certificate-link svg {
  flex-shrink: 0;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.certificate-link:hover svg {
  transform: scale(1.15) rotate(5deg);
}

.certificate-link:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.5);
}

/* Responsive Certificate Button */
@media (max-width: 768px) {
  .certificate-link {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Website Link Button - Beautiful Purple/Blue Style */
.website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.website-link:hover::before {
  left: 100%;
}

.website-link:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  border-color: #fff;
}

.website-link svg {
  flex-shrink: 0;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.website-link:hover svg {
  transform: scale(1.15) translateX(3px);
}

.website-link:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

/* Responsive Website Button */
@media (max-width: 768px) {
  .website-link {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* =========================================================
   🎓 CERTIFICATES GRID
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cert-item {
  text-align: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.cert-item:hover {
  transform: scale(1.05);
}

.cert-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.cert-item p {
  margin-top: 10px;
  font-weight: 600;
  color: #004aad;
  line-height: 1.4;
  white-space: pre-line;
}

/* =========================================================
   🖼️ MODAL PREVIEW
   ========================================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

/* =========================================================
   📄 RESUME VIEWER OVERLAY (Slides from Left)
   ========================================================= */
.resume-viewer {
  position: fixed !important;
  top: 0 !important;
  left: -100% !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #fff;
  z-index: 9999 !important;
  display: flex;
  flex-direction: column;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
  margin: 0 !important;
  padding: 0 !important;
}

.resume-viewer.active {
  left: 0 !important;
}

.resume-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: linear-gradient(135deg, #004aad, #0066cc);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  min-height: 70px;
}

.resume-viewer-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.resume-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #004aad;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resume-download-btn:hover {
  background: #ffcc00;
  color: #004aad;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.resume-close-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resume-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.resume-viewer-content {
  flex: 1 1 auto;
  padding: 20px;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.resume-viewer-content iframe {
  width: 100%;
  flex: 1;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-height: 500px;
}

/* Responsive Resume Viewer */
@media (max-width: 768px) {
  .resume-viewer-header {
    padding: 15px 20px;
  }
  
  .resume-viewer-header h2 {
    font-size: 20px;
  }
  
  .resume-download-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .resume-viewer-content {
    padding: 10px;
  }
  
  /* About Me Responsive */
  .about-me-section {
    padding: 40px 20px;
  }
  
  .about-me-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .about-me-header h3 {
    font-size: 1.8rem;
  }
  
  .view-resume-btn {
    width: 100%;
    justify-content: center;
  }
  
  .about-me-card {
    padding: 25px;
  }
  
  .about-me-content p {
    font-size: 16px;
  }
}

/* =========================================================
   🧩 MOBILE RESPONSIVE FIXES
   ========================================================= */
/* Additional Mobile Fixes */
@media (max-width: 600px) {
  .hero-left {
    width: 100vw !important;
    height: auto;
    min-height: 250px;
    max-height: 320px;
    overflow: hidden;
    margin: 0 !important;
    padding-top: 80px !important; /* Push image below menu */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-image-large {
    width: 100% !important;
    height: 100%;
    min-height: 250px;
    max-height: 320px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero-right {
    width: 100vw !important;
    padding: 20px 10px;
    min-height: auto;
    margin: 0 !important;
  }

  .hero-info {
    padding: 0 8px;
  }

  .profile-name {
    font-size: 1.6rem;
    margin-bottom: 10px;
    padding: 0;
  }

  .profile-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 0;
  }

  .contact-item img {
    width: 36px;
    height: 36px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero-left {
    width: 100vw !important;
    height: auto;
    min-height: 220px;
    max-height: 280px;
    overflow: hidden;
    margin: 0 !important;
    padding-top: 80px !important; /* Push image below menu */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-image-large {
    width: 100% !important;
    height: 100%;
    min-height: 220px;
    max-height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero-right {
    width: 100vw !important;
    padding: 18px 8px;
    margin: 0 !important;
  }

  .hero-info {
    padding: 0 5px;
  }

  .profile-name {
    font-size: 1.4rem;
    padding: 0;
  }

  .profile-subtitle {
    font-size: 0.8rem;
    padding: 0;
  }

  .contact-item img {
    width: 32px;
    height: 32px;
  }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-left {
    width: 100vw !important;
    height: auto;
    min-height: 250px;
    max-height: 300px;
    overflow: hidden;
    margin: 0 !important;
    padding-top: 70px !important; /* Less padding for landscape */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .hero-image-large {
    width: 100% !important;
    height: 100%;
    min-height: 250px;
    max-height: 300px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  
  .hero-right {
    width: 100vw !important;
    margin: 0 !important;
  }
}

/* Info Card Mobile */
@media (max-width: 720px) {
  .info-card h4 span {
    float: none;
    display: block;
    margin-top: 4px;
  }
}

/* =========================================================
   🧍‍♀️ END OF STYLES
   ========================================================= */
