*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Share Tech Mono', monospace;
}


/* full-page background image with dark overlay */
body {
  background: url('https://media.giphy.com/media/sRFEa8lbeC7zbcIZZR/giphy.gif') center/cover fixed;
  background-size: cover;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: -1;
  pointer-events: none;
}
/* end body bg */

/* animation roll start*/
.circuit{
  font-size:80px;
  font-weight:bold;

  fill:#0d6efd;           /* solid text color (blue) */

  stroke:rgb(105, 209, 250);           /* dashed moving color */
  stroke-width:4;

  stroke-dasharray:10 10; /* dash pattern */
  stroke-dashoffset:0;

  filter: drop-shadow(0 0 3px #0d6efd)
          drop-shadow(0 0 5px #0d6efd);

  animation:circuitMove 2s linear infinite;
}

@keyframes circuitMove{
  to{
    stroke-dashoffset:-20;
  }
}
/* animation roll end */


/* Tools start */
.tool-card{
    position: relative;
    width: 100%;           
    padding-top: 100%; 
}

.tool-inner{
    position: absolute;
    top:0; right:0; bottom:0; left:0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s, opacity 0.6s;
    transform-style: preserve-3d;
}

.tool-front,
.tool-back-container{
    position: absolute;
    top:0; right:0; bottom:0; left:0;
}

.tool-front{
    width: 100%;
    height: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
}
.tool-front img{
    max-width:80%;
    max-height:80%;
    object-fit:contain;
}

.tool-back-container{
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    backface-visibility: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.6s;
    transform: rotateY(180deg);
}

.tool-back {
    display: flex;      
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow-y: auto;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;        
    hyphens: auto;
    width: 100%;
    height: 100%;
}


/* flip on hover - hide front and reveal back */
.tool-card:hover .tool-inner{
    opacity: 0;
    transform: rotateY(180deg);
}
.tool-card:hover .tool-back-container{
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
}
/* Tools end */


/* experience design */
/* vertical line */

.timeline{
position:relative;
}

.timeline::before{
content:"";
position:absolute;
top:0;
left:50%;
transform:translateX(-50%);
width:3px;
height:100%;
background:#0d6efd;
}

/* timeline item */

.timeline-item{
position:relative;
margin-bottom:60px;
}

/* circle node */

.timeline-dot{
position:absolute;
left:50%;
top:15px;
transform:translateX(-50%);
width:16px;
height:16px;
background:#0d6efd;
border-radius:50%;
box-shadow:0 0 0 4px white;
}

/* cards */

.timeline-card{
background:#212529;
border-radius:10px;
padding:25px;
border-left:4px solid #0d6efd;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
transition:all .3s ease;
}

.timeline-card:hover{
transform:translateY(-6px);
box-shadow:0 10px 25px rgba(13,110,253,.15);
}

/* date badge */

.timeline-date{
background:#0d6efd;
color:white;
font-size:13px;
padding:5px 12px;
border-radius:50px;
display:inline-block;
margin-bottom:10px;
}

/* titles */

.timeline-title{
font-weight:600;
font-size:20px;
margin-bottom:10px;
}

/* alternating sides */

.timeline-left{
text-align:right;
padding-right:60px;
}

.timeline-right{
padding-left:60px;
}

/* responsive */

@media (max-width:768px){
.timeline::before{
left:20px;
}

.timeline-dot{
left:20px;
}

.timeline-left,
.timeline-right{
text-align:left;
padding-left:60px;
padding-right:0;
}
/* Experience Design end */
}


/* animation typewritter start */
.typewriter {
  display: inline-block;
  width: fit-content;
  overflow: hidden;
  border-right: 0.15em solid rgb(25, 28, 28);
  white-space: nowrap;
  font-family: monospace;
  font-size: clamp(3rem, 5vw, 4rem);

animation: typing 2s steps(11, end), blink-caret 0.75s step-end infinite;
}

@keyframes typewriter{
  from { width: 0 }
  to   { width: 100% }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}
/* Typewritter end */

/* btn hover start */
.btn:hover {
  box-shadow: 0 0 10px #0d6efd, 0 0 20px #0d6efd !important; /* blue shadow */
  transform: translateY(-2px); /* optional lift effect */
}
/* btn hover end */

/* hover landing start */
#cover:hover {
    background-color:  #000 !important;
    color: #0d6efd !important;
    transition: 0.3s ease;
}
#cover:hover .btn,
#cover:hover #check {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* hover h1 only start*/
#cover-title h1 {
  color: black;            /* default color */
  transition: color 0.3s ease, transform 0.3s ease; /* smooth animation */
}

#cover-title h1:hover {
  color: rgb(2, 141, 255) !important;              
  transform: scale(1.1);  
  cursor: pointer;    
}
/* hoer h1 only end */
/* hover landing end */

/* modal design start */

.modal-content,
.modal-content .modal-header,
.modal-content .modal-body,
.modal-content .modal-footer {
  background-color: #161616 !important;
  color: #fff !important;
}

.modal-title {
  color: #0d6efd;
}
/* modal design end */