/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

:root {
    --header-bg-start: #4CAF50; /* Start color for gradient */
    --header-bg-end: #1E90FF;   /* End color for gradient */
    --header-text-color: white;  /* Text color for header */
}

header {
    background: linear-gradient(to right, var(--header-bg-start), var(--header-bg-end)); /* Gradient background */
    height: 100px; /* Fixed height for desktop */
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    color: var(--header-text-color); /* Use variable for text color */
    text-align: center;
    font-family: 'Helvetica', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    position: relative;
    padding: 0 20px; /* Add some padding for better spacing */
}

header h1 {
    font-size: 2.5em; /* Large text for desktop */
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Adds depth */
    margin: 0;
}

header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}



header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Other sections and styles remain unchanged... */

/* Responsive adjustments remain unchanged... */

/* Other sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 35px; /* Default margin for larger screens */
    text-align: center;
    width: 250px;
    transition: transform 0.3s;
    cursor: pointer;
}

/* .box img { */
    /* width: 100%; Ensures the image takes the full width of the box */
    /* height: 200px; Set a fixed height for the images */
    /* object-fit: cover; Ensures the image covers the area without distorting */
    /* border-top-left-radius: 10px; Maintain rounded corners */
    /* border-top-right-radius: 10px; Maintain rounded corners */
/* } */


.about, .projects, .contact {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #4CAF50;
}

.about p {
    font-size: 1.2em;
    line-height: 1.6;
}

.projects .project {
    margin-bottom: 10px;
}

.projects .project h3 {
    margin: 5px 0;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.contact form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.contact form button:hover {
    background-color: #45a049;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: fixed; 
    width: 100%;
   bottom :0; 
}

/* Responsive adjustments */
@media (max-width:768px) {
   header { 
       height :80px; 
       padding :0; 
   }
   header h1 { 
       font-size :2em; 
       letter-spacing :2px; 
   }
  
}
@media (max-width :480px) { 
   header { 
       height :60px; 
       padding :0; 
   }
   header h1 { 
       font-size :1.5em; 
       letter-spacing :1px; 
   }
   
}