/* Enhanced Responsive CSS - Fully Optimized for All Devices */
:root {
  --primary-color: #c4a574;
  --secondary-color: #a29bfe;
  --dark-bg: #1a1a1a;
  --darker-bg: #0f0f0f;
  --dark-surface: #121212;
  --dark-surface-2: #1e1e1e;
  --light-text: #ffffff;
  --light-text-secondary: rgba(255, 255, 255, 0.7);
  --light-text-disabled: rgba(255, 255, 255, 0.5);
  --text-gray: #a0a0a0;
  --text-dark: #333333;
  --accent-color: #c4a574;
  --error-color: #ff4757;
  --success-color: #2ed573;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --container-width: 1200px;
  --header-height: 80px;
  --section-spacing: 120px;
  --border-color: #30363d;
  --card-bg: rgba(33, 38, 45, 0.8);
  --hover-bg: rgba(255, 255, 255, 0.1);
}

/* Base Reset and Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--dark-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px;
}

/* Font weight utility */
.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Make em tags look like bold text */
em.fw-semibold {
    font-style: normal;
    font-weight: 600;
}

.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.blog-title-link {
    position: relative;
    z-index: 6;
    text-decoration: none;
}
span.read-label
 {
    color: #c4a574;
}
/* Container and Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

section {
  padding: var(--section-spacing) 0;
  position: relative;
}

/* Typography - Fully Responsive */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--light-text);
  word-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(1.8rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 1.5vw, 1.1rem); }

p {
  margin-bottom: 1.25rem;
  color: var(--light-text-secondary);
  line-height: 1.7;
  word-wrap: break-word;
  hyphens: auto;
}

/* Links */
a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

a:hover, a:focus {
  color: var(--accent-color);
  outline: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hero Section - Enhanced for All Devices */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  /*position: absolute;*/
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--light-text);
  word-break: break-word;
}

.hero-title .highlight {
  color: var(--accent-color);
  font-weight: 600;
  display: inline-block;
}

/* Social Icons - Enhanced Touch Targets */
.social-icons {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem;
  height: 3.125rem;
  min-width: 44px; /* Minimum touch target */
  min-height: 44px;
  background-color: var(--card-bg);
  color: var(--light-text);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.2rem;
  border: 1px solid var(--border-color);
  -webkit-tap-highlight-color: transparent;
}

.social-icon:hover, .social-icon:focus {
  background-color: var(--accent-color);
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(196, 165, 116, 0.3);
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Wave Transition */
.wave-transition {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-transition svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: clamp(40px, 8vw, 150px);
}

.wave-transition .shape-fill {
  fill: var(--dark-surface);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3.75rem;
  padding: 0 1rem;
}

.section-title {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: clamp(1px, 0.5vw, 3px);
  color: var(--light-text-secondary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.name-highlight {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  margin: 1rem 0 2rem 0;
  letter-spacing: clamp(1px, 0.3vw, 2px);
  word-break: break-word;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--light-text-secondary);
}

/* About Section */
.about-section {
  background-color: var(--dark-surface);
  color: var(--light-text);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center !important;
  margin-top: 3rem;
}

.about-image {
  position: relative;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 0 auto;
}

.about-text p {
  color: var(--light-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Buttons - Enhanced for Touch */
.btn, .btn-primary {
  display: inline-block;
  padding: clamp(0.75rem, 2vw, 0.9375rem) clamp(1.5rem, 3vw, 2.1875rem);
  background-color: var(--accent-color);
  color: var(--light-text);
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  margin: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1;
  min-width: 120px;
  min-height: 44px; /* Touch target */
  -webkit-tap-highlight-color: transparent;
}

.btn:hover, .btn-primary:hover, .btn:focus, .btn-primary:focus {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(196, 165, 116, 0.2);
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: clamp(0.75rem, 2vw, 0.9375rem) clamp(1.5rem, 3vw, 2.1875rem);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  margin: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  min-width: 120px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--accent-color);
  color: var(--light-text);
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skills Section */
.skills {
  background-color: var(--dark-bg);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.875rem;
}

.skill-category {
  background-color: var(--dark-surface);
  border-radius: var(--border-radius);
  padding: 1.875rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1.25rem;
  color: var(--light-text);
}

.skill-item {
  margin-bottom: 1.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-name {
  font-weight: 500;
  color: var(--light-text);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.skill-percentage {
  color: var(--light-text-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.skill-bar {
  height: 0.5rem;
  background-color: var(--card-bg);
  border-radius: 0.25rem;
  overflow: hidden;
  width: 100%;
}

.skill-progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 0.25rem;
  width: 0;
  transition: width 1s ease-in-out;
}

/* Timeline Styles - Enhanced Mobile */
.experience, .education {
  background-color: var(--dark-surface);
}

.education {
  background-color: var(--dark-bg);
}

.timeline {
  position: relative;
  max-width: 56.25rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--accent-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content {
  position: relative;
  width: calc(50% - 3rem);
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  word-wrap: break-word;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
  margin-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
  left: calc(50% + 3rem);
  margin-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  background: var(--accent-color);
  border: 4px solid var(--dark-bg);
  border-radius: 50%;
  z-index: 2;
}

.timeline-date {
  position: absolute;
  top: 1rem;
  color: var(--accent-color);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 600;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  white-space: nowrap;
  z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-date {
  right: calc(50% + 1rem);
}

.timeline-item:nth-child(even) .timeline-date {
  left: calc(50% + 1rem);
}

.timeline-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 0.5rem;
  color: var(--light-text);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1rem;
}

.timeline-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.timeline-field {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--light-text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline-description {
  color: var(--light-text-secondary);
  line-height: 1.7;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* Projects Section */
.projects {
  background-color: var(--dark-surface);
}

.project-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding: 0 1rem;
}

.project-filter {
  padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(1rem, 2.5vw, 1.25rem);
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--light-text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.project-filter:hover, .project-filter.active, .project-filter:focus {
  background-color: var(--accent-color);
  color: var(--light-text);
  border-color: var(--accent-color);
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.875rem;
}

.project-card {
  background-color: var(--dark-surface-2);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 12.5rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(196, 165, 116, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 0.9375rem;
}

.project-link {
  /*width: 3rem;*/
  height: 3rem;
  min-width: 44px;
  min-height: 44px;
  background-color: var(--light-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark-bg);
  font-size: 1.2rem;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.project-link:hover, .project-link:focus {
  background-color: var(--dark-bg);
  color: var(--light-text);
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.project-content {
  padding: 1.5625rem;
}

.project-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 0.625rem;
  color: var(--light-text);
  word-wrap: break-word;
}

.project-category {
  color: var(--accent-color);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin-bottom: 0.9375rem;
}

.project-description {
  color: var(--light-text-secondary);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  margin-bottom: 0.9375rem;
  line-height: 1.6;
  word-wrap: break-word;
  hyphens: auto;
}

.project-description.expanded {
  display: block;
}

.read-more-btn {
  color: var(--accent-color);
  font-size: clamp(0.8rem, 2vw, 0.85rem);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
  text-decoration: underline;
  margin-top: 0.5rem;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.read-more-btn:hover, .read-more-btn:focus {
  color: var(--light-text);
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background-color: var(--card-bg);
  border-radius: 20px;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--light-text-secondary);
  border: 1px solid var(--border-color);
  word-break: break-word;
}

/* Blog Section */
.blog-section {
  padding: 7.5rem 0;
  background-color: var(--dark-bg);
}

.blog-card {
  background-color: var(--dark-surface-2);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.blog-card img {
  width: 100%;
  height: 15.625rem;
  object-fit: cover;
}

.blog-card-content {
  padding: 2rem;
}

.blog-card h3, .blog-card h5 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 1rem;
  color: var(--light-text);
  font-weight: 600;
  word-wrap: break-word;
}

.blog-card p {
  color: var(--light-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.blog-meta, .datebox {
  color: var(--accent-color);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 500;
}

.butbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--dark-bg);
}

.form-control {
  background-color: var(--dark-surface) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--light-text) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: var(--transition);
  width: 100%;
  min-height: 44px;
}

.form-control:focus {
  background-color: var(--hover-bg) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 165, 116, 0.25) !important;
  color: var(--light-text) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--light-text-disabled) !important;
}

/* Responsive Design - Enhanced */

/* Large Desktops and 4K */
@media (min-width: 1400px) {
  :root {
    --container-width: 1320px;
    --section-spacing: 140px;
  }
}

/* Standard Desktop */
@media (max-width: 1200px) {
  :root {
    --container-width: 100%;
    --section-spacing: 100px;
  }
  
  .container {
    padding: 0 2rem;
  }
}

/* Laptop and Small Desktop */
@media (max-width: 992px) {
  :root {
    --section-spacing: 80px;
    --header-height: 70px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center !important;
  }
  .mt-4.d-flex.flex-column.flex-sm-row.gap-3.justify-content-center.justify-content-lg-start {
    align-items: center;
}

  .timeline::before {
    left: 2rem;
  }

  .timeline-content {
    width: calc(100% - 4rem);
    left: 4rem !important;
    margin: 0 !important;
    padding: 2rem;
  }

  .timeline-dot {
    left: 2rem;
    transform: translateX(-50%);
  }

  .timeline-date {
    position: relative;
    top: 0;
    left: 0 !important;
    right: auto !important;
    margin-bottom: 1rem;
    display: inline-block;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-section {
    background-attachment: scroll;
    min-height: 80vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .name-highlight {
    padding: 0.8rem 2rem;
    font-size: 1.5rem;
  }

  .social-icons {
    gap: 0.75rem;
    margin: 2rem 0;
  }

  .social-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }

  .timeline {
    padding: 1rem 0;
  }

  .timeline-content {
    padding: 1.5rem;
    width: calc(100% - 3rem);
    left: 3rem !important;
  }

  .timeline-dot {
    left: 1.5rem;
    width: 0.875rem;
    height: 0.875rem;
  }

  .timeline::before {
    left: 1.5rem;
    width: 2px;
  }

  .btn, .btn-primary, .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    margin: 0.25rem;
    width: 100%;
    max-width: 200px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .project-filters {
    justify-content: center;
    gap: 0.5rem;
  }

  .project-filter {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 576px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }

  .wave-transition svg {
    height: 40px;
  }

  .about-content {
    gap: 2rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .butbox {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .social-icons {
    margin: 1.5rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .name-highlight {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
  }

  .section-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .project-content {
    padding: 1rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .skill-category {
    padding: 1rem;
  }

  .blog-card-content {
    padding: 1rem;
  }
}

/* Very Small Screens and Keypad Phones */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .name-highlight {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.9rem;
  }

  .btn, .btn-primary, .btn-outline {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .project-filter {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* iPhone SE and similar small screens */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .name-highlight {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .social-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .social-icons {
    margin: 1rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar, .mobile-overlay, .social-icons {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .main-content {
    padding-top: 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus States for Accessibility */
.btn:focus, .btn-primary:focus, .btn-outline:focus,
.project-filter:focus, .form-control:focus,
.social-icon:focus, .project-link:focus,
.read-more-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.pt-3 { padding-top: 1rem; }
.pb-3 { padding-bottom: 1rem; }

/* Responsive Utilities */
@media (max-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
}

@media (min-width: 768px) {
  .d-md-block { display: block; }
}

@media (max-width: 992px) {
  .d-lg-none { display: none; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none; }
  .d-lg-block { display: block; }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .project-card:hover {
    transform: none;
  }
  
  .project-overlay {
    opacity: 1;
    background-color: rgba(196, 165, 116, 0.6);
  }
  
  .social-icon:hover {
    transform: none;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.bg-white {
    --bs-bg-opacity: 1;
    background-color: rgb(54 47 19) !important;
}
.hero-pro-title.small {
    font-size: 2.6rem;
}

.iconbox11{

    text-align: center;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}
/* Enhanced Scroll Behavior */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}


/* ================= HERO LINE ================= */

.hero-line {
    position: relative;
    padding: 110px 0 90px;
    background: #0b0b0b;
    overflow: hidden;
}

/* Animated background glow */
.hero-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(231,225,176,0.18), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(162,155,254,0.18), transparent 40%);
    animation: bgMove 6s ease-in-out infinite alternate;
}

/* Content wrapper */
.hero-line-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: auto;
    text-align: center;
    animation: heroIn 0.8s ease-out forwards;
}

/* Badge */
.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid rgba(231,225,176,0.6);
    color: #e7e1b0;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

/* Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.hero-title span {
    background: linear-gradient(135deg, #e7e1b0, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.blog-hero-subtitle {
    font-size: 1.25rem;
    color: #cfd8dc;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Divider */
.hero-divider {
    width: 140px;
    height: 3px;
    margin: auto;
    background: linear-gradient(to right, #e7e1b0, #a29bfe);
    animation: dividerGrow 0.8s ease forwards;
}

/* ================= ANIMATIONS ================= */

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dividerGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 140px;
        opacity: 1;
    }
}

@keyframes bgMove {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .hero-line {
        padding: 85px 0 65px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .blog-hero-subtitle {
        font-size: 1.05rem;
    }
}