

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    color: #333;
    background-color: #f4f7f6;
    line-height: 1.6;
}


/* Hide navbar */
/* .navbar.hide {
  transform: translateY(-100%);
  transition: transform 0.9s ease;
} */

/* 1) Header Section */
header {
    background-color: #1a252f;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    /* justify-content: center; */
}

header .logo h2 {
    margin-left: 10px;
}

.logo img {
    height: 30px;
}

.logo img:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: transform 0.3s;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #3498db;
    text-decoration: underline;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}



/* 2) Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 6, 84, 0.945), rgba(0, 0, 0, 0.76)), no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.profile-img {
    /* width: 250px; */
    height: 250px;
    border-radius: 50%;
    border: 4px solid #3498db;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    cursor: pointer;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 20px;
    color: #bdc3c7;
    margin-bottom: 25px;
}

.hero-buttons button {
    padding: 12px 25px;
    margin: 0 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-buttons button:first-child {
    background-color: #3442db;
    color: white;
    border-radius: 10px;
}

.hero-buttons button:last-child {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
}

.hero-buttons button:hover {
    background-color: #2980b9;
    color: white;
}



/* 3) About Section */
.about-section {
    padding: 80px 15%;
    text-align: center;
    background-color: rgb(240, 255, 254);
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-section p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}



/* 4) Skills Section */
.skills-section {
    padding: 80px 10%;
    background-color: #eef2f3;
    text-align: center;
}

.skills-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    text-align: left;
}

.skill-box:hover    {
        transform: translateY(-2px);
        cursor: pointer;
    }

.skill-box span {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}



/* Progress Bar */
.progress-bar {
    background-color: #ddd;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    position: relative;
}

.progress-bar span {
    background-color: #2ecc71;
    height: 100%;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}


/* for Disappear Project section and Gallery section  */
.displayNone {
    display: none;
}

/* 5) Projects Section */
.projects-section {
    padding: 80px 10%;
    text-align: center;
    background-color: white;
}

.projects-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 320px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
    height: 175px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.project-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    height: 60px; /* Text alignment */
}

.project-card .btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.project-card .btn:hover {
    background-color: #c0392b;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}



/* Gallery */
    .gallery{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
      gap:20px;
      
    }

    .gallery img{
      width:100%;
      border-radius:15px;
      height:200px;
      object-fit:cover;
      box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    }

    .gallery img:hover    {
        transform: translateY(-4px);
        cursor: pointer;
    }
    

    
/* 6) Footer Section */
footer {
    background-color: #1a252f;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
}

footer p {
    margin-bottom: 10px;
}

footer .social-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #2ecc71;
}

