@media (max-width: 900px) {
    .hexagone-container.hex-honeycomb {
        grid-template-columns: repeat(3, 120px);
        gap: 15px 5px;
    }
}

@media (max-width: 600px) {
    .hexagone-container.hex-honeycomb {
        grid-template-columns: repeat(2, 120px);
        gap: 10px 5px;
    }
}

@media (max-width: 800px) {
    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .top-nav .logo,
    .top-nav .openbtn {
        justify-content: flex-start;
    }

    .top-nav .language-switch,
    .top-nav > div:last-child {
        justify-content: flex-start;
        width: 100%;
    }
}

:root {
    --primary-color: #FF5C00;
    --secondary-color: #1F51FF;
    --background-color: #0f172a;
    --font-family: "OpenDyslexic", "Arial", sans-serif, "Play";
    --border-radius: 8px;
  }

*
{
    margin: 0%; 
    box-sizing: border-box;
}

body
{
    background-color: var(--background-color);
    font-family: "OpenDyslexic", "Play",Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: aliceblue;
}

header
{
    position: sticky;
    top: 0;
    background: #05080E;
    background: linear-gradient(90deg, rgba(5, 8, 14, 1) 0%, rgba(8, 22, 33, 1) 50%, rgba(6, 21, 51, 1) 100%);
    z-index: 100;
} 

header img{
    max-width: 3rem;
    display: flex;
}
.logo {
    font-family: "Play", serif;
    font-weight: 700;
    font-size: 35px;
    font-style: normal;
}
  
main
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.content-container
{
    grid-column: 2/3;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #0f172a;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 5rem;
    margin: 1rem 0 0 1rem;
  }


.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }


  .openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #05080e;
    color: aliceblue;
    padding: 10px 15px;
    border: none;
  }

.typewriter
{
    font-size: 13px;
}

.typewriter h3
{
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid #FF5C00;
    margin: 0%;
    letter-spacing: .15em;
    animation: 
    typing 3.5s steps(30, end),
    blink-caret .5s step-end infinite;
    justify-content: left;
    width: fit-content;
}

@keyframes typing 
{
    from { width: 0 }
    to { width: 100% }
}


@keyframes blink-caret 
{
    from, to { border-color: transparent }
    50% { border-color: orange }  
}

html
{
    scroll-behavior: smooth;
}

.top-nav {
    display: flex;
    align-items: center;   
    justify-content: space-between; 
    padding: 1rem 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-nav > * {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-nav .logo,
.top-nav .openbtn {
    flex-shrink: 0;
}

.top-nav .language-switch,
.top-nav > div:last-child {
    justify-content: flex-end;
}

.top-nav button {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: #1f51ff;
    color: white;
    cursor: pointer;
}

.top-nav button:hover {
    background-color: #ff5c00;
}

.top-nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: aliceblue;
    text-decoration: none;
}

.left-items, .right-items {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.imgLinks
{
    padding-top: 5rem;
}

.imgLinks a
{
    padding: 5px;
}

.imgLinks img
{
    max-width: 25px;
    height: auto;
}

#about
{
  --s: 20px;
  border: 8px solid  #FF5C00; 
  mask: 
    conic-gradient(#000 0 0) content-box,
    conic-gradient(at var(--s) var(--s),#0000 75%,#000 0) 
    0 0/calc(100% - var(--s)) calc(100% - var(--s));
    padding: 5px;


    margin-bottom: 4rem;

}

#experience
{
    --s: 20px;
    border: 8px solid  #00F0FF; 
    mask: 
      conic-gradient(#000 0 0) content-box,
      conic-gradient(at var(--s) var(--s),#0000 75%,#000 0) 
      0 0/calc(100% - var(--s)) calc(100% - var(--s));
      padding: 5px;


      margin-bottom: 4rem;
}

#experience h3 {
    padding-top: 2rem;
}

#projects
{
    --s: 20px;
    border: 8px solid  #FF003C; 
    mask: 
      conic-gradient(#000 0 0) content-box,
      conic-gradient(at var(--s) var(--s),#0000 75%,#000 0) 
      0 0/calc(100% - var(--s)) calc(100% - var(--s));
      padding: 5px;


      margin-bottom: 4rem;

}

.projects-year1
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    justify-items: center;
    padding: 1rem;
}

.projects-card
{
    border-radius: 15px;
    background: #cc0033 ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    padding: 1rem;
    width: 200px;
    max-width: 200px;
}

.projects-year1 a
{
    text-decoration: none;
} 


.projects-year1 a:focus, a:hover
{
    opacity: 0.9;
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05); 
    transform: scale(1.05); 
    z-index: 2;
}


.projects-year1 img
{
    max-width: 200px;
    width: auto;
    align-content: center;
    
}


#portfolio
{
    --s: 20px;
    border: 8px solid  #B026FF; 
    mask: 
      conic-gradient(#000 0 0) content-box,
      conic-gradient(at var(--s) var(--s),#0000 75%,#000 0) 
      0 0/calc(100% - var(--s)) calc(100% - var(--s));
      padding: 5px;
    
      border-radius: 5px;
      background-color: #141134;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: auto;
      width: 70%;
      margin: 0 auto;
}

#portfolio h2{
    text-align: center;
    margin: 1rem; 
}

form
{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

hr {
  width: 100%;
  margin: 1.5rem 0;
  opacity: 0.3;
}

h3 {
  margin-bottom: 0.5rem;
}

label {
    font-weight: 600;
}

input[type=email], input[type=password] 
{
    width: 400px;
    padding: 12px 20px;
    border: 1px solid aliceblue;
    border-radius: 4px;
    background-color: #05080e;
    color: aliceblue;
    font-size: 1rem;
}

::placeholder {
    color: #94a3b8;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type=submit] {
    width: 100%;
    background-color: #005661;
    color: aliceblue;
    padding: 14px 20px;
    margin-top: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

input[type=submit]:hover 
{
    background-color: #871fc4;
}

input:focus,
button:focus {
    outline: 2px solid #FF5C00;
    outline-offset: 2px;
}


.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    min-height: 1.2em;
    text-align: center;
}

footer
{
    padding: 2rem 2rem;
    color: aliceblue;
    text-align: center;
}

.side-menu
{
    display: flex;
    flex-direction: column;
    font-size: 20px;
    padding: 1rem;
    font-size: 1.2rem;
}

.side-menu a:hover
{
    text-decoration: underline;
    text-underline-offset: 0.3em;

}

a
{
    padding: 0.5rem 0;
    text-decoration: none;
    color: white;
    display: inline;
}

.menu a:hover
{
    text-decoration: underline white 5px;

}

footer img
{
    max-width: 20px;
    max-height: 20px;
}


.footer-links
{
    display: flex;
    justify-content: center;
}

.sunnySocks-container{
    display: flex;
}


.sunnySocks-container img
{
    max-width: 80%;
}

.dropdown-btn {
    padding: 30px 20px;
    width: 100%;
    max-width: 700px;
    font-size: 16px;
    font-family: "OpenDyslexic", "Play",Arial, sans-serif;
    background-color: #283f75;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    border: solid 2px #292870;

}

.dropdown-btn:hover {
    background-color: #1d65b0;
}

.dropdown-content {
    display: none; 
    margin-top: 10px;
    border: 1px solid aliceblue;
    background-color: aliceblue;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dropdown-content iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.filter-btn:hover,
.filter-btn:focus{
    background-color: #ccc;
    color: #080f21;
}

.filter-btn.active{
    pointer-events: none;
    background-color: #080f21;
    border: solid 2px #292870;
    color: aliceblue;
    box-shadow: 0 0 .5rem rgb(0 0 0 / .2);
}

.filter-btn{
    color: aliceblue;
    padding: 1rem;
    margin: 0.5rem;
    font-family: "OpenDyslexic", "Play",Arial, sans-serif;
    border-radius: 15px;
    border: solid 2px #6361eb;
    background-color: #283f75;
}

.hexagone-container.hex-honeycomb {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    justify-content: center;
    gap: 20px 10px; 
    margin-top: 2rem;

}

.hexagone-container.hex-honeycomb .hex {
    width: 120px;
    height: 138px;
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    background: #ff5c00;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    transition: transform 0.2s ease, background 0.2s ease;
    position: relative;
}

.hexagone-container.hex-honeycomb .hex:nth-child(odd) {
    margin-top: 69px; /* half hex height */
    background: #1f51ff;
    color: white;
}

.hex {
  position: relative;
  width: 120px;
  height: 138px;
  background: #ff5c00;
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hex:hover {
    transform: scale(1.08);
    background: #00f0ff;
    color: #0f172a;
    cursor: pointer;
    z-index: 2;
}

.hex img {
    width: 46px;
    filter: brightness(1.2) contrast(1.3) drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.hex:hover img {
  position: absolute;
  bottom: 18px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hex span {
  position: absolute;
  bottom: 18px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hex:hover span {
  opacity: 1;
}


.small-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 1rem;
}

.small-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  padding: 10px;
  background-color: #283f75;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  transition: transform 0.2s ease, background 0.2s ease;
}

.small-card img {
  width: 40px;
  margin-bottom: 6px;
  filter: brightness(1.2) contrast(1.3);
}

.small-card:hover {
  background-color: #00f0ff;
  color: #0f172a;
  transform: scale(1.05);
}
