/* Global Styles */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
}

/* Highlighted text */
.portifolio-span {
  font-size: larger;
  font-weight: 800;
  padding: 10px;
  color: rgb(231, 215, 215);
  cursor: pointer;
}

/* Menu Toggle Button (hamburger icon) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1100;
  cursor: pointer;
}

/* Navbar Default (desktop) */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(44, 62, 80, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: top 0.3s;
  z-index: 1000;
  height: 60px;
}

nav a {
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

nav a:hover {
  background-color: #1abc9c;
}

/* Hero Section */
header {
  position: relative;
  background: url('./assets/image.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 80px 20px 40px;
  z-index: 1;
  overflow: hidden;
  margin-top: 60px;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

header h1,
header h2,
header p {
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  color: white;
}

header p {
  font-size: 1.2rem;
}

/* Main Container */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 40px 40px;
}

/* Sections */
.section {
  padding: 40px 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
  scroll-margin-top: 80px;
}

.section:first-of-type {
  padding-top: 30px;
}

.section h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.section p {
  margin-bottom: 15px;
  font-size: larger;
}

/* Resume Button */
.resume-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #1abc9c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.resume-link:hover {
  background-color: #16a085;
}

/* Contact Info */
.contact-info p {
  margin-top: 30px;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 0 10px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.image-item:hover {
  transform: scale(1.02);
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.9rem;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 30px;
  background-color: #2c3e50;
  color: white;
}

/* Material Icons */
.material-icons {
  vertical-align: middle;
  font-size: 20px;
  color: #1abc9c;
  margin-right: 6px;
}

a .material-icons {
  transition: color 0.3s ease;
}

a:hover .material-icons {
  color: #ffffff;
}

/* Heading Spacing */
.heading > h3 {
  margin-top: 30px;
}

/* Logos Section */
.logos {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.logos a {
  display: inline-block;
  border: none;
  outline: none;
}

.logos img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logos img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Specific logo override */
#tut {
  margin-bottom: 20px;
  height: 90px;
  width: 90px;
}

/* General Link Styling */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
}

/* Responsive Hamburger Menu */
@media screen and (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
header{
  margin-top: 0;
}
  nav {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #2c3e50;
    width: 200px;
    height: 100vh;
    position: fixed;
    right: -220px;
    top: 0;
    transition: right 0.3s ease;
    padding-top: 60px;
  }

  nav.active {
    right: 0;
  }

  nav a {
    width: 100%;
    padding: 15px 20px;
    color: white;
  }

  .hamburger-container {
    display: flex;
    flex-direction: column;
  }
}
.menu-toggle {
  color: #ffffff;
  transition: color 0.3s ease;
}

.menu-toggle.blue {
  color: blue;
}
/* Backdrop that appears when menu is open */
.backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 900; /* lower than .menu-toggle and nav */
}

.backdrop.active {
  display: block;
}
