header, main, footer {
    margin: 0;
    padding: 0;
    /* To highlight sections */
}


/* Fix box-sizing for all elements */
* {
    box-sizing: border-box;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo-container {
    display: flex;
    align-items: center;
}

header .logo-container img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

header .logo-container h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

header nav {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

header nav a {
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #00b4d8;
}

/* Hero Section */
#hero {
    background: linear-gradient(45deg, #00b4d8, #0096c7);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.btn {
    padding: 14px 35px;
    background: #fff;
    color: #00b4d8;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: #00b4d8;
    color: #fff;
}

/* About Section */
#about {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#about h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#about p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

#about .skills {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

#about .skills div {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    width: 270px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .skills div:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Portfolio Section */
#portfolio {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

#portfolio h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.portfolio-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item h3 {
    font-size: 1.6rem;
    padding: 15px;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.modal img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: black; /* Black color for cross */
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #f0f0f0; /* Optional: adds hover effect */
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

footer .social-links a {
    font-size: 1.7rem;
    color: #fff;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #00b4d8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header .logo-container {
        margin-bottom: 20px;
    }

    header nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .portfolio-grid {
        flex-direction: column;
        align-items: center;
    }

    #about .skills {
        flex-direction: column;
    }

    .portfolio-item {
        width: 100%;
        max-width: 400px;
    }

    #hero {
        padding: 80px 0;
    }

    #hero h2 {
        font-size: 2.8rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
/* General reset for margins, paddings, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border don't affect size */
}

/* Ensure proper body and HTML behavior */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Keeps the height equal to viewport height */
    overflow-x: hidden; /* Disables horizontal scrolling */
}

/* Force the body to fill the viewport properly */
body {
    position: relative;
    min-height: 100vh; /* Makes the body's height at least the viewport height */
    overflow-x: hidden;
    background-color: #fff; /* Sets a default background to avoid extra white space */
}

/* Example fix for any specific element causing overflow */
.offending-element {
    max-width: 100%; /* Ensures the element doesn't exceed viewport width */
    overflow: hidden; /* Hides content that overflows */
}
/* Ensure the container takes full height of the viewport */
.image-container {
    display: flex;
    justify-content: center; /* Horizontally center the image */
    align-items: center; /* Vertically center the image */
    height: 100vh; /* Full viewport height */
}

/* Image properties to maintain aspect ratio */
.profile-image {
    max-width: 100%; /* Prevent image overflow */
    max-height: 100%; /* Prevent image overflow */
    object-fit: contain; /* Maintain aspect ratio */
}
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* This ensures it's centered horizontally */
  }
  
  .profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .profile img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    background-image: linear-gradient(to right, #00c6ff, #0072ff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .profile:hover img {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    filter: brightness(1.2);
  }
  
  .about-me {
    margin-top: 20px;
  }
  
  .about-me h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
  }
  
  .about-me p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .about-me strong {
    color: #0072ff;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .profile img {
      width: 150px;
      height: 150px;
    }
  
    .about-me h2 {
      font-size: 24px;
    }
  
    .about-me p {
      font-size: 14px;
      max-width: 100%;
    }
  }
  
