/* ===========================
   VARIABLES GLOBALES
   =========================== */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #007bff;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --spacing: 1rem;
    --bg-image: url("../img/background.png");


 /* ===== Glass backgrounds ===== */
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-dark: rgba(20, 20, 40, 0.55);

  /* ===== Blur ===== */
  --glass-blur-sm: blur(8px);
  --glass-blur: blur(14px);
  --glass-blur-lg: blur(22px);

  /* ===== Borders ===== */
  --glass-border-light: 1px solid rgba(255, 255, 255, 0.14);
  --glass-border: 1px solid rgba(255, 255, 255, 0.10);
  --glass-border-soft: 1px solid rgba(255, 255, 255, 0.06);

  /* ===== Radius ===== */
  --glass-radius-sm: 14px;
  --glass-radius: 22px;
  --glass-radius-lg: 32px;

  /* ===== Shadows ===== */
  --glass-shadow-soft: 
    0 10px 30px rgba(0, 0, 0, 0.25);

  --glass-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35);

  --glass-shadow-heavy:
    0 40px 120px rgba(0, 0, 0, 0.55);

  /* ===== Neon gradients ===== */
  --neon-blue: #4cc9f0;
  --neon-purple: #7209b7;
  --neon-pink: #f72585;

  --neon-gradient: linear-gradient(
    120deg,
    var(--neon-blue),
    var(--neon-purple),
    var(--neon-pink)
  );

  /* ===== Glow ===== */
  --glass-glow-soft:
    0 0 40px rgba(114, 9, 183, 0.25);

  --glass-glow:
    0 0 60px rgba(247, 37, 133, 0.35);

  /* ===== Text ===== */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
}

.d-none {
    display: none !important;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-size: 16px;
    position: relative;
    min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    var(--bg-image) center / cover no-repeat;
}

/* ===========================
   HEADER & NAVIGATION (MOBILE)
   =========================== */
header {
    background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border-light);
    color: var(--text-primary);
    padding: var(--spacing);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 1rem;
}
header nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    justify-self: center;
}

header div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: start;
}



header a.logo img{
    height: 80px;
    border-radius: 100px;
}

#burger-button-display {
    position: fixed;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.nav-menu{
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header nav ul li a{
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
    text-align: center;
}

header .social-icons {
    display: flex;
    gap: 0.8rem;
    justify-self: end;
}

.social-link {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--glass-radius-sm);
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow-soft);
    padding: 5px;
    justify-self: center;

}

.social-link:hover {
    background: var(--glass-bg);
    box-shadow: var(--glass-glow-soft);
    color: var(--neon-pink);
    transform: translateY(-3px);
}



/* ===========================
   MAIN CONTENT (MOBILE)
   =========================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ===========================
   HERO SECTION (MOBILE)
   =========================== */
/* .hero {
    background-color: var(--light-bg);
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
} */

.hero {
    background: url("../img/hero-background.png") center / cover;
    text-align: left;
    color: var(--white);
    padding: 2rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 1;
}

.hero > div {
    position: relative;
    z-index: 2;
}




/* ===========================
   PROJECTS GRID (MOBILE)
   =========================== */

   #projects > div h2 {
    color: var(--text-primary);
    text-align: center;
}

   .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: auto;
    padding: 0;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow-soft);
    color: var(--text-primary);
    opacity: 0.80;
    /* padding: 10px; */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    min-height: 400px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-glow);
}
.project-card div {
    /* padding: 10px; */
    align-items: center;
}

.project-card div div:first-child{
    width: 100%;
    height: 60%;
    padding: 5px;
    box-sizing: border-box;
}

.project-card div div:not(:first-child){
    height: 20%;
    margin-top: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.project-card div div p{
    padding: 0;
    margin: 0;
}
.project-card div h3{
    margin-top: 0.5rem;

}



.project-card img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    margin: auto;
} 

.modal-button-open{
    display: block;
    margin: auto;
    margin-top: 10px;
}

.modal-button-open, .modal-button-close {
    background: var(--neon-gradient);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--glass-radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glass-glow-soft);}

.modal-button-open:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-glow);
}

.modal-button-open:active {
    transform: translateY(0);
}

.modal-wrapper{
    background-color: rgba(0,0,0,0.75);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 100vh;
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-wrapper>div{
    background: var(--glass-bg-dark);
    border: var(--glass-border-light);
    color: var(--text-primary);
    border-radius: var(--glass-radius-sm);
    padding: 20px;
    width: 85%;
    max-height: 90vh;
    overflow-y: auto;
}

.sr-only{
    clip: rect(0,0,0,0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.modal-wrapper.modal-show{
    display: flex;
}

/* img:hover {
    transform: scale(150%);
    transition: transform 0.3s ease;
    position: fixed;
    z-index: 1001;
    top: 10px;
    left: 10px;
} */

/* ===========================
   about (MOBILE)
   =========================== */

.about{
background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow-soft);
    color: var(--text-primary);
    padding: 1rem;
}

.about h2, .contact h2 {
    text-align: center;
}

/* ===========================
   Contact (MOBILE)
   =========================== */
.contact{
background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow-soft);
    color: var(--text-primary);
    padding: 1rem;
}

/* ===========================
   FOOTER (MOBILE)
   =========================== */
footer {
     background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border-light);
    color: var(--text-primary);
    padding: var(--spacing);
    text-align: center;
    padding: var(--spacing);
    margin-top: 2rem;
}

footer .social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    

}
footer div a{
    text-align: center;
}

/* ===========================
   MEDIA QUERIES - TABLET (768px+)
   =========================== */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    #burger-button-display {
        display: none;
    }

    header nav ul {
        text-align: center;
        display: block;
    }

    header nav ul li {
        display: inline-block;
    }

    header nav ul li a {
        border-bottom-width: 0;
        padding: 5px 20px;
    }
   
    .d-none {
        display: block !important;
    }

    .hero {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }

    .projects-grid {
        flex-direction: row;
    }
}


/* ===========================
   MEDIA QUERIES - DESKTOP (1024px+)
   =========================== */
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }

    header {
        padding: 1rem 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   MEDIA QUERIES - LARGE DESKTOP (1440px+)
   =========================== */
@media (min-width: 1440px) {
    body {
        font-size: 19px;
    }

    main {
        padding: 3rem 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}
