/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-attachment: fixed; /* Ensures background stays in place while scrolling */
}

/* Main Section */
main {
    width: 100%;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Feedback Section */
#feedback {
    background: rgba(255, 255, 255, 0.85); /* Lighter background with more opacity for clarity */
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#feedback h2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 1.2rem;
    text-align: center;
    border-bottom: 2px solid #444;
    display: inline-block;
    padding-bottom: 0.6rem;
}

#feedback p {
    text-align: center;
    margin-bottom: 1.2rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* Feedback Form */
#feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#feedback-form label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600; /* Bold for visibility */
    margin-bottom: 0.4rem;
}

#feedback-form input, #feedback-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#feedback-form input:focus, #feedback-form textarea:focus {
    border-color: #444;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

#feedback-form button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#feedback-form button:hover {
    background: #555;
    transform: scale(1.03);
}

/* Contact Section */
#contact {
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent to separate visually */
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffcc00; /* Highlighted in gold */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#contact p {
    margin: 0.6rem 0;
    font-size: 1rem;
}

#contact a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 700;
}

#contact a:hover {
    color: #ffd700;
}
.mahi {
    display: flex;
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Centers the content vertically */
    flex-grow: 1; /* Ensures the `.mahi` div expands to fill available space */
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    width: 100%;
  }
  
  footer p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .footer-content {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
  }
  
  .footer-link:hover {
    color: #FFEB3B; /* Yellow on hover */
  }
  
  .footer-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
  }
  
  .footer-link:hover .footer-icon {
    transform: rotate(360deg); /* Icon rotation */
    transition: transform 0.5s ease-in-out;
  }


/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.8rem;
    }

    header p {
        font-size: 1rem;
    }

    #feedback h2, #contact h2 {
        font-size: 1.8rem;
    }

    main {
        padding: 1.5rem;
    }
}
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #34495e;
    padding: 20px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

/* Basic styling for the button */
#menu-toggle {
    background-color: #007BFF; /* Blue background */
    color: white; /* White icon color */
    border: none; /* Remove border */
    border-radius: 50%; /* Make it circular */
    padding: 10px 15px; /* Add some padding */
    font-size: 20px; /* Icon size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: all 0.3s ease; /* Smooth hover effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  }
  
  /* Hover effect */
  #menu-toggle:hover {
    background-color: #0056b3; /* Darker blue on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Slightly larger shadow */
  }
  
  /* Focus styling for accessibility */
  #menu-toggle:focus {
    outline: 2px solid #0056b3; /* Outline on focus */
    outline-offset: 2px;
  }
  
  /* Active state */
  #menu-toggle:active {
    transform: scale(0.95); /* Slight shrink on click */
  }
  
  /* Optional: Center the icon in a container */
  #menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
/* Sidebar Navigation */
nav {
    position: fixed;
    top: 50px;
    left: -250px; /* Initially off-screen */
    width: 250px;
    height: 100%;
    background: white;
    
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    z-index: 90;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    padding: 15px 20px;
    text-align: left;
}

nav ul li a {
    color: rgb(5, 33, 104);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

nav ul li a:hover {
    background-color: #dce2e7;
    padding-left: 30px; /* Slightly shift the text for a more interactive feel */
}


/* Projects List */
#projectsContainer {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#projectsContainer div {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projectsContainer div:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#projectsContainer button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#projectsContainer button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    z-index: 1000;
}

.modal h2 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #4caf50;
    font-size: 1.8rem;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal input:focus {
    border-color: #4caf50;
    outline: none;
}

.modal button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal .close-btn {
    background-color: #f44336;
    color: white;
}

.modal .close-btn:hover {
    background-color: #d32f2f;
}

.modal button[type="submit"] {
    background-color: #4caf50;
    color: white;
}

.modal button[type="submit"]:hover {
    background-color: #45a049;
}

/* Mobile and Tablet Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        padding-top: 50px;
    }

    nav ul {
        justify-content: center; /* Center the nav links */
    }

    #projectsContainer {
        margin-top: 80px;
    }
}

@media (max-width: 600px) {
    nav {
        left: -250px; /* Initially off-screen */
    }

    nav ul {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
    }

    nav ul li {
        padding: 15px;
        font-size: 1rem;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .menu-toggle {
        display: block;
    }
}
