
/* =========================
   RESET & VARIABLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #ff8c00;
    --deep-black: #02030a;
}

/* =========================
   BODY (DARKER)
========================= */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #fff;
    background:
        radial-gradient(ellipse at bottom, rgba(0,0,30,.9), var(--deep-black) 75%),
        #02030a;
    overflow-x: hidden;
}

/* =========================
   UNIVERSE BACKGROUND (MORE STARS)
========================= */
.stars, .stars2, .stars3, .stars4 {
    position: fixed;
    inset: -50%;
    pointer-events: none;
    animation: drift linear infinite;
}

.stars {
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 140px 60px, rgba(200,200,255,.7), transparent);
    background-size: 120px 120px;
    animation-duration: 120s;
}
.stars2 {
    background-image:
        radial-gradient(2px 2px at 60px 60px, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 200px 140px, rgba(255,140,0,.6), transparent);
    background-size: 240px 240px;
    animation-duration: 180s;
}
.stars3 {
    background-image:
        radial-gradient(3px 3px at 120px 120px, rgba(255,255,255,.7), transparent),
        radial-gradient(3px 3px at 320px 260px, rgba(112,128,144,.8), transparent);
    background-size: 420px 420px;
    animation-duration: 260s;
}
.stars4 {
    background-image:
        radial-gradient(1px 1px at 50px 80px, rgba(180,180,255,.35), transparent),
        radial-gradient(1px 1px at 180px 200px, rgba(255,255,255,.25), transparent);
    background-size: 600px 600px;
    animation-duration: 320s;
}

@keyframes drift {
    0% { transform: translate(0,0); }
    50% { transform: translate(-500px,350px); }
    100% { transform: translate(0,0); }
}

/* =========================
   NEBULA (SUBTLE)
========================= */
.nebula {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,140,0,.12), transparent 65%),
        radial-gradient(circle at 70% 60%, rgba(90,110,160,.15), transparent 70%);
    animation: pulse 16s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%,100% { opacity: .65; }
    50% { opacity: .9; }
}

/* =========================
   GLASSMORPHISM
========================= */
.glass {
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.02),
        0 25px 70px rgba(0,0,0,.6);
    transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.glassBackground {
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.02),
        0 25px 70px rgba(0,0,0,.6);
    transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}

.glass:hover {
    border-color: rgba(255,140,0,.7);
    box-shadow:
        0 0 0 1px rgba(255,140,0,.45),
        0 0 28px rgba(255,140,0,.35),
        0 40px 90px rgba(0,0,0,.75);
    transform: translateY(-6px);
}

.glass-1 {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 25px 70px rgba(0, 0, 0, 0.6);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    width: 100%;
    height: 160px;

    display: flex;           /* Make it flex container */
    flex-direction: column;  /* Stack h2 and p vertically */
    justify-content: center; /* Center vertically */
    align-items: center;     /* Center horizontally */
    text-align: center;      /* Center multi-line text */
}



@media (max-width: 768px) {
    .glass:hover { transform: none; }
    .glass:active {
        border-color: rgba(255,140,0,.85);
        box-shadow: 0 0 30px rgba(255,140,0,.45);
        transform: scale(.98);
    }
}

/* =========================
   MAIN CONTENT
========================= */
.main {
    position: relative;
    z-index: 5;
    padding: 1.5rem;
}

.cv-profile { overflow: hidden; }

.navbar { background: rgba(0,0,0,.55); backdrop-filter: blur(14px); border-radius: 20px; }
.navbar-toggler-icon { filter: invert(1); }
.nav-link:hover { color: var(--orange) !important; }

.service-item {
    display: flex; gap: 1rem; padding: 1rem;
    border-radius: 14px; border: 1px solid transparent;
    transition: all .35s ease;
}
.service-item:hover {
    border-color: rgba(255,140,0,.55);
    box-shadow: 0 0 18px rgba(255,140,0,.3);
    transform: translateX(6px);
}

/* =========================
   MOBILE PERFORMANCE
========================= */
@media (max-width: 768px) {
    .stars, .stars2, .stars3, .stars4 { animation: none; }
}

/* =========================
   FOOTER
========================= */
footer.footer a:hover { text-decoration: underline; }

.service-card {
    background: rgba(0, 0, 20, 0.65);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    border-color: rgba(255,140,0,.55);
    box-shadow: 0 0 18px rgba(255,140,0,.3);
    transform: translateY(-4px);
}

.service-icon {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-tab {
    border-radius: 12px;
    transition: all .3s ease;
}
.project-tab.active {
    background: #ff8c00;
    color: #02030a;
    border-color: #ff8c00;
}
.project-tab:hover {
    background: rgba(255,140,0,.55);
    color: #ff8c00;
}

.project-card .glass {
    transition: transform .3s ease, box-shadow .3s ease;
}
.project-card .glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(255,140,0,.3);
}

.contact-me {
  position: relative;
  z-index: 5;
  min-height: 90vh;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Glass Form */
.contact-form {
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  transition: all 0.4s ease;
}
.contact-form:hover {
  border-color: rgba(255,140,0,0.7);
  box-shadow: 0 0 28px rgba(255,140,0,0.35), 0 40px 90px rgba(0,0,0,0.75);
  transform: translateY(-6px);
}
.contact-form h2 {
  color: var(--orange);
  margin-bottom: 2rem;
  font-weight: 600;
}
.contact-form .form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #fff;
  padding: 0.8rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ffffff;
    opacity: 1; /* Ensures full opacity in some browsers */
}

/* Vendor prefixes for older browsers */
.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
    color: #ffffff;
}

.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder {
    color: #ffffff;
    opacity: 1;
}

.contact-form input:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder {
    color: #ffffff;
}

.contact-form input:-moz-placeholder,
.contact-form textarea:-moz-placeholder {
    color: #ffffff;
    opacity: 1;
}

.contact-form .form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(255,140,0,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Gradient Send Button */
.btn-send {
  background: linear-gradient(90deg, #ff9900, #ff9900);
  color: #fff;
  border-radius: 12px;
  border: none;
  padding: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.btn-send:hover {
  background: linear-gradient(90deg, #ff5500, #ff5500);
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.5);
}

/* Direct Contact Cards */
.direct-contact .contact-card {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  gap: 1rem;
  transition: all 0.3s ease;
}
.direct-contact .contact-card i {
  font-size: 1.5rem;
  color: var(--orange);
}
.direct-contact .contact-card:hover {
  background: rgba(255,140,0,0.1);
  box-shadow: 0 0 12px rgba(255,140,0,0.3);
}

/* Availability */
.availability {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  font-size: 0.9rem;
}
.availability ul {
  margin: 0;
  padding-left: 1rem;
  list-style-type: disc;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-me { padding-top: 3rem; padding-bottom: 3rem; }
  .contact-form { margin-bottom: 2rem; }
}

/* ABOUT ME */
.about-me {
  position: relative;
  z-index: 5;
  padding: 5rem 1rem;
}

.about-header h2 {
  color: #ff8000;
  font-weight: 600;
  letter-spacing: 1px;
}

.about-header .subtitle {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* STORY */
.story-card {
  position: relative;
}

.section-title {
  color: #ff8000;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* TIMELINE */
.timeline {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#ff8000, transparent);
}

.timeline li {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

.timeline .dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: #ff8000;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,212,255,0.7);
}

/* PROFILE IMAGE */
.profile-frame img {
  transition: transform 0.4s ease;
}

.profile-frame:hover img {
  transform: scale(1.03);
}

/* PHILOSOPHY */
.philosophy-card h6 {
  color: #ff8c00;
  margin-bottom: 0.5rem;
}

.philosophy-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}


/* Highlight words with interactive hover effect */
  .highlight {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffc107;
  }

  .highlight::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffc107;
    transition: width 0.3s ease;
  }

  .highlight:hover {
    color: #fff;
  }

  .highlight:hover::after {
    width: 100%;
  }

  /* Rotating roles typing effect */
  .rotating-role {
    display: inline-block;
    font-weight: 600;
    color: #ffc107;
    border-right: 2px solid #ffc107;
    padding-right: 3px;
    white-space: nowrap;
    overflow: hidden;
    animation: blinkCursor 0.7s steps(1) infinite;
  }

  @keyframes blinkCursor {
    0%, 50%, 100% { border-color: #ffc107; }
    25%, 75% { border-color: transparent; }
  }

  /* Animate.css import */
  @import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');


/* ====== SCROLL NAVBAR (GLASS & TRANSPARENT) ====== */
.scroll-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.035); /* subtle transparent glass */
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(-120%);
    opacity: 0;
}

.scroll-nav.show {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 0 28px rgba(255,140,0,0.35), 0 40px 90px rgba(0,0,0,0.75);
}

.section-hidden {
    visibility: hidden;
}

/* ====== Navbar Links Glowing on Hover ====== */
.scroll-nav .nav-link {
    color: #fff;
    transition: all 0.4s ease;
    position: relative;
}

.scroll-nav .nav-link:hover {
    color: #ff8c00; /* orange glow */
    text-shadow: 0 0 6px rgba(255,140,0,0.7), 0 0 12px rgba(255,140,0,0.5);
}

/* ====== Buttons Glowing ====== */
.scroll-nav .btn {
    background: linear-gradient(90deg, #ff9900, #ff9900);
    color: #fff;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.scroll-nav .btn:hover {
    background: linear-gradient(90deg, #ff5500, #ff5500);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.5);
}

/* ====== Dropdown Menu Glass Effect ====== */
.scroll-nav .dropdown-menu {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.scroll-nav .dropdown-menu a:hover, .scroll-nav .nav-item a.active {
    color: #ff8c00;
    border: 1px solid #ff8c00;
    border-radius:10px;
    padding:5px;
    text-shadow: 0 0 6px rgba(255,140,0,0.7), 0 0 12px rgba(255,140,0,0.5);
}
.scroll-nav .nav-item a.high {
  color: #fff;
  border: 1px solid #ff8c00;
  background: #ff8c00;
  border-radius:10px;
  padding:5px 15px;
  text-shadow: 0 0 6px rgba(255,140,0,0.7), 0 0 12px rgba(255,140,0,0.5);
}
.scroll-nav .nav-item a.high:hover {
  border: 1px solid #ff8c00da;
  background: #ff8c00da;
}
.tech-icon {
  animation: float 6s ease-in-out infinite;
}
.tech-icon:hover {
  transform: scale(1.08);
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =========================
   TECH STACK HEADER LEFT-ALIGNED
========================= */
.tech-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  overflow: hidden;
}

/* Text container */
.tech-text {
  display: flex;
  flex-direction: column;
}

/* Title */
.tech-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin: 0;
  position: relative;
}

/* Orange underline spans 100% */
.tech-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;         /* Full width underline */
  height: 2px;
  background: var(--orange);
  transition: all 0.3s ease;
}

/* Hover effect for title */
.tech-title:hover .tech-accent::after {
  height: 3px;
  background: linear-gradient(90deg, #ff9900, #ff5500);
}

/* Subtitle */
.tech-subtitle {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.75;
}


/* Floating animation */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Glass navbar brand */
.glass-brand {
  padding: 0.5rem 1rem;
  color: #ff8c00;
  text-decoration: none;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-brand:hover {
  border-color: rgba(255, 140, 0, 0.7);
  box-shadow:
    0 0 12px rgba(255, 140, 0, 0.5),
    0 15px 40px rgba(0, 0, 0, 0.75);
  transform: translateY(-3px) scale(1.02);
}

/* Logo image */
.glass-brand .logo-wrapper img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-brand:hover .logo-wrapper img {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.5);
}

/* Brand text animation */
.glass-brand .brand-text {
  position: relative;
  font-weight: 700;
  color: #ff8c00;
  font-size: 1.25rem;
  overflow: hidden;
}

.glass-brand .brand-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff9900, #ff5500);
  transition: all 0.3s ease;
}

.glass-brand:hover .brand-text::after {
  height: 3px;
}

/* Small floating effect */
.glass-brand {
  animation: floatBrand 6s ease-in-out infinite;
}

@keyframes floatBrand {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Brand text words */
.brand-text {
  display: flex;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: #ff8c00;
  position: relative;
}

/* Individual word style */
.brand-text .word {
  position: relative;
  transition: all 0.3s ease;
}

/* Second word accent */
.brand-text .accent-word {
  color: #ffc107;
}

/* Hover underline effect per word */
.brand-text .word::after,
.brand-text .accent-word::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ff9900, #ff5500);
  transition: width 0.3s ease;
}

/* Grow underline on hover */
.glass-brand:hover .brand-text .word::after,
.glass-brand:hover .brand-text .accent-word::after {
  width: 100%;
}

/* Hover color animation */
.glass-brand:hover .brand-text .word {
  color: #fff;
}

.glass-brand:hover .brand-text .accent-word {
  color: #ffdd33;
}

/* Optional floating effect */
.brand-text {
  animation: floatBrandText 6s ease-in-out infinite;
}

@keyframes floatBrandText {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* =========================
   RELOAD / PAGE TRANSITION PROGRESS BAR
========================= */
#reload-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff9900, #ff5500);
    z-index: 9999;
    transition: width 0.2s ease, opacity 0.4s ease;
    opacity: 0;
}
