html {
    scroll-behavior: smooth;
}

/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f0f7f8; /* Light teal background */
    color: #333;
    line-height: 1.6;
}

/* Top Navigation Bar */
.top-nav {
    background: linear-gradient(135deg, #008080 0%, #004d4d 100%); /* Teal gradient */
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

.top-nav .logo {
    display: flex;
    align-items: center;
}

.top-nav .logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.top-nav .logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.top-nav nav {
    display: flex;
    gap: 1rem;
}

/* Content Area */
.content {
    margin-top: 80px; /* Adjusted for fixed top nav */
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #008080; /* Teal border */
    padding-bottom: 0.5rem;
}

.section p {
    text-align: justify;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background-color: #f0f7f8; /* Light teal background */
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skill-category h3 {
    margin-top: 0;
    color: #008080; /* Teal color */
}

/* Education & Recommendations Section */
.education-item, .recommendation-item, .experience-item {
    margin-bottom: 1.5rem;
}

.education-item h3, .recommendation-item h3, .experience-item h3 {
    margin-bottom: 0.25rem;
    color: #333;
}

.education-item p, .recommendation-item p, .experience-item p {
    margin: 0;
    font-style: italic;
    color: #555;
}

.recommendation-item p, .experience-item p {
    font-style: normal;
}

/* Project Cards */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.project-card h3 {
    margin-top: 0;
    color: #008080; /* Teal color */
}

.project-card .links a {
    text-decoration: none;
    color: #004d4d; /* Dark teal color */
    margin-right: 1rem;
    font-weight: bold;
}

.project-card .links a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: #008080; /* Teal color */
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .top-nav {
        flex-direction: column;
        padding: 1rem;
    }
    .top-nav nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1rem;
    }
    .content {
        margin-top: 150px; /* Adjust for taller nav on mobile */
    }
}

/* Material Button */
.material-button {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
}

.material-button.active {
  background-color: rgba(255, 255, 255, 0.3);
}

.material-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.material-button:active::after {
  animation: ripple 0.6s;
}

@keyframes ripple {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}