:root {
    --text-color: #FFFFFF;
    --button-color: #b80f0a;
    --background-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Montserrat';
    background-color: black;
    max-width: 1400px;
    margin: 0 auto;
}
a {
    color: var(--button-color); 
    text-decoration: none;
    font-family: 'Montserrat';
    font-weight: 800;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a{
    color: var(--button-color);
    font-size: 22px;
    font-weight: 800;
}

nav .right a{
    color: var(--button-color);
    font-size: 22px;
    font-weight: 400;
}
/*description and selfie*/
.hero-section{
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    margin: 50px 0px;
    align-items: center;
    margin-bottom: 100px;
    gap: 40px;
    
}

.hero-section .text{
    flex: 5;
}

.hero-section .selfie{
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .selfie img{
    border-radius: 50%;
    width: 335px;
}

.hero-section .text h2{
    color: var(--button-color);
    font-size: 45px;
}

.hero-section .text p{
    color: white;
    margin-top: 10px;
    font-weight: 700;
}

.hero-section .text .links{
    margin-top: 25px;
}

.hero-section .text .links a{
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--button-color);
    color: black;
    background-color: var(--button-color); 
    border-radius: 99px;
    margin-right: 5px;
    margin-bottom: 10px;
    transition: .1s;
}

.hero-section .text .links a:hover{
    color: var(--text-color); /* white text */
    background-color: crimson; /* new background color */
    border-color: crimson;
}

@media (max-width: 850px){
    .hero-section .text h2{
        font-style: 35px;
    }
}

@media (max-width: 876px){
    .hero-section{
       flex-direction: column-reverse;
    }

    .hero-section .selfie img{
        width: 300px;
     }
}

@media (max-width: 600px){
    nav{
        padding: 0 20px;
    }

    nav .right a{
        font-size: 22px;
    }

    nav .right a span{
        display: none;
    }

    .hero-section{
        padding: 0 20px;
    }

    .hero-section .text h2{
        font-size: 30px;
    }

   
}

.skillss h2{
    color: var(--button-color);
    font-size: 35px;
   text-align: center;
   margin-bottom: 10px;
}

.skillss p{
    color: white;
    text-align: center;
    font-weight: 700;
}

.skillss{
    padding: 0 50px;
    margin-bottom: 40px;
}

.cells {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cell {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--button-color);
    color: black;
    background-color: var(--button-color); 
    border-radius: 25px;
    
   
    padding: 20px 30px;
    
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cell span {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.cell:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}





.cells2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 100px;
}

.cell2 {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--button-color);
    color: black;
    background-color: var(--button-color); 
    border-radius: 25px;
    
   
    padding: 20px 30px;
    
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cell2 span {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.cell2:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.skills2 h2{
    color: var(--button-color);
    font-size: 35px;
   text-align: center;
   margin-bottom: 10px;
}

.cell2 img {
    max-width: 100%;
    height: auto;
    width: 50px; /* Adjust this value as needed */
    margin-bottom: 10px;
}

.cell2{
    display: flex;
    flex-direction: column; /* Ensures image and text stack vertically */
    align-items: center;
    justify-content: center;
    
    text-align: center; /* Centers the text under the image */
}
.contact-section {
    padding: 40px 20px;
    width: 90%; /* Makes the contact section span the full width */
    max-width: none; /* Removes the constraint of 1000px */
    margin: 0 auto;
}

.group {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap; /* makes it responsive on small screens */
}

.text-block {
    flex: 1; /* Makes text block take up half the space */
    max-width: 50%; /* Ensure it doesn't grow beyond half of the container */
}

.text-block h2 {
    font-size: 32px;
    color: var(--button-color);
    margin-bottom: 15px;
}

.text-block p {
    font-size: 20px;
    color: white;
    font-weight: 700;
}

form {
    flex: 1; /* Makes form take up half the space */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 50%; /* Ensure form takes half the width */
}

form label {
    font-size: 14px;
    font-weight: bold;
    color: var(--button-color);
}

form input,
form textarea {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    color: black;
    background-color: var(--button-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

form button:hover {
    background-color: var(--button-hover-color);
}

/* For smaller screens */
@media (max-width: 900px) {
    .group {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .contact-section h2 {
        font-size: 35px;
    }
    .text-block {
        max-width: 80%; /* Allow more horizontal space on smaller screfdfens */
        font-size: 10px;
    }

    form {
        width: 100%;
        max-width: 500px;
    }
}

/* Make skills2 bubbles smaller on phones */
@media (max-width: 600px) {
    .cell2 {
        padding: 6px 10px;
        border-radius: 15px;
        min-width: 60px;
        max-width: 80px;
    }
    .cell2 img {
        width: 24px;
        margin-bottom: 5px;
    }
    .cell2 span {
        font-size: 12px;
    }
}



.projects-section {
    padding: 50px 20px;
    background-color: black; /* or any color matching your theme */
    color: white;
    text-align: left;
  }
  
  .projects-section h2 {
    font-size: 35px;
    color: var(--button-color);
    margin-bottom: 10px;
    text-align: center;
  }
  
  .projects {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .project {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
  }
  
  .project h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--button-color);
  }
  
  .project p {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .project a {
    color: #4da6ff;
    text-decoration: underline;
    font-weight: bold;
  }

  .video-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
   
  }

.video-responsive {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
  
  iframe {
    max-width: 100%;
    border-radius: 10px;
    width: 240px; /* smaller width */
    height: 427px; /* keeps a 9:16 ratio */
  }

  @media (max-width: 600px) {
    .project-section {
      padding: 20px 10px;
    }
  
    .project h3 {
      font-size: 20px;
    }
  
    .project p {
      font-size: 14px;
    }
  }

/* Force cell2 bubbles smaller on mobile */
@media (max-width: 600px) {
    .cell2 {
    padding: 12px 18px !important;
    border-radius: 20px !important;
    min-width: 90px !important;
    max-width: 120px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12) !important;
    }
    .cell2 img {
    width: 28px !important;
    margin-bottom: 7px !important;
    }
    .cell2 span {
    font-size: 13px !important;
    }

}
  
  



