/* styles.css */

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #0077b6;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

nav {
  	position: sticky;
  	top: 0;
    background: linear-gradient(to bottom, #0077b6, #0096c7);
    color: #fff;
    padding: 0.5rem 0;
    text-align: center;
  	z-index: 9999;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    position: relative;
    display: block;
    text-transform: uppercase;
    margin: 20px 0;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 600;
    transition: .5s;
    z-index: 1;
}

nav ul li a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid #00b4d8;
    border-bottom: 2px solid #00b4d8;
    transform: scaleY(2);
    opacity: 0;
    transition: .3s;
}

nav ul li a:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00b4d8;
    transform: scale(0);
    opacity: 0;
    transition: .3s;
    z-index: -1;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover:before {
    transform: scaleY(1);
    opacity: 1;
}

nav ul li a:hover:after {
    transform: scaleY(1);
    opacity: 1;
}

section {
    position: relative;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
    background: #dbe4f1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    border-radius: inherit;
    background: repeating-linear-gradient(
        45deg,
        #0096c7,
        #0096c7 2px,
        transparent 2px,
        transparent 6px
    );
    transition: all 0.3s ease;
}

section:hover::before {
    top: 30px;
    left: 30px;
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

form label, form select, form input {
    margin-bottom: 1rem;
}

form select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form input[type="submit"] {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background: #555;
}

#result {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #333;
}

/* Specific Section Styles */
#about p, #education p, #experience p, #skills p, #projects p, #contact p {
    margin-bottom: 1rem;
}

#skills ul, #projects ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul li {
        margin: 0.5rem;
    }

    nav ul li a {
        font-size: 16px;
        padding: 8px 16px;
    }

    section {
        padding: 1rem;
        margin: 2rem auto;
    }

    section h2 {
        font-size: 1.5rem;
    }

    form input[type="submit"] {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
  
    header h1 {
        font-size: 1.5rem;
    }

  nav {
        position: static; /* Override sticky position */
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li a {
        font-size: 14px;
        padding: 6px 12px;
    }

    section {
        padding: 0.5rem;
        margin: 1rem auto;
    }

    section h2 {
        font-size: 1.2rem;
    }

    form label, form select, form input {
        margin-bottom: 0.5rem;
    }

    form input[type="submit"] {
        padding: 0.5rem;
    }
}