/* ===== RESET & GLOBALS ===== */
* {
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: #000;
  overflow: auto;
}

html {
  scroll-behavior: smooth;
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  
}

nav {
  width: 100%;
  height: 10vh;
 /*background-image: url("images/banner.jpg");*/
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: right;
  align-items: center;
  position: relative;
   box-shadow: 0 0 40px 5px #ff0000;
   padding-right: 5%;
   
}

.logo {
  color: #fff;
  position: absolute;
  top: 18px;
  left: 15px;
  font-size: 2rem;
  font-weight: bold;
  padding-left: 2%;
}

.logo span {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
}

.hamburg,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: #fff;
  display: none;
  font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links a {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 20px;
  text-decoration: none;
  transition: 0.3s linear;
}

.nav-container .links a:hover,
.nav-container .links a:focus {
  color: #ff0000;
  border-bottom: 2px solid #ff0000;
}

.dropdown {
  z-index: 100;
  position: absolute;
  top: 0;
  transform: translateY(-500px);
  width: 100%;
  height: auto;
  backdrop-filter: blur(4px) brightness(40%);
  box-shadow: 0 0 20px #000;
  transition: 0.3s linear;
}

.dropdown .links a {
  display: flex;
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  justify-content: center;
  align-items: center;
  transition: 0.3s linear;
}

.dropdown .links a:hover {
  background-color: #ff0000;
}

/* ===== SECTIONS (GLOBAL) ===== */
/* don't force every section to be 90vh */
section {
  width: 100%;
  padding: 5rem 1.5rem 4rem;
}

/* push content down so it isn't under fixed header */
#home {
  min-height: 90vh;
  display: flex;
  align-items: center;
  margin-top: 5.5rem;
}

/* ===== HERO / MAIN ===== */
.main-container {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  
}

.main-container .content {
  color: #fff;
  width: 40%;
  min-height: 100px;
  box-shadow: 0 0 30px 5px #ff0000;
  border: 2px solid #ff0000;
  padding: 2%;
  border-radius: 10%;
}

.content h1 {
  font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span {
  font-weight: 700;
  text-shadow: 0 0 10px #ff0000;
  color: #ff0000;
}

.content .typewriter {
  font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
  font-weight: 700;
  margin: 10px 0;
}

.typewriter span {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
}

.content p {
  font-size: clamp(0.8rem, 0.5rem + 3vw, 1.1rem);
  margin: 20px 0;
  color: #fff;
}

.social-links a {
  text-decoration: none;
}

.social-links i {
  color: #ff0000;
  margin: 0 15px;
  font-size: 1.8rem;
  transition: 0.3s linear;
}

.social-links i:hover {
  filter: drop-shadow(0 0 10px #ff0000);
  scale: 1.3;
}

.content button {
  width: 50%;
  height: 6vh;
  margin: 30px 0;
  background-color: #ff0000;
  color: #fff;
  border: none;
  outline: none;
  font-size: 120%;
  font-weight: 700;
  border-radius: 5px;
  transition: 0.2s linear;
  cursor: pointer;
}

.content button:hover {
  scale: 1.1;
  border: 2px solid #ff0000;
  background-color: #eb7f7f;
  font-weight: 700;
  box-shadow: 0 0 40px 5px #ff0000;
}

.main-container .image {
  width: 500px;
  height: 80vh;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 0 50px #ff0000;
  z-index: -1;
}

.main-container .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  color: #fff;
}

.section h2{
    font-size: 48px;
    padding-bottom: 8%; 
    padding-left: 2%;  
}

/* ===== ABOUT ===== */

.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 5%;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.about-image {
  width: 400px;
  height: 65vh;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 0 50px #ff0000;
}

.about-image img {
  width: 350px;              /* same as .main-container .image */
  height: 60vh;              /* same vertical sizing */
  border-radius: 100%;       /* full circle */
  object-fit: cover;
  box-shadow: 0 0 50px #ff0000;  /* same red glow */
  border: none;              /* hero image has no border */
  padding-right: 5%;
}

.testimg{
    padding-right: 5%;
}

.about-text {
  flex: 1 1 300px;
  color: #fff;
  border-style: solid;
  border-color: #eb7f7f;
  box-shadow: 0 0 50px red;
  padding: 2%;
  position: relative;
  border-radius: 10px;
  z-index: 1;
  overflow: hidden;
  transform: rotate(5deg);
  text-align: justify;
  text-indent: 5%;

}

.about-text h2,
.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.05rem;
}
/*Skills*/

.skills-section h2 {
  padding-bottom: 3%;
}


/* Layout for all skill boxes */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5rem;
}

/* Each skill card */
.skill-box {
  background-color: #0f0f0f;
  border: 2px solid #ff0000;
box-shadow: 0 0 10px 5px #ff0000; 
 border-radius: 10px;
  padding: 1.5rem;
  width: 400px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.skill-box h3 {
  color: #ff0000;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-shadow: 0 0 10px #ff0000;
}

.skill-box ul {
  list-style-type: none;
  padding: 0;
}

.skill-box li {
  margin: 0.4rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .skill-box {
    width: 90%;
  }
}

/*Portfolio*/

/* ===== PORTFOLIO ===== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* card */
.portfolio-card {
  background: #0f0f0f;
  border: 2px solid #ff0000;
  border-radius: 12px;
box-shadow: 0 0 10px 5px #ff0000; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.45);
}

/* image */
.portfolio-image {
  width: 100%;
  aspect-ratio: 16 / 9;           /* consistent screenshot height */
  overflow: hidden;
  background: #111;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;               /* fill the area without distortion */
  display: block;
}

/* text */
.portfolio-content {
  text-align: left;
  padding: 1.2rem 1.2rem 0.5rem;
}

.portfolio-content h3 {
  color: #ff4d4d;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.portfolio-content p {
  color: #ddd;
  line-height: 1.5;
  font-size: 0.98rem;
}

/* actions */
.portfolio-actions {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem 1.3rem;
  margin-top: auto;                /* push buttons to bottom */
}

.btn {
  background: #ff0000;
  color: #fff;
  border: 2px solid #ff0000;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  background: #eb7f7f;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.btn.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #ff0000;
}

.btn.btn-outline:hover {
  background: #ff0000;
}

/* responsive */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}


.projects p{
  margin-top: 2%;
}

/*Contact*/

.contact-section {
  background: #000;
  color: #fff;
  max-width: 1000px;
  margin: 0 0;
  text-align: left;
 
}

.contact-section h2 {
  padding-bottom: 5%;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-left: 5%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group textarea {
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border: 1px solid #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.contact-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  width: fit-content;
}

.contact-btn:hover {
  background: #eb7f7f;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .contact-section {
    padding-inline: 1rem;
  }
  .contact-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* Mobile layout */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin-bottom: 1.5rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 3rem;
  box-shadow: 0 0 40px 5px #ff0000;
}

.footer span {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
}
/* ===== MEDIA QUERIES ===== */
@media (max-width: 884px) {
  .main-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg,
  .cancel {
    display: block;
  }

  .main-container .content {
    width: 90%;
  }

  .main-container .image {
    width: 65%;
    height: 55vh;
  }

  .content button {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .main-container .image {
    width: 80%;
    height: auto;
  }
}

@media (max-width: 440px) {
  .main-container .image {
    width: 80%;
    height: auto;
  }

  .main-container .content {
    width: 90%;
  }

  .content button {
    width: 80%;
  }
}
