
@import url('https://fonts.googleapis.com/css2?family=Iosevka+Charon:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Iosevka+Charon:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ====== ROOT VARIABLES ====== */
:root {
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;

    --color-primary: #0F0F0F;
    --color-secondary: #ff4d4d;
    --color-background: #274D6A;
    --color-text: #f5f0f6;
    --color-muted: #324A5F;

    --color-primary-light: #2C2C2C;
    --color-primary-dark: #171717;
}

/* ====== GLOBAL STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0.05em;
    max-width: 100%;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--body-font);
    font-size: var(--font-base);
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
    width: 100%;
    overflow-x: hidden;
    
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 0;
}

h1 { font-size: var(--font-4xl); color: var(--color-primary); z-index: 10; }
h2 { font-size: var(--font-3xl); font-weight: 600; color: var(--color-primary); margin-bottom: 20px; z-index: 10; }
p { z-index: 1; color: var(--color-text); }
a { color: var(--color-secondary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-primary-dark); }
button {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--color-primary-light); }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    width: 100%;
    color: white;
}

.nav-link { 
    display: none; 
    list-style: none; gap: 20px;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 20px;
    z-index: 9999; }
 
#menu-btn{
    position: relative;
    z-index: 10000;
}   
    
.navbar .fa-bars {
    font-size: 1.8rem;   /* size of the icon */
    cursor: pointer;      /* make it clickable */
    display: block;       /* always visible on mobile */
    color: #fff;          /* icon color */
    transition: transform 0.3s ease, color 0.3s ease;
}
.nav-link {
    display: none;   /* hide by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 60px; /* adjust depending on nav height */
    right: 0;
    background-color: var(--color-primary);
    width: 100%;
    padding: 20px;
}
.nav-link.active {
    display: flex; /* show when clicked */
}


/* ====== HERO SECTION ====== */
#hero {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-direction: column; /* mobile first */
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 90%;
    padding: 20px 0;
    border-radius: 10px;
    background: var(--color-background);
    box-shadow: var(--color-primary-light);
    text-align: center;
}

#hero img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0 0 0;
    object-fit: cover;
    

}

#hero h1, #hero h2, #hero p, #hero a {
    margin-bottom: 10px;
}
input, select, textarea{
    display: block;
    width: 60%;
    max-width: 400px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: transparent;
    border: 2px solid black;
    color: inherit;
    outline: none;
    box-sizing: border-box;
}
label{
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-container{
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}
.connect-section{
    margin-top: 40px;
    text-align: center;
}

/* ====== PROJECT CARDS ====== */
section.project-card {
   /* display: grid;
    grid-template-columns: auto 1fr auto; /* mobile first */
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    box-shadow: var(--color-primary-light);
    transition: transform 0.3s ease;
}

section.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

section.project-card h2 {
    font-size: var(--font-2xl);
    overflow: hidden;         /* hide excess text */
    text-overflow: ellipsis;
    display: block;
    max-height: 3em;
    line-height: 1.2em;
    padding-left: 10px;  /* show “…” if too long */
}

section.project-card:hover { transform: translateY(-5px); }

section.project-card img {
    border-radius: 16px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.gallery-grid{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}
.intrest-gallery h2{
    margin-top: 5px;
    width: 100%;
}

.intrest-gallery{
    grid-area: gallery;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0px ;
    text-align: center;
    gap: 10px;
    margin: 0;
    
}

.gallery-grid img{
    width: 100%;
    height: 180px;
    aspect-ratio: 1/1;
    border-radius: 5px;
    object-fit: cover;

}


.card {
    display: grid;
    grid-template-columns: 1fr; /* mobile first */
    gap: 20px;
    padding: 15px;
    max-width: 100%;
    margin: 0 auto;
}

/* ====== FOOTER ====== */

.site-footer {
  background-color: var(--color-primary); /* Dark blue/black from your image */
  color: var(--color-text);
  padding: 40px 20px;
  font-family: var(--body-font);
  text-align: left;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  
}

/* MOBILE LAYOUT: Stacked vertically */
.footer-row{
  display: flex;
  flex-direction: column; /* Columns stack on top of each other */
  gap: 20px; /* Space between the blocks */
  padding: 0 20px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.footer-column h3 {
  color: var(--color-secondary); /* Reddish accent color from your image */
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: lowercase;
}

.footer-column p, .footer-column li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--body-font); /* Light grey text */
}

.footer-column ul {
  list-style: none;
}
.footer-column a:hover {
    color: #ff6600;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1f2937;
  
  font-size: 0.8rem;
  color: var(--body-font);
  width: 100%;
}


/* COPYRIGHT */
/*.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
    color: #aaa;
}
*/



.footer-columns { display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer-columns > * { min-width: 150px; }

footer a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ====== MAGAZINE GRID ====== */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    grid-template-areas:
        "header"
        "main"
        "gallery"
        "aside";
    gap: 20px;
    padding: 15px;
    width: 100% ;
    box-sizing: border-box;
    

}
#hero-image{
    max-width: none;
    width: 100%;
    height: auto;
}
.intrest-gallery .gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 10px;
    width: 100%;
    max-width: 100%;
}
.intrest-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}
    
#hero-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}



 Grid sections */
header { grid-area: header; width: 100%; }
.main-content { grid-area: main;
    width: 100%; 
    display: flex; 
    flex-direction: column;
     gap: 15px; 
     text-align: center; }
.intrest-gallery { grid-area: gallery; width: 100%; 
    display: grid; 
    grid-template-columns:  1fr; 
    gap: 10px; }
.sidebar { grid-area: aside; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.mag-footer { grid-area: footer; }

/* ====== MEDIA QUERIES ====== */

/* TABLET */
@media (min-width: 768px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "header header"
            "main gallery"
            "aside aside";
        gap: 25px;
        padding: 25px;
    }
      .footer-row {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-column {
        flex: 1;           /* evenly divide space */
        min-width: 150px;  /* prevent shrinking too much */
        padding: 0 1rem;
    }
    .nav-link {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
    }

    


     .navbar .fa-bars {
        display: none;}
    .card{ grid-template-columns: repeat(3, 1fr);
    text-overflow: ellipsis;
    font-size: 1.25rem;}
    .main-content { flex-direction: row; justify-content: space-between; }
    .intrest-gallery { grid-template-columns: repeat(2, 1fr); }
    .sidebar { flex-direction: row; justify-content: space-between; }
    section.project-card { grid-template-columns: repeat(2, 1fr); }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .magazine-grid {
         display: grid;
    grid-template-columns: 2fr 1fr;
    /*grid-template-areas:
        "header header"
        "main gallery"
        "aside aside";*/
     gap: 30px; 
    /* padding: 20px; */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-background);
    border: 5px solid rgb(233, 50, 50);
    flex: 1 0 auto;
    }
    
   #hero{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 40px;
   }
   #hero img{
    flex: 1;
    max-width: 350px;
    width: 100%;
   }
   #hero-text{
    flex: 1;
   }
.navbar .fa-bars {
        display: none;}

    .main-content { grid-area: main;
        flex-direction: column;
        width: 100%;
        text-align: left; }
    .intrest-gallery { grid-area: gallery;
        display: grid;
        min-width: 200px;
        width: 100%;
        grid-template-columns: repeat(1, 1fr); }
    .intrest-gallery img{
        height: 200px;
    }
    .intrest-gallery .gallery-grid{
        grid-template-columns: 1fr;
    }
    section.project-card { 
        display: block; /* each card is just a block */
    width: 100%;
       }
    }   

/* LARGE DESKTOP */
@media (min-width: 1440px) {
    .magazine-grid {
        grid-template-columns: 300px 1fr 350px;
        max-width: 1400px;
        margin: 0 auto;
        gap: 40px;
        padding: 40px;
    }
    
    .intrest-gallery { grid-template-columns: repeat(4, 1fr); }

.navbar .fa-bars {
        display: none;}
        .footer-row {
        gap: 3rem;
    }
   

    .footer-row {
        gap: 3rem;
    }
    .site-footer {
        padding: 3rem 4rem 2rem 4rem;
    }
    .footer-column h3 {
        font-size: 1.4rem;
    }
    .footer-column p,
    .footer-column a,
    .footer-column li {
        font-size: 1rem;
    }
}