:root {
  font-size: 16px;
  --text-primary: #888888;
  --text-secondary: #ffffff;
  --bg-primary: #0a192f;
  --bg-secondary: #0a192f;
  --transition-speed: 600ms;
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  padding: 0;
}

html, body {
  background-color: white;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Mobile scroll padding adjustment */
@media only screen and (max-width: 768px) {
  html, body {
    scroll-padding-top: 20px;
    scroll-padding-bottom: 100px;
  }
}

body::-webkit-scrollbar {
  width: 0.25rem;
}

body::-webkit-scrollbar-track {
  background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
  background: #6649b8;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #6649b8, #00d4ff, #6649b8);
  background-size: 200% 100%;
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 2px 10px rgba(102, 73, 184, 0.5);
}

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

/* Hide scrollbar on mobile */
@media only screen and (max-width: 600px) {
  body::-webkit-scrollbar {
    width: 0;
  }
}

main {
  margin-left: 92px;
  margin-top: 0;
  padding: 1rem;
  background-position: center;
  background: #ffffff;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

@media only screen and (max-width: 768px) {
  main {
    margin-left: 0;
    margin-top: 0;
    padding-bottom: 96px;
  }
}

/* ============================================
   ULTRA-MINIMAL TRANSPARENT NAVBAR
   ============================================ */

/* Desktop: Side Navbar */
.navbar {
  position: fixed;
  top: 24px;
  left: 24px;
  bottom: 24px;
  width: 52px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 26px;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 8px 32px rgba(102, 126, 234, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-left: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px;
  gap: 6px;
}

/* Brand/Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
  padding: 6px;
  margin-bottom: 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand:hover {
  transform: scale(1.1);
}

.navbar-brand::before,
.navbar-brand::after {
  display: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.brand-text {
  font-size: 16px;
  letter-spacing: -0.5px;
}

/* Navigation Links */
.navbar-nav {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3px;
  width: 100%;
  flex: 1;
  justify-content: center;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 3px;
  color: #1f2937;
  text-decoration: none;
  font-size: 8px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link::before {
  display: none;
}

.nav-link i {
  font-size: 18px;
  transition: all 0.2s ease;
}

.nav-link span {
  font-size: 8px;
  line-height: 1;
  opacity: 0.8;
}

.nav-link:hover {
  background: rgba(102, 126, 234, 0.12);
  color: #667eea;
  transform: scale(1.05);
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link:active {
  transform: scale(0.98);
}

/* Active state */
.nav-link.active {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
}

.nav-link.active i {
  color: #667eea;
}

/* Theme Toggle Button - Hidden */
.theme-toggle {
  display: none;
}

/* Mobile: Bottom Navbar */
@media only screen and (max-width: 768px) {
  .navbar {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    height: 64px;
    border-radius: 32px;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.12),
      0 12px 48px rgba(102, 126, 234, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.8),
      inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    border-top: 1.5px solid rgba(255, 255, 255, 0.6);
    border-left: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-container {
    flex-direction: row;
    padding: 8px 16px;
    gap: 0;
    justify-content: space-around;
  }

  .navbar-brand {
    display: none;
  }

  .navbar-nav {
    flex-direction: row;
    gap: 0;
    flex: 1;
    justify-content: space-around;
  }

  .nav-item {
    flex: 1;
    max-width: 72px;
  }

  .nav-link {
    padding: 8px 4px;
    gap: 3px;
  }

  .nav-link i {
    font-size: 22px;
  }

  .nav-link span {
    font-size: 9px;
  }

  .theme-toggle {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
  .navbar {
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 60px;
  }

  .navbar-container {
    padding: 6px 12px;
  }

  .nav-link {
    padding: 6px 4px;
  }
  
  .nav-link i {
    font-size: 20px;
  }
  
  .nav-link span {
    font-size: 8px;
  }
}

/* Dark Mode Styles */
.dark .navbar {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 8px 32px rgba(102, 126, 234, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-left: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .navbar-brand {
  color: #1f2937;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .nav-link {
  color: #1f2937;
}

.dark .nav-link:hover {
  background: rgba(102, 126, 234, 0.12);
  color: #667eea;
}

.dark .nav-link:hover i {
  color: #818cf8;
}

.dark .nav-link.active {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
}

.dark .nav-link.active i {
  color: #667eea;
}

.dark .theme-toggle {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
}

.dark .theme-toggle::after {
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);
}

.dark .theme-toggle:hover {
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.6);
}

/* Solar Mode Styles */
.solar .navbar {
  background: rgba(254, 252, 232, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 24px rgba(245, 158, 11, 0.15),
    0 8px 32px rgba(251, 191, 36, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(245, 158, 11, 0.1);
  border-top: 1.5px solid rgba(255, 255, 255, 0.8);
  border-left: 1.5px solid rgba(254, 243, 199, 0.8);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  border-right: 1px solid rgba(245, 158, 11, 0.15);
}

.solar .navbar-brand {
  color: #92400e;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.solar .nav-link {
  color: #78716c;
}

.solar .nav-link:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #ea580c;
}

.solar .nav-link:hover i {
  color: #ea580c;
}

.solar .nav-link.active {
  background: rgba(245, 158, 11, 0.2);
  color: #ea580c;
}

.solar .nav-link.active i {
  color: #ea580c;
}

.solar .theme-toggle {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.solar .theme-toggle::after {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
}

.solar .theme-toggle:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

/* Theme Icon Visibility */
.theme-icon {
  display: none;
}

/* Light theme shows moon icon */
body:not(.dark):not(.solar) #lightIcon {
  display: block;
}

/* Dark theme shows sun icon */
.dark #solarIcon {
  display: block;
}

/* Solar theme shows sunglasses icon */
.solar #darkIcon {
  display: block;
}

/* Remove old navbar styles - keeping only what's needed */
.link-text {
  display: inline;
}

.logo {
  display: none;
}

.logo svg,
.logo-text {
  display: none;
}


.dark {
  --text-primary: #888888;
  --text-secondary: #ffffff;
  --bg-primary: #0c2131;
  --bg-secondary: #163149;
}

.light {
  --text-primary: #1f1f1f;
  --text-secondary: #000000;
  --bg-primary: #ffffff;
  --bg-secondary: #e4e4e4;
}

.solar {
  --text-primary: #576e75;
  --text-secondary: #35535c;
  --bg-primary: #fdf6e3;
  --bg-secondary: #f5e5b8;
}

.theme-icon {
  display: none;
}

.dark #darkIcon {
  display: block;
}

.light #lightIcon {
  display: block;
}

.solar #solarIcon {
  display: block;
}

header {
  background: url("../images/bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100vh;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

/* Gradient overlay for header */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.3) 0%, rgba(25, 55, 100, 0.2) 50%, rgba(10, 25, 47, 0.3) 100%);
  z-index: 1;
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.2;
  }
}

/* Ensure content appears above overlay */
header > * {
  position: relative;
  z-index: 3;
}

/* Particles Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}


.biplaba-intro-heading {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.biplaba-intro-heading p {
  margin: 0;
}

.biplaba-intro-heading p.gratitude {
  padding-top: 7%;
  color: rgb(11, 77, 49);
  font-size: 1.2rem;
  animation: fadeInDown 1.2s ease-out;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.biplaba-intro-heading p.biplaba-name {
  font-weight: bold;
  text-transform: uppercase;
  color: #0c2131;
  font-size: 1.9rem;
  letter-spacing: 5px;
  animation: floatName 3s ease-in-out infinite;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.9), 2px 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes floatName {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.output {
  text-align: center;
  color: #083b83;
  width: 90%;
  margin: auto;
  letter-spacing: 2px;
  padding-top: 20px;
}

h2.cursor {
  letter-spacing: 2px;
  color: #0b4368;
}

h2.my-desc {
  letter-spacing: 2px;
  color: #0b4368;
  font-weight: normal;
  font-size: 1.3rem;
  font-family: "Courier New", Courier, monospace;
  animation: fadeIn 2s ease-out;
  text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

p.cursor::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  background-color: #a3a3a3;
  animation-name: blink;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
}

h2.cursor::after {
  height: 24px;
  width: 5px;
}

p.cursor::after {
  height: 13px;
  width: 2px;
}

/* Logo Flip Card Container */
.logo-flip-container {
  width: 150px;
  height: 150px;
  perspective: 1000px;
  cursor: pointer;
  margin: 0 auto;
}

.logo-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.logo-flip-container.flipped .logo-flip-inner {
  transform: rotateY(180deg);
}

.logo-flip-front,
.logo-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-flip-back {
  transform: rotateY(180deg);
}

img.bips_logo {
  /* padding: 10px; */
  border-radius: 50%;
  border: 1px solid #0c2131;
  height: 150px;
  width: 150px;
  animation: logoFloat 5s ease-in-out infinite, mymove 5s infinite;
  box-shadow: 1px 1px 2px #0c2131, 0 0 25px #0c2131, 0 0 5px #0c2131;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.bips_logo.cartoon-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  border: 1px solid #0c2131;
  border-radius: 50%;
  height: 150px;
  width: 150px;
  animation: logoFloat 5s ease-in-out infinite, mymove 5s infinite;
  box-shadow: 1px 1px 2px #0c2131, 0 0 25px #0c2131, 0 0 5px #0c2131;
}

img.bips_logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 1px 1px 4px #0c2131, 0 0 35px #0c2131, 0 0 15px #0c2131;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

.header .span,
.about span {
  margin-bottom: 15px !important;
  font-size: 16px !important;
  display: inline-block !important;
}

@media screen and (max-width: 820px) {
  .biplaba-intro-heading p.gratitude {
    padding-top: 15%;
    color: rgb(11, 77, 49);
    font-size: 1.2rem;
  }
  .biplaba-intro-heading p.biplaba-name {
    font-weight: bold;
    text-transform: uppercase;
    color: #0c2131;
    font-size: 2.5rem;
    letter-spacing: 5px;
  }
}

@keyframes mymove {
  25% {
    border-color: #0c2131;
  }
  50% {
    border-color: #122f46;
  }
  75% {
    border-color: #173d5a;
  }
}

/* Scroll Reveal Animation */
.about-section,
.project-section,
#skills,
.contact-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-section.reveal-enabled,
.project-section.reveal-enabled,
#skills.reveal-enabled,
.contact-section.reveal-enabled {
  opacity: 0;
  transform: translateY(50px);
}

.about-section.reveal-active,
.project-section.reveal-active,
#skills.reveal-active,
.contact-section.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced CTA Button Styles */
.cta-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeIn 2.5s ease-out;
}

.cta-button {
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cta-button.primary {
  background: linear-gradient(135deg, #6649b8 0%, #4834a6 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(102, 73, 184, 0.4);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(102, 73, 184, 0.6);
}

.cta-button.secondary {
  background: transparent;
  color: #0c2131;
  border: 2px solid #0c2131;
  box-shadow: 0 4px 15px rgba(12, 33, 49, 0.2);
}

.cta-button.secondary:hover {
  background: #0c2131;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(12, 33, 49, 0.4);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

@media screen and (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-button {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6649b8 0%, #4834a6 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(102, 73, 184, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
}

.back-to-top.visible {
  display: flex;
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(102, 73, 184, 0.6);
}

.back-to-top:active {
  transform: translateY(-2px);
}

@media only screen and (max-width: 600px) {
  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  49% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ============================================
   MODERN ABOUT SECTION
   ============================================ */

.about-section {
  padding: 50px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6649b8, #00d4ff, #6649b8);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

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

/* Header Section */
.about-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.about-title {
  color: #163149;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #6649b8, #00d4ff);
  border-radius: 2px;
}

.about-subtitle {
  color: #818181;
  font-size: 1rem;
  margin-top: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Content Grid */
.about-content-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}

/* Left Column */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Profile Card */
.about-profile-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(102, 73, 184, 0.15);
}

.profile-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Flip Card Container */
.profile-flip-container {
  width: 100px;
  height: 100px;
  perspective: 1000px;
  cursor: pointer;
}

.profile-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.profile-flip-container.flipped .profile-flip-inner {
  transform: rotateY(180deg);
}

.profile-flip-front,
.profile-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-flip-back {
  transform: rotateY(180deg);
}

.profile-image-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid #6649b8;
  box-shadow: 0 8px 24px rgba(102, 73, 184, 0.3);
  animation: float 3s ease-in-out infinite;
  object-fit: cover;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f0fdf4;
  border-radius: 16px;
  font-size: 0.8rem;
  color: #16a34a;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s ease-in-out infinite;
}

/* Stats Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(102, 73, 184, 0.15);
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
}

.stat-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #163149;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-label {
  font-size: 0.7rem;
  color: #818181;
  line-height: 1.2;
}

/* Info List */
.about-info-list {
  background: white;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.info-item:hover {
  background: #f8f9fa;
}

.info-icon {
  color: #6649b8;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.info-text {
  color: #163149;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Right Column */
.about-right {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* CTA Buttons */
.about-cta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.cta-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.cta-primary {
  background: linear-gradient(135deg, #6649b8, #00d4ff);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(102, 73, 184, 0.3);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 73, 184, 0.4);
  background: linear-gradient(135deg, #5538a7, #00bddf);
}

.cta-secondary {
  background: white;
  color: #163149;
  border: 2px solid #163149;
}

.cta-secondary:hover {
  background: #163149;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 49, 73, 0.3);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-left {
    order: 2;
  }

  .about-right {
    order: 1;
  }

  .about-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .about-section {
    padding: 40px 16px;
  }

  .about-header {
    margin-bottom: 30px;
  }

  .about-title {
    font-size: 1.7rem;
  }

  .about-subtitle {
    font-size: 0.95rem;
  }

  .about-right {
    padding: 20px;
  }

  .about-story {
    gap: 20px;
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .about-cta {
    flex-direction: column;
  }

  .section-heading {
    font-size: 1.1rem;
  }

  .story-text {
    font-size: 0.9rem;
  }
}

.timeline:hover {
  color: rgb(32, 64, 102);
}

.timeline {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 24px;
  color: #0c2131;
  text-decoration: none;
  border: 2px solid #0c2131;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background: transparent;
}

.timeline:hover {
  color: #ffffff;
  background: #0c2131;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 33, 49, 0.3);
}

.project-section {
  background-image: url("../images/project.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  margin-top: 40px;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.project-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6649b8, #00d4ff, #6649b8);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

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

.project-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.project-title {
  color: #b6b6b6;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.project-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #6649b8, #00d4ff);
  border-radius: 2px;
}

.project-subtitle {
  color: #d0d0d0;
  font-size: 1rem;
  margin-top: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.project-heading h1 {
  text-align: center;
  text-transform: uppercase;
  color: #b6b6b6;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1.7rem;
}

.project {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  padding: auto;
}

@keyframes draw-left {
  0% {
    opacity: 0;
    width: 0px;
    left: 75%;
  }
  50% {
    opacity: 1;
    left: 25%;
    width: 200px;
  }
  100% {
    opacity: 0;
    width: 0px;
    left: 25%;
  }
}

@keyframes draw-right {
  0% {
    opacity: 0;
    width: 0px;
  }
  50% {
    opacity: 1;
    width: 200px;
  }
  100% {
    opacity: 0;
    width: 0px;
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 820px) {
  .project {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
}

/* contact section */

.footer {
  background: #102a3f;
  padding: 0.4rem 0; /* reduce vertical footprint */
}

.contact-section {
  margin-top: 4%; /* tighter spacing above footer */
  text-align: center;
}

.inner-contact-section {
  width: 80%;
  margin: auto;
}

.contact-section hr {
  margin-top: -2%;
  width: 50%;
  border-top: 5px solid #ffffff;
}

.contact-heading {
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  padding-top: 10px;
}

.contact-heading h3 {
  color: #ffffff;
}

.contact-description p {
  color: #b6b6b6;
  letter-spacing: 1px;
}

.contact-description p a {
  text-decoration: none;
  color: #b6b6b6;
}

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

.social div {
  display: flex;
  list-style-type: none;
}

.social div a i.fb {
  color: rgb(121, 121, 121);
}

.social div a i.fb:hover {
  color: #5183e6;
}

.social div a i.git {
  color: rgb(121, 121, 121);
}

.social div a i.git:hover {
  color: #9266d4;
}

.social div a i.in {
  color: rgb(121, 121, 121);
}

.social div a i.in:hover {
  color: #1797d3;
}

.social div a i.insta {
  color: rgb(121, 121, 121);
}

.social div a i.insta:hover {
  color: #db33a6;
}

.social div a i.mail {
  color: rgb(121, 121, 121);
}

.social div a i.mail:hover {
  color: #fa4939;
}

.social div a i.whatsapp {
  color: rgb(121, 121, 121);
}

.social div a i.whatsapp:hover {
  color: #25d366;
}

.social a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  text-decoration: none;
  transition: cubic-bezier(0.95, 0.32, 0.37, 0.1 0.31);
}

@media screen and (max-width: 820px) {
  .social {
    padding-bottom: 30%;
  }
}
