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

:root {
  --bg-color: #221b21;
  --text-color: #929ff3;
  --card-color: #1e1e1e;
  --accent-color: #34d399;
  --border-color: #2a2a2a;
  --input-bg: #1a1a1a;
  --placeholder-color: #888;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: auto;
    width: 100%;
    position: relative;
    background-color:var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

::selection{
    background: rgba(203, 223, 191, 0.541);
}
.nav-container {
    width: 100%;
}

.navbar {
    position: fixed;
    top: 10px;
    left: 5vw;
    right: 5vw;
    height: 60px;
    background-color: #2c2f31;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    padding: 0 2vw;
    border-bottom: 1px solid var(--border-color);
    z-index: 3;
}

.logo{
    font-size: 1.5rem;
    font-weight: 300;
}
.nav-links-container{
    list-style: none;
    display: flex;
    list-style: none;    
}

.links{
    text-decoration: none;
    color: #ecf0f3;
    margin: 0 5px;
    padding: 10px;
    text-transform: capitalize;
    font-size: 1rem;
    opacity: 0.5;
    transition: .5s;
    background-color: #0f1a0e;
    border-radius: 15px;
}

.links.active {
  background: #ae0c0c;
  opacity: 1; /* Make it fully visible */
  color: #fff; /* Optional: to improve contrast */
}
.links:hover {
  opacity: 1;
}

.header {
  width: 100%;
  height: 100vh;
  padding: calc(60px + 20px) 10vw 0;  /* top, right/left, bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.header-heading{
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    position: relative;
}

.header-heading .brand-name{
    display: block;
    text-transform: capitalize;
    font-size: 5rem;
    margin: 10px 0;
    font-weight: 400;
}

.brand-name span{
    color:#beb5a2;
}

.btn{
    color: #efebeb;
    text-decoration: none;
    cursor: pointer;
    background: #616d8d;
    border: 2px solid #cecece;
    border-radius: 150px;
    padding: 10px 30px;
    text-transform: capitalize;
    transition: 0.5s;
    margin-right: 20px;
}
.btn:hover{
    background: #57023c;
}

.header-img-container{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
}

.header-img{
    position: absolute;
    top: 60%;
    left: 60%;
    transform: translate(-53%, -52%);
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #fff;
}

.circle{
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background:#9f5264;
    margin-left: 20px;
    position: relative;
    user-select: none;
    
}

.circle::before{
    content: '';
    position: absolute;
    top:40px;
    left: 40px;
    bottom: 40px;
    right:40px;
    border: 10px solid #fff;
    border-radius: 50%;
}

#about-section{
    position: relative;
    padding: 100px 10vw;
}

.heading{
    text-align: center;
    text-transform:capitalize;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 100px;
}

.about-container{
    width: 100%;
    margin: 50px 0 100px;
    display: flex;
    gap: 100px;
}


.image-container{
    width: 40%;
    position: relative;
}

.about-img{
    width:90%;
    height: 500px;
    display: block;
    object-fit: cover;
    margin: 10px auto;
    border-radius: 10px;
}

.square{
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: #9f5264;
    position: absolute;
    right: 10px;
    top: -30px;
    z-index: -1;
    transform: rotate(45deg);

}


.social-links{
    margin-top: 20px;
    display: flex;
    gap:20px;
    justify-content: center;

}
.social-img{
    width: 30px;
    height: 30px;
    opacity: 0.4;;
    transition: .5s;
    border-radius: 50px ;
}

.social-img:hover{
    opacity: 1;
}
/* .skills{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
  color: white;
  font-size: 16px;
}

.skill-item i {
  font-size: 30px;
} */


.info {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  font-size: 20px;
  line-height: 1.6;
  color: #e4e1e1;
  background-color: #212427;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.info p {
  margin: 0;
  text-align: justify;
}

.sub-heading{
    font-size: 2.5rem;
    font-weight: 300;
    margin:40px 0;
    transform: .5s;
}

/* .skills{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    color:#b1f0f8;
}
.skill-name{
    padding: 10px 20px;
    background:#252b2b ;
    border: 1px solid #6f708d;
    cursor: pointer;
    transition: .2s;
    border-radius: 10px;
}

.skill-name:hover{
    color: #ede2e2;
    background-color: #9f5264;
} */

.skills-section {
  padding: 60px 20px;
}

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

.headline {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.description {
  color: #a1a1aa;
  margin-bottom: 40px;
  max-width: 500px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.skill-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.group-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.skill-card {
  background-color: rgba(39, 39, 42, 0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease;
}

.skill-card:hover {
  background-color: rgba(39, 39, 42, 0.4);
}

.skill-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.skill-card h4 {
  font-size: 16px;
  margin: 0;
}

.skill-card p {
  font-size: 12px;
  color: #a1a1aa;
  margin: 4px 0 0;
}

.tools-section {
  margin-top: 60px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.timeline-container{
    width: 100%;
    position: relative;
    padding: 30px 0;
    /* justify-content: center; */
    /* height: 100%; */
}
/* .social-card{
    display: block;
    width: 45%;
    min-height: 200px;
    min-width: 300px;
    background:#0c0c0c;
    color: #fff;
    border: 1px solid #fcfcfc;
    border-radius: 10px;
    position: relative;
} */

.card-container{
    width: 100%;
    padding: 0 10%;
    margin: -100px;
}
.card{
    display: block;
    width: 45%;
    min-height: 200px;
    min-width: 300px;
    background:#0c0c0c;
    color: #fff;
    border: 1px solid #fcfcfc;
    border-radius: 10px;
    position: relative;
}

.card-container:nth-child(1) .card{
    margin-top: 150px;
    background-color: #fe6666;
}
.card-container:nth-child(2) .card{

    background-color: #1ca004;
}
.card-container:nth-child(3) .card{

    background-color: #d612b5;
}
.card-container:nth-child(4) .card{

    background-color: #b2bb07;
}
.card-container:nth-child(5) .card{

    background-color: #0881f2;
}



.card-title{
    width: 100%;
    height: 60px;
    font-weight: 300;
    background: rgba(255,255,255,0.2);
    padding: 20px;
}

.card-body{
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.8rem;
    font-weight: 300;
    opacity: 0.8;
}
.card-container:nth-child(even) .card{
    margin-left: auto;
}
.card-container:nth-child(odd) .card::after{
    content: '';
    position: absolute;
    height: 120%;
    right: -11%;
    top: 50%;
    border-right: 2px dashed #9f5264;
    transform: translateY(-50%);
}

.card-container .card::before{
    content: '';
    position: absolute;
    height: 10px;
    width: 10px;
    right:-7.5%;
    top: 50%;
    border: 3px solid #9f5264;
    border-radius: 50%;
    transform: translateY(-50%);
}

.card-container:nth-child(even) .card::before{
    left: -8%;
}

#project-section{
    position: relative;
    margin: 100px 0;
    padding: 0 10vw;
}
.filter{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn{
    margin-right: 0;
}

.filter-btn.active{
    background: #9f5264;
    color: #fff;
}

.project-container{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap:10px;
    position: relative;
    justify-content: center;
}

.project-card{
    width: 500px;
    height: 250px;
    overflow: hidden;
    display: flex;
    background: #ebebeb;
    transition: .5s;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:not(.active):hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* transition: none; */
  /* overflow: visible; */
  z-index: 1000;
}

.project-thumbnail {
  width: 100%;
  height: auto;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.close-btn{
    position: absolute;
    top: 20px;
    left: 20px;
    width: 25px;
    cursor: pointer;
    display: none;
    background: #ec0505;
}

.project-img {
  width: 500px;
  height: 300px  ;
  object-fit: cover;
}

.project-card.active{
    transition: 1s;
}
.project-card.blur{
    filter: blur(5px);
}

.project-card.active .project-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.1);
}

.project-card.active .project-thumbnail{
    width: 500px;
    height: 300px;
}

.project-card.active .close-btn{
    display: block;
}

.project-card.active .tags{
    position: absolute;
    bottom: 10px;
    z-index: 2;
    left:10px;
    color:#fff;
    opacity: 0.9;
}

.project-card.active .project-body{
    display: block;
    width: 500px;
    height: 300px;
    background:#263061;
    border-radius: 5px;
    padding: 30px;
    border: 1px solid #cecece;
}
.project-detail{
    font-size: 2rem;
    font-weight: 300;
    text-transform: capitalize;
}

.project-detail{
    font-size: 16px;
    line-height: 20px;
    margin: 20px 0;
}

.project-body .btn{
    display: inline-block;
    margin-top: 10px;
    margin-right: 5px;
    padding: 10px 20px;
}


.copy-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.copy-msg {
  position: absolute;
  top: 50%;
  left: 105%;
  transform: translateY(-50%);
  background-color: #4caf50;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}


#contact-section{
    margin: 100px 0;
    padding: 0 10vw;
}


.form{
    width: 100%;
    margin-top: -50px;
}

input, textarea{
    width: 100%;
    height: 5vh;
    font-size: .9rem;
    padding: 1vw;
    background-color: #273041;
    border: 1px solid #939191;
    border-radius: 5px;
    margin: 10px 0;
    outline: none;
    color: #d8d5f0;
}

::placeholder{
    color: #b4b4b4;
    text-transform: capitalize;
}

textarea{
    height: 20vh;
    font-family: 'roboto', sans-serif;

}

.contact-btn{
    padding: 10px 20px;
    background: #9f5264;
    color:#fff;
    border: none;
    outline: none;
    font-size: 1rem;
    text-transform: capitalize;
    cursor: pointer;
    border-radius: 20px;
    margin-top: 20px;
}

.footer {
  background-color: #1f1f1f;
  color: #ccc;
  padding: 40px 10vw;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.footer-content {
  display: flex;
  /* justify-content: space-between;  */
  align-items: flex-start;
  flex-wrap: wrap;  /* for responsiveness on smaller screens */
  gap: 40px;
}

.footer-links,
.site-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  display: flex;
  align-items: center;      /* vertically center icon + text */
  gap: 8px;                 /* space between icon and text */
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  height: 30px;
  width: fit-content;       /* auto width to fit icon + text */
}

.footer a:hover {
  background-color: var(--placeholder-color);
  color: #ffffff;
}


@media (max-width: 1060px) {
    html{
        font-size: 15px;
    }
    .header-heading .brand-name{
            font-size: 4rem;
    }
    .circle{
        width: 300px;
        height: 300px;
    }
    .header-img{
        width: 350px;
        height: 350px;
    }
    /* .nav-container {
    width: 100%;
    height: 100px; leave space for fixed navbar
} */
    .about-container{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .info{
        width: 100%;
    }
    .image-container{
        width: 320px;
    }
    .about-img{
        width: 100%;
    }
    .card-container{
        margin-top: 120px;
    }
    .card{
        width: 100%;
    }
    .card-container .card::before{
        display:none;
    }
    .card-container .card::after{
        right:50% !important;
        z-index: -1;
    }
}

@media(max-width: 750px)
{

    .timeline-container {
        padding: 20px 5vw;
    }

    .card-container {
        width: 100%;
        padding: 0;
        margin: 20px 0;
    }

    .card {
        width: 100%;
        min-width: unset;
        margin: 0 auto;
    }

    .card-container:nth-child(odd) .card::after,
    .card-container:nth-child(even) .card::after,
    .card-container .card::before {
        display: none;
    }
    

    .toggle-btn{
        position: absolute;
        right: 10vh;
        width: 50px;
        height: 40px;
        border: 1px solid #cecece;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 7px;
        justify-content: center;
        align-items: center;
    }
    .toggle-btn span{
        width: 60%;
        height: 1px;
        background: #cecece;
    }

    .toggle-btn.active span:nth-child(2){
        display: none;
    }
    .toggle-btn.active span:nth-child(1){
        position: absolute;
        transform: rotate(45deg);
    }
    .toggle-btn.active span:nth-child(3){
        position: absolute;
        transform: rotate(-45deg);
    }

    .nav-links-container.active{
        display: block;
    }
    .nav-links-container{
        position: absolute;
        top: 80%;
        flex-direction: column;
        width: calc(100% + 20vw);
        left: 0;
        background: #fcfcfc;
        display: none;
    }
    .nav-link{
        height: 60px;
        width: 100%;
    }
    .links{
        display: block;
        padding: 20px 10vw;
    }
    .links:hover, .links.active{
        background: rgba(0,0,0,0.1);
    }
    .header{
        height: auto;
        padding: 100px 10vw;
        flex-direction: column-reverse;
        gap: 100px;
    }
    .content{
        text-align: center;
    }
    .circle{
        width: 250px;
        height: 250px;
    }
    .header-img{
        width: 300px;
        height: 300px;
    }

    .card-container{
        padding: 0;
    }
    .card{
        width: 100%;
    }
    .project-wrapper{
        flex-direction: column;
        gap: 5px !important;
    }
    .project-card.active .project-thumbnail{
        width: 300px;
        height: 200px;
    }
    .project-card.active .project-body{
        height: auto;
        width: 300px;
    }
}


.location-container {
    margin-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 12px; /* similar to Tailwind gap-3 */
}

.location-content {
    display: flex;
    align-items: center;
    gap: 6px; /* similar to Tailwind gap-1.5 */
    color: #c8c8e7; /* similar to text-zinc-500 */
    font-size: 9px; /* text-sm */
    letter-spacing: 0.05em; /* tracking-wide */
    position: relative;
}

.location-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399; /* emerald-400 */
    border-radius: 50%;
    position: relative;
}

.location-ping {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    background-color: #34d399;
    border-radius: 50%;
    animation: ping 1s infinite;
    opacity: 0.6;
}

@keyframes ping {
    0% {
        transform: scale(0.5);
        opacity: 0.6;
    }
    80% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}



