* {

    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    background-color: #080808;
    color: #fff;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
  color: #ffde59;
}

.loader-content img {
  width: 100px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


#header {
    width: 100%;
    height: 100vh;
    background: url(assets/Background.png) no-repeat center center/cover;
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
}

nav {
    display:flex;
    align-items: center;
    justify-content: space-between; 
    flex-wrap: wrap;

}
.logo {
    width: 140px;
}

nav ul li {
    list-style: none;
    display: inline-block;
    margin: 10px 20px;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ffde59;
    position: absolute;
    left: 0;
    bottom: -6px;
}

nav ul li a:hover::after{
    width: 100%;
    transition: 0.3s;
}


.hero-title{
    margin-top: 20%;
    font-size: 30px;
}

.hero-title h1 {
    font-size: 60px;
    margin-top: 20px;
}
.hero-title h4 {
    font-size: 30.2px;
    margin-top: 2px;
   
}

.hero-title h1 span {
    color: #ffde59;
}

.hero-title a {
    display: inline-block;
    text-decoration: none;
    color: #0d0d0d;
    background-color: #ffde59;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.hero-title a:hover {
    background-color: #0d0d0d;
    color: #ffde59;
    border: 1px solid #ffde59;
}
#about {
 
    margin-top: 50px;
    padding: 80px 0;
}

.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;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
}

.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: #ffde59;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-links:hover::after {
    width: 100%;
    
}



.tab-contents {
    display: none;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #ffde59;
    font-size: 14px;
}
.tab-contents.active-tab {
    display: block;
}


#whatido {
    padding: 30px 0;
}

.my-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.my-list div {
    background: #1a1a1a;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-right: 10px;
    border-radius: 15px;
    transition: background 0.5s, transform 0.5s;
}

.my-list div:hover {
    background: #333;
    transform: translateY(-10px);
}
.my-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.my-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.my-list div a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.my-list div a:hover {
    color: #ffde59;
}

.portfolio {
    padding: 60px 0;
    background-color: #080808;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.portfolio .sub-title {
    text-align:relative;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: bold;
    color: #fff;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
   
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

.project-item h2 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #fff;
}

.project-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ccc;
}

.project-item a {
    display: inline-block;
    text-decoration: none;
    color: #0d0d0d;
    background-color: #ffde59;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-item a:hover {
    background-color: #0d0d0d;
    color: #ffde59;
    border: 1px solid #ffde59;
}

.contact {
    background-color: #080808;
    padding: 30px 0;
    color: #fff;
}

.contact .container {
    max-width: 700px;
    margin: auto;
    padding: 0 10%;
}

.contact .sub-title {
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    resize: none;
    transition: border 0.3s ease;
}

.contact input[type="text"]:focus,
.contact input[type="email"]:focus,
.contact textarea:focus {
    border: 1px solid #ffde59;
    outline: none;
}

.contact textarea {
    min-height: 150px;
}

.contact button[type="submit"] {
    background-color: #ffde59;
    color: #0d0d0d;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact button[type="submit"]:hover {
    background-color: transparent;
    color: #ffde59;
    border: 1px solid #ffde59;
}

.footer {
    background-color: #0d0d0d;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    border-top: 1px solid #333;
}

.footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10%;
}

.footer p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #ccc;
}

.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer .social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer .social-icons img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* make icons white on dark bg */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(96%) saturate(471%) hue-rotate(348deg) brightness(103%) contrast(103%);
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .hero-title h1 {
        font-size: 40px;
    }

    .sub-title {
        font-size: 40px;
    }

    nav ul li {
        margin: 10px 10px;
    }

    .tab-links {
        margin-right: 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px 5%;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .row {
        flex-direction: column;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .hero-title {
        margin-top: 50%;
        text-align: center;
    }

    .tab-titles {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-list {
        grid-template-columns: 1fr;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .tab-titles {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px; 
    }

    .tab-links {
        margin-right: 0;   
        font-size: 16px;
        width: 100%;       
    }

    .tab-links.active-link::after {
        width: 10%; 
    }

    .tab-links:hover::after {
        width: 20%; 
    }
}

@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 32px;
    }

    .sub-title {
        font-size: 32px;
    }

    .contact .sub-title {
        font-size: 32px;
    }

    .project-item h2 {
        font-size: 20px;
    }

    .project-item p {
        font-size: 14px;
    }
}

/* Hamburger icon */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hide menu on small screens by default */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    nav ul {
        flex-direction: column;
        background-color: #080808;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-in-out;
        border-top: 1px solid #333;
        z-index: 1000;
    }

    nav ul.show {
        max-height: 500px; /* enough to show all menu items */
    }

    .menu-icon {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
    }
}
@media (max-width: 768px) {
    nav ul {
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    nav ul.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}



