*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #fff;
}

#header{
    width: 100%;
    height: 5vh;
    background-size: cover;
    background-position: center;
}

.container{
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container .name {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.introduction {
    margin: 20px 10%;
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
    text-align: justify;
}

nav{
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Moves the nav items to the right */
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: ''; /* Adds an empty element after the link */
    width: 0; /* Initial width of the underline */
    height: 3px; /* Sets the thickness of the underline */
    background: #ff004f; /* Sets the underline color */
    position: absolute; /* Positions the underline relative to the link */
    left: 0; /* Aligns the underline to the left edge of the link */
    bottom: -6px; /* Places the underline slightly below the text */
    transition: width 0.3s ease-in-out; /* Smooth transition for the underline */
}

nav ul li a:hover::after {
    width: 100%; /* Expands the underline to full width on hover */
}


/*-------- about me -------*/

#about{
    padding: 50px 0;
    color: #ababab;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}

.btn-cv {
    display: inline-block;        /* Allows setting width, padding, etc. */
    margin: 20px 0;             /* Some space above, if desired */
    padding: 12px 24px;           /* Adjust padding to your preference */
    background-color: #ff004f;    /* Or any color you prefer */
    color: #fff;                  /* Button text color */
    text-decoration: none;        /* Remove the link underline */
    border-radius: 6px;           /* Rounded corners */
    font-weight: 500;             /* Slightly bolder text */
    transition: background 0.3s;
  }
  
  .btn-cv:hover {
    background-color: #e60047;    /* Slightly darker on hover */
  }
  

.about-col-2 {
    flex-basis: 60%;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background-color: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px; /* Places the underline slightly below the text */
    transition: width 0.3s ease-in-out; /* Smooth transition for the underline */
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span{
    color: #ff004f;
    font-size: 14px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/*------ services ------ */

#services{
    padding: 30px 0;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

/*-----portfolio------*/

#portfolio{
    padding: 30px 0;
}

.container2 {
    display: block; /* or flex-direction: column; */
    padding: 10px 10%;
    padding-bottom: 50px;
    justify-content: flex-start; 
    align-items: flex-start; 
}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s;
  }
  

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.circular-btn {
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;      /* Controls vertical centering of the text/icon */
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;     /* Makes it circular */
    text-align: center;     /* Centers the text horizontally */
    display: inline-block;  /* Ensures width/height take effect */
    border: none;           /* Remove default button border */
    cursor: pointer;        /* Pointer cursor on hover */
    /* Optionally, add a box-shadow or transition if you want a hover effect */
  }
  
  .circular-btn:hover {
    background: #f0f0f0; /* Or any hover color you like */
  }
  

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: #ff004f;
}

/* The modal background overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sits on top of other elements */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  }
  
  /* Show the modal when we add a .show class via JavaScript */
  .modal.show {
    display: block;
  }
  
  /* Modal content box */
  .modal-content {
    position: relative;
    margin: 5% auto; 
    background: #1c1c1c; /* Your preferred background color */
    width: 80%; 
    max-width: 800px; 
    padding: 20px;
    border-radius: 8px;
  }
  
  /* Close button (the “X”) */
  .close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* Close button hover */
  .close:hover {
    color: #ff004f; /* or any accent color */
  }
  
  /* Optional: center heading, style link, etc. */
  .modal-content h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .video-wrapper {
    text-align: center;
  }
  
  .project-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #ff004f;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
  }
  
  .project-link:hover {
    background-color: #e60047;
  }
  