* {
    box-sizing: border-box;
}
  html, body {
    max-width: 100%;
    overflow-x: hidden;
}


html {
    scroll-behavior: smooth;
}

main {
    padding: 0 10px;
}

body {
    margin: 0;
    background-color: #286671;
    
    font-family: Arial, sans-serif;
}


header {
    background-color: #0a4758;
    padding: 1rem 2rem; /* Adjust padding for a consistent sticky look */
    position: sticky; /* Makes the header sticky */
    top: 0; /* Sticks the header to the top of the viewport */
    z-index: 1000; /* Ensures the header stays on top of other content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); /* Optional: Adds a shadow for depth */
}
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
nav a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
}
nav a:hover {
    text-decoration: none;
    color: #e8c670;
}

.intro-section {
    display: flex;
    align-items: center;
    padding: 2rem;
    max-width: 1000px;
    height: 20rem;
    margin: 2rem auto;
    color: white;
    margin-top: 6rem;
    background-image: url('../assets/images/tealbg.jpg'); 
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the background image */
    border-radius: 10px; /* Optional: Adds rounded corners for a modern look */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
}

.profile-pic {
    width: 150px;
    height: 200px;
    object-fit: cover;
    margin-right: 2rem;
    border: 3px solid #fff; 
    border-radius: 10px;
}
.intro-text {
    display: inline-block;
    max-width: 500px;
}
.intro-text h1 {
    margin: 0;
    font-size: 3em;
    width: 0;
    border-right: 5px solid;
    white-space: nowrap;
    overflow: hidden;
    animation: 
        typing 2s steps(14, end) forwards,
        cursor .4s step-end 2s;
}
/*cursor blinking*/
@keyframes cursor {
    50% { border-color: transparent;}
}
/*typing effect*/
@keyframes typing {
    from { width: 0 }
    to { width: 14ch; } 
}
.intro-text p {
    margin-top: 0.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}
.profile-pic, .intro-text {
    opacity: 1; /* Initially hidden */
    transform: translateY(20px); /* Slight downward slide */
}
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    border-top: 3px solid white; /* White top border */
    margin-top: 1rem;
    gap: 25px;
    padding-top: 20px;
}

.skills-container div {
    margin: 1rem;
    color: white;
    text-align: center;
    font-size: 1rem;
}

.tech-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}


.tech-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;    
}

.tech-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}
.skills-container i {
    color: white;
    transition: color 0.3s ease; /* Smooth color transition */
    font-size: 5rem; /* Adjust size of icons */
    width: 25%;
    display: flex;
    justify-content: center;
}
.skills-container img:hover {
    color: #e8c670;
}
.skills-container i:hover {
    color: #e8c670; 
}
.tech-icon {
    width: 10rem;
    height: auto;
}
.skills-container i, .skills-container img {
    position: relative;
}

.skills-container i::after,
.skills-container img::after {
    content: attr(data-title);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.skills-container i:hover::after,
.skills-container img:hover::after {
    opacity: 1;
}
.adobe-icon {
    width: 5rem;
    height: auto;
}

/* My Projects Section */
.projects-section {
    margin: auto;
    max-width: 1100px; /* Same width as other sections */
    padding: 2rem 1rem;
    text-align: left;
}

.projects-section h2 {
    font-size: 2rem;
    color: white;
    margin-top: 0;
    margin-bottom: 1.5rem;
    
}

.projects-container {
    display: flex;
    flex-direction: column; /* Arrange projects vertically */
    gap: 1rem; /* Add spacing between rows */
    width: 100%; /* Ensure full width of the section */
}

.project-box {
    background-color: #25919e; /* Background color */
    border: 2px solid white; 
    padding: 0.2rem;
    color: white;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effect transition */
    border-radius: 10px;
    /* cursor: pointer; */
    overflow: hidden; /* Ensure no overflow from inside the box */
    box-sizing: border-box; 
    
}

/* .projects-container :hover{
    background-color: #D4AF37;
} */

.project-title {
    text-align: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.project-content {
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin: auto;
    flex-wrap: wrap; 
    min-height: 300px;
}

.project-overview {
    flex: 1; /* Allow the overview text to take up more space */
    color: white;
    word-wrap: break-word;
}

.project-overview h4 {
    margin-bottom: 0.5rem;
    color: white; 
    font-size: 1.4rem;
    
}
.project-overview p {
    font-size: 1.3rem;
    line-height: 1.5;
}

.project-image {
    /* flex: 1;  */
    max-width: 300px;
    margin: auto;
    
}

.project-image img {
    max-width: 100%;
    border-radius: 5px;
    
}

.project-button {
    display: block;
    margin: 20px auto;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #d3ab5e;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid white;
    width: 250px;
    text-align: center;
}

.project-button:hover {
    background-color: #d3ab5e; /* Darker gold on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

.project-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}
.no-cursor {
    border-right: none; 
}

.resume-button {
    display: inline-block;
    margin-top: 0.2rem; /* Add spacing above the button */
    padding: 0.5rem 1.5rem; /* Adjust padding for size */
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-decoration: none; 
    background-color: #d3ab5e; 
    border: 2px solid white; 
    border-radius: 5px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.resume-button:hover {
    background-color: #d3ab5e; /* Change background on hover */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Contact Section */
.contact-section {
    margin: 2rem auto;
    max-width: 800px; /* Same width as other sections */
    padding: 2rem 1rem;
    color: white;
    text-align: left;
}

.contact-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center; /* Align title to the left */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Add spacing between form elements */
    background-color: #0a4758; /* Form background color */
    padding: 2rem;
    border: 2px solid white; /* White border around the form */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Optional shadow for depth */
    margin: 0 auto; /* Center the form horizontally */
    max-width: 600px; /* Set a narrower max-width for the form */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #e8c670; /* Accent color for labels */
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    border: 2px solid white;
    border-radius: 5px;
    background-color: #25919e; /* Light blue background for inputs */
    color: white;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e8c670; /* Highlight border on focus */
    background-color: #0a4758; /* Darker background on focus */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: white !important;
    opacity: 1 !important; 
}

.submit-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #d3ab5e; /* Button background color */
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: #d3ab5e; /* Slightly darker gold on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

.status-message {
    margin-top: 10px;
    font-weight: bold;
    display: flex;
    justify-content: center;
}

.success {
    color: #d3ab5e;
}

.error {
    color: red;
}

h4 {
    text-align: left;
    width: 500px;
}

@media (max-width: 640px) {



.projects-container {
    grid-template-columns: 1fr; /* 1 box per row */
}

.tech-section h2 {
    margin: auto;
}

.projects-section h2 {
    text-align: center;
}

.intro-section {
    flex-direction: column; /* Stack items vertically */
    text-align: center; /* Center align content */
    max-width: 100% !important;
}

.profile-pic {
    margin: 0 auto 1rem; /* Center the image and add spacing below */
}

.intro-text {
    margin-bottom: 1rem; /* Add spacing below the text */
    max-width: 100%;
}

.resume-button {
    margin: 0 auto; /* Center the button */
}

.intro-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    padding: 2rem;
    max-width: 100%;
    height: auto; /* Let height adjust naturally */
    margin: 2rem auto;
    color: white;
    background-image: url('../assets/images/tealbg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
}

.profile-pic {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 10px;
    margin-bottom: 1rem; /* Add spacing below the image */
}

.intro-text {
    max-width: 100%;
    text-align: center; /* Center text for smaller screens */
}

.intro-text h1 {
   animation: none;
   border: none;
}

.intro-section {
    position: relative; 
    max-width: 100% !important;
}


.intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px; /* Keep consistent styling */
}

/* Ensure text stays above the overlay */
.intro-text {
    position: relative;
    z-index: 1;
}
.intro-text h1 {
    color: #ffffff !important; /* Force pure white */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); 
    white-space: normal;
    width: 100%;
}

.intro-text p {
    color: #ffffff !important; /* Force pure white */
    font-weight: bold; /* Make text pop */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3); /* Add subtle shadow */
}
.resume-button {
    display: inline-block;
    margin-top: 1rem; /* Add spacing above the button */
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background-color: #d3ab5e;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skills-container {
    padding: 20px;
    max-width: 100%;
    text-align: center;
    justify-content: center;

}

.skills-container i {
    font-size: 2.5rem; /* Adjust icon size for FontAwesome icons */
    width: 20%;

}

.fa-wordpress {
    font-size: 2.9rem !important; /* Make the WordPress icon smaller */
}
.adobe-icon {
    height: 40px;
    width: auto;
}

.skills-container .tech-icon {
    width: 80px;
    height: auto;
}
.project-content {
    flex-direction: column; /* Stack the text and image vertically */
    text-align: center; /* Center-align content */
    align-items: center;
   
}
.project-content h4 {
    align-items: center;
}
.project-overview {
    flex: unset; /* Remove flex constraints */
    width: 100%; /* Let it take full width */
    word-wrap: break-word; /* Ensure long words wrap */
    overflow-wrap: break-word;
    margin-bottom: 1rem;
}
.project-overview h4 {
    margin-bottom: 2rem; /* Add some spacing below */
    text-align: center; /* Centers the text horizontally */
    margin: 0 auto; /* Centers the element within its container */
    display: block; /* Ensures it's treated as a block element */
    width: 100%; /* Optional: ensure it takes full width */
    padding-bottom: 20px;
}
.project-overview p {
    font-size: 1rem; /* Reduce font size for smaller screens */
    line-height: 1.5;
    margin: 0 auto;
    padding: 0 1rem; /* Add padding for better readability */
}
.project-box {
    padding: 1rem; /* Adjust padding to fit smaller screens */
    word-wrap: break-word; /* Ensure no text is cut off */
    box-sizing: border-box; 
    width: 100%;
    max-width: 100%;
}
.project-image {
    max-width: 50%; /* Allow the image to scale */
    margin-top: 1rem; /* Add spacing above the image */
    padding-bottom: 20px;
}

/* .projects-section {
    margin-top: 40px;
} */

.project-button {
    margin-top: 1rem; 
    width: 70%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: white !important;
    opacity: 1 !important; 
}
.tech-section,
  .projects-section,
  .contact-section {
    max-width: 100%;
    padding: 1rem;
}


}