/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* GLOBAL DESIGN TOKENS */
:root{
  --white: rgb(255, 255, 255);
  --bg-dark: rgb(15, 23, 42);
  --bg-light: rgb(248, 250, 252);
  --accent: rgb(56, 189, 248);
  --accent-light: rgb(14, 165, 233);
  --accent-dark: rgb(2, 132, 199);
  --card-dark: rgba(30,41,59,.6);
  --border: rgba(56,189,248,.2);
}

/* RESET */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body{
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 20% 30%, rgba(56,189,248,0.15), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(59,130,246,0.1), transparent 40%),
              var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
  min-width: 360px;
}

/* SUBTLE ANIMATION */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(56,189,248,.08), transparent 45%);
  background-size: 120% 120%;
  animation: moveBg 14s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

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

body.light{
  background: var(--bg-light);
  color: var(--bg-dark);
}

/* NAVBAR */

.navbar-brand{
  color: var(--white);
  font-weight:700;
}

.navbar-brand:hover{color: var(--accent);}
.brand-accent{color: var(--white);}

.navbar{
  padding: 20px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.navbar-toggler i{
  font-size: 1.6rem;
  transition: all .25s ease;
}

.navbar-toggler:focus{box-shadow: none;}

.navbar-toggler{
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}

.navbar-toggler:focus,
.navbar-toggler:active{
  outline: none;
  box-shadow: none !important;
}

.custom-navbar{
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56,189,248,0.2);
}

/* MENU */

.nav-link{
  color: var(--white) !important;
  position: relative;
  transition: 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.nav-link.active{color: var(--accent) !important;}

.nav-link::after{
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--accent);
  bottom: -4px;
  left: 0;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after{width: 100%;}

#theme-toggle{
  background-color: transparent;
  border: none;
}

/* NAVBAR LIGHT */
body.light .custom-navbar{
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

body.light .navbar-brand,
body.light .nav-link,
body.light #theme-toggle,
body.light .navbar-toggler i{
  color:var(--bg-dark) !important;
}

/* HOVER EFFECT */
.nav-item a::after{
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-item a:hover::after{width: 100%;}

/* LOADER */
#loader{
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-bar{
  width: 200px;
  height: 3px;
  background: rgb(30, 41, 59);
  overflow: hidden;
  margin-top: 10px;
  border-radius: 10px;
}

.loader-bar span{
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: loading 1.2s infinite;
}

@keyframes loading{
  0% {transform: translateX(-100%);}
  100% {transform: translateX(250%);}
}

/* HERO */
.hero{padding: 140px 0 80px;}

.hero-title{
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-title span{color: var(--accent);}

.hero-subtitle{
  margin-top: 20px;
  font-size: 18px;
  opacity: 0.8;
}

.hero-actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cv .btn-social{
  border-color: rgb(34, 197, 94);
  color: rgb(34, 197, 94);
}

.hero-cv .btn-social:hover{
  background: rgb(34, 197, 94);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(34,197,94,0.4);
}

.btn-cv{
  position: relative;
  overflow: hidden;
}

/* ICONS */
.btn-cv i{transition: all 0.3s ease;}

/* INICIAL STATE */
.btn-cv .icon-hover{
  opacity: 0;
  transform: translateY(6px);
  position: absolute;
}

/* HOVER */
.btn-cv:hover .icon-default{
  opacity: 0;
  transform: translateY(-6px);
}

.btn-cv:hover .icon-hover{
  opacity: 1;
  transform: translateY(0);
}

.btn-social{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}

.btn-social:hover{
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(56,189,248,0.4);
}

/* HERO IMAGE */
.profile-img-wrapper{
  position: relative;
  display: inline-block;
  padding: 6px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(56,189,248,.5), 0 0 50px var(--border);
  overflow: visible;
  transition: all .5s ease;
}

/* RING LIGHT */
.profile-img-wrapper::before{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,.25);
  pointer-events: none;
  animation: rotateGlow 15s linear infinite;
}

/* HOVER */
.profile-img-wrapper:hover{
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 0 30px rgba(56,189,248,.7), 0 0 80px rgba(56,189,248,.4);
}

.profile-img{
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  transition: all .5s ease;
  cursor: pointer;
}

.profile-img-wrapper:hover .profile-img{transform: scale(1.05);}

/* animação */
@keyframes rotateGlow{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/* SECTIONS */

section {padding: 30px 0px;}

.centered-section {
  max-width: 900px;
  margin: auto;
}

section:not(.hero){position: relative;}

section:not(.hero)::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.3), transparent);
}

.section-heading{
  text-align: center;
  margin: 15px 0px 40px 0px;
}

.section-heading h2{
  font-size: 2.0rem;
  font-weight: 700;
  position: relative;
}

/* ABOUT */

#about{ margin-bottom: 20px;}

.about-card{
  background: var(--card-dark);
  border: 1px solid rgba(56,189,248,.15);
  backdrop-filter: blur(15px);
  padding: 35px;
  border-radius: 18px;
  transition: .4s;
  cursor: pointer;
}

.about-card:hover{
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(56,189,248,.12);
}

.about-intro{
  font-size: 1.05rem;
  line-height: 2;
  text-align: center;
  color: rgba(255,255,255,.8);
}

.about-intro span{
  color: var(--accent);
  font-weight: 700;
}

.about-feature{
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
  padding: 18px;
  border-radius: 12px;
  transition: .3s;
}

.about-feature:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,.03);
}

.about-feature i{
  font-size: 1.8rem;
  color: var(--accent);
}

.about-feature h3{
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 700;
}

.about-feature p{
  margin: 0;
  opacity: .7;
  font-size: .92rem;
}

.about-bottom{
  margin-top: 25px;
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(56,189,248,.15);
  color: var(--accent);
  font-weight: 600;
}

/* ABOUT ICON ANIMATION (ALL MODES) */

.about-feature i{transition: transform .35s ease, color .35s ease;}
.about-feature:hover i{transform:scale(1.15) rotate(-5deg);}

/* ABOUT LIGHT MODE */

body.light .about-card{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.95));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 30px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.8);
}

body.light .about-intro{color: rgb(71, 85, 105);}
body.light .about-intro span{color: var(--accent-dark);}

body.light .about-feature{
  background: rgba(15,23,42,.025);
  border: 1px solid rgba(15,23,42,.06);
}

body.light .about-feature h3{color: var(--bg-dark);}
body.light .about-feature p{color: rgb(100, 116, 139);}
body.light .about-feature i{color: var(--accent-dark);}

body.light .about-bottom{
  border-top: 1px solid rgba(15,23,42,.08);
  color: var(--accent-dark);
}

body.light .about-card:hover{
  transform: translateY(-6px);
  border-color: rgba(14,165,233,.25);
  box-shadow: 0 18px 35px rgba(14,165,233,.10);
}

body.light .about-feature:hover{
  background: var(--white);
  border-color: rgba(14,165,233,.25);
  box-shadow: 0 15px 25px rgba(14,165,233,.08);
}

/* SKILLS */
.skill-category{
  max-width: 1000px;
  margin: auto;
}

.category-title{
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--accent);
  text-align: left;
}

/* SKILL CARDS */
.skill-box{
  background: rgba(30,41,59,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56,189,248,0.2);
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-box:hover{
  transform: translateY(-6px);
  border: 1px solid var(--accent);
  box-shadow: 0 0 25px rgba(56,189,248,0.2);
}

.skill-box:nth-child(even):hover .skill-icon{transform: scale(1.15) rotate(6deg);}
.skill-box:nth-child(odd):hover .skill-icon{transform: scale(1.15) rotate(-6deg);}

/* HEADER WITH ICON */
.skill-header{
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-icon{
  font-size: 32px;
  min-width: 24px;
  color: var(--accent);
}

/* SKILL BAR */
.skill-bar{
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
  opacity: 0;
  transform: scaleX(0.8);
  transition: all 0.3s ease;
}

/* SHOW WHEN HOVERING */
.skill-box:hover .skill-bar{
  opacity: 1;
  transform: scaleX(1);
}

/* MOBILE TAP */
.skill-box.active .skill-bar{
  opacity: 1;
  transform: scaleX(1);
}

/* PROGRESS (blue bar) */
.skill-progress{
  height: 100%;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(56,189,248,0.8);
  width: 0;
  transition: width 0.4s ease;
}

/* LEVELS */
.skill-progress.advanced{width: 100%;}
.skill-progress.intermediate{width: 60%;}
.skill-progress.basic{width: 35%;}

/* TEXT */
.skill-name{
  font-size: 18px;
  font-weight: 600;
}

.skill-level{
  font-size: 13px;
  opacity: 0.6;
  margin-top: 5px;
}

.elementor-icon{
  width: 32px;
  height: 32px;
}

/* LIGHT MODE SKILL-BOX */
body.light .skill-box{background: var(--white);}
body.light .skill-box:hover{box-shadow: 0 0 25px rgba(56,189,248,0.3);}
body.light .skill-bar{background: #e2e8f0;}

/* TIMELINE */
.timeline{
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
}

/* CENTRAL LINE */
.timeline::before{
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ITEM */
.timeline-item{
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

/* LEFT */
.timeline-item.left{
  left: 0;
  text-align: right;
}

/* RIGHT */
.timeline-item.right{
  left: 50%;
  text-align: left;
}

/* CARD */
.timeline-item .content{
  background: rgba(30,41,59,0.6);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(56,189,248,0.2);
  transition: 0.3s;
}

.timeline-item .content:hover{
  border: 1px solid var(--accent);
  box-shadow: 0 0 25px rgba(56,189,248,0.2);
  transform: translateY(-5px);
}

/* DOTS */
.timeline-item::before{
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  top: 30px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(56,189,248,0.8);
}

/* DOTS POSITIONS */
.timeline-item.left::before{right: -8px;}
.timeline-item.right::before{left: -8px;}
.timeline-item.left .content{text-align: left;}
.timeline-item.right .content{text-align: left;}

/* PREVIEW */
.certificate-preview{
  display: flex;
  justify-content: center;
}

.certificate-preview img{
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
  cursor: pointer;
  transition: .4s;
  border: 1px solid rgba(56,189,248,.3);
}

.certificate-preview img:hover{transform: translateY(-3px) scale(1.03);}

/* MODAL */
.certificate-modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.certificate-modal img{
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* CLOSE BUTTON */
.close{
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
}

/* TIMELINE CAROUSEL */

#bluewave-carousel .carousel-inner{
  height: 70vh;
  overflow: hidden;
}

#bluewave-carousel .carousel-item{height: 70vh;}

#bluewave-carousel .carousel-item img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* BLUEWAVE CAROUSEL ARROWS */

#bluewave-carousel .carousel-control-prev-icon,
#bluewave-carousel .carousel-control-next-icon{
  width: 42px;
  height: 42px;
  background-size:100%;
  transform:scale(1.15);
  filter:
    brightness(0)
    saturate(100%)
    invert(49%)
    sepia(84%)
    saturate(1810%)
    hue-rotate(172deg)
    brightness(92%)
    contrast(95%)
    drop-shadow(0 0 6px rgba(14,165,233,.35));
  transition:
    transform .3s ease,
    filter .3s ease;
}

#bluewave-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
#bluewave-carousel .carousel-control-next:hover .carousel-control-next-icon{
  transform:scale(1.3);
  filter:
    brightness(0)
    saturate(100%)
    invert(69%)
    sepia(53%)
    saturate(2500%)
    hue-rotate(165deg)
    brightness(110%)
    contrast(100%)
    drop-shadow(0 0 10px rgba(56,189,248,.55));
}

#bluewave-carousel .carousel-control-prev,
#bluewave-carousel .carousel-control-next{width:10%;}

/* TIMELINE PROJECT PREVIEW */

.timeline-project-preview{
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.timeline-project-preview img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  opacity: .75;
  filter: brightness(.95);
  transition: .5s;
}

.timeline-project-label{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(15,23,42,.95));
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .4px;
}

.timeline-project-label i{
  font-size: 1rem;
  color: var(--accent);
}

.timeline-project-preview:hover img{
  opacity: 1;
  transform: scale(1.05);
}

.project-description{
  opacity: .8;
  font-size: .95rem;
  line-height: 1.6;
  margin-top: 10px;
}

.project-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.project-tags span{
  padding: 6px 10px;
  border-radius: 30px;
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.25);
  font-size: .75rem;
  color: var(--accent);
  cursor: pointer;
  transition:
    transform .3s ease,
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    color .3s ease;
}

.project-tags span:hover{
  transform: translateY(-3px) scale(1.05);
  background: rgba(56,189,248,.16);
  border-color: rgba(56,189,248,.6);
  box-shadow: 0 0 12px rgba(56,189,248,.25);
  color: var(--white);
}

body.light .project-tags span{
  background: rgba(14,165,233,.08);
  border: 1px solid rgba(14,165,233,.18);
  color: var(--accent-dark);
}

body.light .project-tags span:hover{
  background: rgba(14,165,233,.12);
  color: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(14,165,233,.12);
}

/* ==========================
   TIMELINE TYPOGRAPHY
========================== */

.timeline-item h3{
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom:8px;
  font-weight: 700;
  opacity: .9;
}

.timeline-item h4{
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.4;
  transition: color .3s ease, transform .3s ease;
}

.timeline-item .content:hover h4{
  color: var(--accent);
  transform: translateX(3px);
}

.timeline-description,
.project-description{
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
}

/* ==========================
   TIMELINE LIGHT MODE
========================== */

body.light .timeline-description,
body.light .project-description{color: rgb(71, 85, 105);}

body.light .timeline-item .content{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

body.light .timeline-item .content:hover{
  transform: translateY(-5px);
  border-color: rgba(14,165,233,.25);
  box-shadow: 0 18px 35px rgba(14,165,233,.10);
}

body.light .timeline-item h4{color: var(--bg-dark);}
body.light .timeline-item .content:hover h4{color: var(--accent-dark);}
body.light .timeline::before{background: linear-gradient(to bottom, transparent, var(--accent-dark), transparent);}

/* TIMELINE MODAL PREVIEW */

body.light .timeline-project-label{
  background: linear-gradient(transparent, rgba(255,255,255,.95));
  color: var(--bg-dark);
}

/* PROJECTS */

.project-card-box a{
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card{
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30,41,59,.96), rgba(15,23,42,.96));
  border: 1px solid rgba(255,255,255,.05);
  backdrop-filter:blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.03);
  transition: all .5s ease;
  isolation: isolate;
}

.project-card-box .col-12{display:flex;}

.project-card-box .col-12 a{
  width: 100%;
  display: flex;
}

.project-card-box .project-card{width: 100%;}

/* Diagonal Light Effect */
.project-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding:1px;
  background:
  linear-gradient(135deg, rgba(56,189,248,.6), transparent 40%, var(--border));
  opacity: .35;
  pointer-events: none;
  transition: .5s;
}

.project-card:hover::before{opacity: 1;}

.project-card::after{
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  transform: rotate(25deg);
  background:
  linear-gradient(transparent, rgba(255,255,255,.06), transparent);
  transition: 1s;
}

.project-card:hover::after{left:160%;}

.project-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(56,189,248,.15), 0 0 40px rgba(56,189,248,.1);
  border-color: rgba(56,189,248,.25);
}

.project-card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: all .8s ease;
}

.project-card:hover img{
  opacity: 1;
  filter: brightness(1.05);
  transform: scale(1.05);
}

/* PROJECT TEXT PREMIUM */

.project-content{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-type{
  display: inline-block;
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: .85;
}

.project-content h3{
  position: relative;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
  transition: .3s;
}

.project-content h3::after{
  content: "↗";
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-8px);
  display: inline-block;
  transition: .3s;
}

.project-card:hover h3::after{
  opacity: 1;
  transform: translateX(0);
}

.project-content p{
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin-bottom: 0;
  flex-grow: 1;
}

/* HOVER */

.project-card:hover h3{
  color: var(--accent);
  transform: translateX(3px);
}

.project-card:first-child{
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

/* ==========================
   PROJECTS LIGHT MODE PREMIUM
========================== */

body.light .project-card{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 25px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.8);
}

body.light .project-card::before{
  background: linear-gradient(135deg, rgba(14,165,233,.35), transparent 40%, rgba(14,165,233,.08));
  opacity: .6;
}

/* SOFT DIAGONAL LIGHT */

body.light .project-card::after{background: linear-gradient(transparent, rgba(14,165,233,.05), transparent);}

/* HOVER */

body.light .project-card:hover{
  transform: translateY(-10px);
  border-color: rgba(14,165,233,.25);
  box-shadow: 0 18px 35px rgba(14,165,233,.12), 0 0 25px rgba(14,165,233,.08);
}

/* IMAGE */

body.light .project-card img{
  filter: brightness(.94) contrast(1.03);
  opacity: .92;
}

body.light .project-card:hover img{
  filter: brightness(1) contrast(1.08);
  transform: scale(1.05);
}

/* TEXT */

body.light .project-type{color: var(--accent-dark);}
body.light .project-content h3{color: var(--bg-dark);}
body.light .project-content p{color: rgb(100, 116, 139);}

/* TITLE HOVER */

body.light .project-card:hover h3{color: var(--accent-dark);}

/* FEATURE FIRST CARD */

body.light .project-card:first-child{
  border-color: rgba(14,165,233,.22);
  box-shadow: 0 15px 35px rgba(14,165,233,.10);
}

/* ==========================
   FADE-IN
========================== */

.fade-in{
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.show{
  opacity: 1;
  transform: translateY(0);
}

/* CONTACT */

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px;
  background: rgba(30,41,59,0.6);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 8px;
  color: var(--white);
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(56,189,248,0.3);
}

.contact-btn{
  background: transparent;
  cursor: pointer;
  justify-content: center;
  margin-top: 10px;
}

.contact-btn:hover{
  background: var(--accent);
  color: var(--bg-dark);
}

.error-msg{
  color: rgb(248, 113, 113);
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.input-error {border-color: rgb(248, 113, 113) !important;}
.input-success {border-color: rgb(34, 197, 94) !important;}

/* CONTACT LIGHT MODE */
body.light .contact-form input,
body.light .contact-form textarea{
  background: var(--white);
  color: var(--bg-dark);
  border: 1px solid rgba(15,23,42,.14);
}

body.light .contact-btn{background: transparent;}

body.light .contact-form input:focus,
body.light .contact-form textarea:focus{
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

body.light input::placeholder,
body.light textarea::placeholder{color: rgb(100, 116, 139);}

/* FOOTER */
footer{
  text-align: center;
  padding: 20px;
}

/* CURSOR BEHAVIOR */

.timeline-project-preview,
.certificate-preview img{cursor: zoom-in;}
#bluewave-carousel img{cursor: grab;}
#bluewave-carousel img:active{cursor: grabbing;}

/* ==========================
  LIGHT MODE IMPROVEMENTS
========================== */

/* ELEGANT HOVER */

body.light .skill-box:hover,
body.light .timeline-item .content:hover,
body.light .project-card:hover{
  border-color: var(--accent-light);
  box-shadow: 0 12px 30px rgba(14,165,233,.10);
}

/* MEDIA QUERIES */

/* NAVBAR PERFECT CENTER */

@media(min-width:992px){

  .navbar .container-fluid{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .navbar-brand{justify-self: start;}
  .navbar-collapse{justify-self: center;}

  .navbar-nav{
    gap: 20px;
    margin: 0 !important;
  }

  #theme-toggle{justify-self: end;}

}

@media(max-width:992px){

  .navbar .container-fluid{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .navbar-nav{padding-top: 10px;}

  .navbar-toggler{
    margin-left: auto;
    order: 2;
  }

  .navbar .d-flex{
    order: 3;
    margin-top: 0 !important;
  }

  .navbar-collapse{
    order: 4;
    width: 100%;
  }

  .hero{
    min-height: calc(100svh - 75px);
    padding: 20px 0;
    display: flex;
    align-items: center;
  }

  .hero .container-fluid{width: 100%;}

  .hero .row{
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin: 0;
  }

  /* remove extra Bootstrap space */
  .hero .col-lg-6{
    margin: 0;
    padding: 0;
  }

  .hero .mb-4{margin-bottom: 0 !important;}
  .profile-img-wrapper{margin-bottom: 10px;}
  .hero-actions{margin-top: 18px;}
}

@media(max-width:768px){

  .timeline::before{
    left: 16px;
    transform: none;
  }

  .timeline-item{
    width: 100%;
    left: 0 !important;
    padding: 20px 20px 20px 50px;
    text-align: left !important;
  }

  .timeline-item.left,
  .timeline-item.right{
    left: 0 !important;
    text-align: left !important;
  }

  .timeline-item.left::before,
  .timeline-item.right::before{
    left: 8px !important;
    right: auto !important;
  }

  #bluewave-carousel .carousel-inner,
  #bluewave-carousel .carousel-item{height:45vh;}

  #bluewave-carousel .carousel-control-prev-icon,
  #bluewave-carousel .carousel-control-next-icon{
    width: 35px;
    height: 35px;
  }

}

@media(max-width: 576px){

  section{padding: 20px 0px;}
  .section-heading{margin: 0px 0px 40px 0px;}

  .section-heading h2{
    font-size: 1.8rem;
    padding-top: 20px;
  }

  .profile-img{
    width: 170px;
    height: 170px;
  }

  .hero-title{font-size: 2.3rem;}
  .hero-subtitle{font-size: 1.04rem;}

  .hero-socials{
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  #about{margin-bottom: 40px;}
  .about-intro{font-size: .89rem;}

  #skills{margin-bottom: 20px;}
  .skill-name{font-size: 15px;}
  .skill-level{font-size: 11px;}
  
  #experience{padding-bottom: 0px;}
  #projects{margin-bottom: 25px;}
  .project-card-box{padding: 0 10px;}

  #bluewave-carousel .carousel-control-prev-icon,
  #bluewave-carousel .carousel-control-next-icon{
    width: 23px;
    height: 23px;
  }

  #bluewave-carousel .carousel-control-prev,
  #bluewave-carousel .carousel-control-next{width: 8%;}
}