@import url('https://fonts.googleapis.com/css2?family=Barlow: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=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow: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=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/*CONFIG*/
/*Breakpoint Strategy*/

/* Mobile: 320px - 768px (default) */
/* Tablet: 768px - 1024px */
/* Desktop: 1024px+ */
/* Large Desktop: 1440px+ */


/*Mobile First Approach*/
:root{
/*Colors*/
--primary-red:hsl(7, 99%, 70%);
--primary-yellow:hsl(51, 100%, 49%);
--graphic-text-green:hsl(167, 40%, 24%);
--photography-blue: hsl(198, 62%, 26%);
--footer-green:hsl(167, 34%, 41%);

--gray-950: hsl(212, 27%, 19%);
--gray-600: hsl(213, 9%, 39%);
--gray-550: hsl(232, 10%, 55%);
--gray-400: hsl(210, 4%, 67%);
--white: hsl(0, 100%, 100%);


/* Spacing system */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

 /* Typography */
--font-primary:'Barlow','sans-serif';
--font-header:'Fraunces','sans-serif';
--font-size-body: 16px;
--font-size-primary: 18px;
--font-size-header-lg: 48px;
--font-size-header-md: 28px;
--font-size-header-sm: 20px;
--font-weight-header-lg:900;
--font-weight-header-md:700;
--font-weight-header-sm:600;


}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    /* max-width: 100%;  Global constraint  */
}
/* Exception for elements that need to exceed parent width intentionally
.hero-section,
.header,
.footer {
    max-width: none;
} */
/*TODO:  SHOW VARIATION IN FONT AT DIFF VIEWPORTS*/
/*TODO:  FONTS MUST LOOK AS CLOSE TO THE DESIGN AS POSSIBLE*/
/*TODO:  ADD HOVER STATE IN PC'S AND DECORATION IN BIG SCREENS*/


body{
    font-family:var(--font-primary);
    line-height:1.6;
    width:100%;
    min-height:100vh;
    overflow-x: hidden;  /*strict constraint for mobile devices*/
}

a{
    text-decoration: none;
}

/*----------------------------------------------------------------------------------------------------------------------------------------*/
/*HEADER*/

/*TODO:  CENTER HAMBURGER MENU*/


.header{
    width:100%;
    background-color:#3dbffe;
    color:var(--white);
    position:fixed;   
    z-index:1;
    top:0px;

}
.brand a{
    color:var(--white);
    font-family:var(--font-header);
    font-size:var(--font-size-header-md);
    font-weight:var(--font-weight-header-md);
    cursor:pointer;
}
.navbar{
    padding:0  var(--space-md) ;
    display:flex;
    align-items:center;
}
.nav-toggle{
    margin-left:auto;
    cursor:pointer;
    border:none;
    background:transparent;
    display: block;
}
.nav-toggle:focus-visible{
    outline:none;   /**gets rid of ugly user agent outline*/
}
.hamburger-menu{
    position: absolute; /**wrt to header*/
    top: 180%;
    /* right:25%; */
    right:var(--space-md);  
    width: calc(100% - 3rem);
    max-width: 320px;
    background-color: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.hamburger-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hamburger-menu-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}
.hamburger-menu-item {
    color: var(--gray-550);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-header-sm);
    transition: color 0.25s ease;
}
.mobile-contact-btn {
    display:block;
    padding-inline:var(--space-sm);
    padding-block:calc(var(--space-sm)/2);  
    background-color: var(--primary-yellow);
    color: var(--gray-950);
    font-family: var(--font-header);
    font-weight: var(--font-weight-header-md);
    font-size: var(--font-size-body);
    text-transform: uppercase;
    border-width:1px;
    border-color:transparent;
    border-style:solid;
    border-radius:var(--space-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Triangle Arrow */
.mobile-menu-arrow {
    position: absolute;
    top: -30px;
    right: 0px;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 0px solid transparent;
    border-bottom: 30px solid var(--white);
}

.nav-menu{
    display:none;
}
.contact-btn{
    display:none;
}



@media screen and (min-width:768px){
    .nav-menu{
    margin-left:auto;
    padding: var(--space-xs) 0;  /*padding decides the height of entire header*/
    min-width:35vw;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:clamp(2rem,3.5vw,3rem);
}
    .nav-menu >*{
        cursor:pointer;
        color:var(--white);  /**override user agent styles for anchor*/
        font-weight:var(--font-weight-header-sm);
        font-size:var(--font-size-body);
        transition: all 0.3s ease;
    }
    .nav-menu >*:hover{
        color:var(--gray-950);

    }
    .nav-menu >*:active{
        color:var(--gray-950);
    }

    .contact-btn{
    display:block;
    padding-inline:var(--space-sm);
    color:var(--gray-950);              /*to override user agent color declaration (user agent applies to all form elements)*/
    font-family:var(--font-header);
    font-weight:var(--font-weight-header-md);
    font-size: var(--font-size-body);
    padding-block:calc(var(--space-sm)/2);
    border-width:1px;
    border-color:transparent;
    border-style:solid;
    border-radius:var(--space-md);
    background-color:var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}
    .contact-btn:hover{
        color:var(--white);
        background-color:hsla(0 0% 100% /25%);
    }

    .nav-toggle{
        display:none;
    }
    .hamburger-menu{
        display:none;
    }


}
/*----------------------------------------------------------------------------------------------------------------------------------------*/

/*HERO-SECTION*/
.hero-section{
    height:120vh;
    width:100%;
    position:relative;
    /* margin-block-start:-108px; */
    background-color:black;
    background-image:url("./images/mobile/image-header.jpg");
    background-size:cover;
    aspect-ratio:750/1076;
    /* background-position:0px -64px;     To get the orange up!!!*/   
    background-position:center;

}
.hero-content-box{
    color:var(--white);
    padding-block-start: calc(var(--space-2xl)*3.5);
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
    text-align:center;
    gap:calc(var(--space-lg)*2);


}
.hero-content-box p:nth-child(1){
    max-width:100%;
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 8vw, var(--font-size-header-lg));
    font-weight:var(--font-weight-header-lg);
    letter-spacing:0.2em;
    margin-inline-end: -0.2em;  /* Compensate for letter-spacing overflow */
}
@media screen and (max-width:360px){
    .hero-content-box p:nth-child(1){
        line-height: 1.1; /* Tighter line height for better mobile display */
        letter-spacing: 0.15em;
        margin-right: -0.15em;
        font-size: clamp(2.25rem, 7vw, 2.5rem);
    }
}
@media screen and (min-width:768px){
    .hero-section{
        background-image: url("./images/desktop/image-header.jpg");
        aspect-ratio:9/5;

    }
}
/*----------------------------------------------------------------------------------------------------------------------------------------*/

/*PROBLEM-SOLUTION SECTION*/
/*TODO: ENHANCEMENTS*/
/*TODO: FIX CONTENT BOX OCCUPYING LESSER WIDTH , MAYBE INCREASE PADDING FOR TABLETS */
/*TODO: FIX UGLY IMAGE SCALING FROM AROUND 450PX TO 1000PX */
/*FIXES : 1. REMOVE MIN-HEIGHT OF 100VH , REMOVE GRID TEMPLATE ROW 50VH 50VH , LET CONTENT DETERMINE HEIGHT -> RESOLVES HORIZONTAL
 OVERFLOW SINCE IMAGE WANTS TO OCCUPY 50VH , FORCES IN WIDTH INCREASE BY MAINTAINIG ASPECT RATIO*/
/*FIXES : 1. IF IT'S ESSENTIAL FOR IMAGE AND CONTENT BOX TO BE OF SAME HEIGHT , SET A/R AND ADJUST PADDING */

.problem-solution-section1,.problem-solution-section2{
    display:grid;
    grid-template-columns:1fr;
    /* grid-template-rows: 50vh 50vh; */
    /* min-height: 100vh; */
}

.problem-solution-section1 .image-box{
    background-image:url("./images/mobile/image-transform.jpg");
}

.problem-solution-section2 .image-box{
    background-image:url("./images/mobile/image-stand-out.jpg");
}
.content-box{
    height:100%;
    min-height:400px;  /*hacky fix*/
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align:center;
    display:flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    align-items:center;
}
.content-box p:first-child{
    color:var(--gray-950);
    font-family: var(--font-header);
    font-weight:var(--font-weight-header-lg);
    font-size:var(--font-size-header-md);
}
.content-box p:nth-child(2){
    color:var(--gray-550);
    font-family: var(--font-primary);
    font-size:var(--font-size-body);
    font-weight: var(--font-weight-header-sm);
}
.content-box p:last-child{

}
 .underline-text {
    position: relative;
    display: inline-block;
    color:var(--gray-950);
    font-family: var(--font-header);
    font-weight:var(--font-weight-header-sm);
    font-size:var(--font-size-primary);
    text-transform: uppercase;
    cursor: pointer;
    /* transition: all 0.3s ease; */
}
        
.underline-text::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -6px;
    width: 110%;
    height: 8px;
    border-radius: 4px;
    transition: all 0.3s ease-out;
    opacity:30%;
}
        
.underline-text:hover::after {
    opacity:75%;
}
.problem-solution-section1 .underline-text::after{
    background-color:var(--primary-yellow);
}
.problem-solution-section2 .underline-text::after{
    background-color:var(--primary-red);
}

.image-box{
    /* min-height:350px; */
    height:100%;
    width: 100%; 
    background-size: cover;
    background-position: center;
    aspect-ratio:125/104;
}
@media screen and (min-width: 320px) and (max-width: 450px) {
  /* Your CSS rules here */
  .content-box{
    /* min-height:350px; */
  }
}
@media screen and (min-width:1024px){
    .problem-solution-section1,.problem-solution-section2{
        grid-template-columns:1fr 1fr;
        grid-template-rows: 1fr;
    }

    .content-box{
    padding: clamp(2rem, 5vw, 4rem);
    text-align:left;
    align-items:start;
    min-height:0px;

    }

    .problem-solution-section1 .image-box{
        background-image:url("./images/desktop/image-transform.jpg");

    }
    .problem-solution-section2 .image-box{
        background-image:url("./images/desktop/image-stand-out.jpg");
        order:-1;

    }

    .image-box{
        /* min-height:30vh; */
        aspect-ratio:6/5;

    }

}

/* Smooth transitions for better UX */
/* .content-box, .image-box {
    transition: all 0.3s ease;
} */

/* Better text scaling */
/* .content-box p:first-child {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
} */

/* .content-box p:nth-child(2) {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}*/ 

/*----------------------------------------------------------------------------------------------------------------------------------------*/

/*BENEFITS SECTION*/

/*TODO:  FIX TEXT GETTING PLACED AT THE VERY BOTTOM*/
/*TODO:  FIX TEXT GETTING PLACED ON TOP OF THE IMAGES*/


.benefits-section{
    display:grid;
    grid-template-columns: 1fr;
    min-height:50vh;
}
.benefit-card{
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background-size: cover;
    background-position: center;
    aspect-ratio: 5/8;
    display:flex;
    align-items:end;
    justify-content: center;
}
.benefits-section .benefit-card:first-child{
    color:var(--graphic-text-green);
    background-image:url("./images/mobile/image-graphic-design.jpg");

}
.benefits-section .benefit-card:last-child{
    color:var(--photography-blue);
    background-image:url("./images/mobile/image-photography.jpg");
}
.benefit-content{
    padding: clamp(1rem, 2vw, 1.5rem);
    text-align:center;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.5rem); /*is an explicit gap the only way to space things out?*/
}
.benefit-content p:first-child{
    font-family:var(--font-header);
    font-size:var(--font-size-header-md);
    font-weight:var(--font-weight-header-lg);
}
.benefit-content p:last-child{
    font-size:var(--font-size-body);
    font-weight:var(--font-weight-header-sm);
}

@media screen and (min-width:768px){
    .benefits-section{
        grid-template-columns: 1fr 1fr;

    }
    .benefit-card{
        aspect-ratio: 6/5;
    }

    .benefits-section .benefit-card:first-child{
    background-image:url("./images/desktop/image-graphic-design.jpg");


}
.benefits-section .benefit-card:last-child{
    background-image:url("./images/desktop/image-photography.jpg");
}

    
}

/*----------------------------------------------------------------------------------------------------------------------------------------*/

/*TESTIMONIALS*/

/*TODO : FIX TESTIMONIAL CARD NOT OCCUPYING FULL WIDTH WHEN LEFT ALONE IN IT'S ROW*/
.testimonials{
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 2rem);
    min-height: auto;

}
.testimonials-container{
    max-width: 1200px;
    margin-inline: auto;
    }
.testimonials-container > p:first-child{
    /* ! margin-block:auto; Do not use margin-block in scenarios when content determines the height*/ 
    font-family:var(--font-header);
    font-size:clamp(var(--font-size-body),var(--font-size-primary),var(--font-size-header-sm));
    font-weight:var(--font-weight-header-md);
    color:var(--gray-550);
    text-align:center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.3rem; 
}
.content-grid{
    /* margin-inline:auto; */
    display:grid;
    grid-template-columns:1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: start; /* Prevent stretching */
}
.testimonial-card{
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: clamp(1.5rem, 4vw, 2rem);  /* Internal spacing for card content */ 
    max-width: 350px; /* Prevent cards from getting too wide */
    margin-inline:auto; /* ? Center cards within grid cells , wtf is the need for this */
}
.profile{
    width: clamp(60px, 15vw, 80px);
    height:clamp(60px, 15vw, 80px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking */
}
.testimonial-card > p{
    color:var(--gray-550);
    font-size: clamp(var(--font-size-body), 2.5vw, var(--font-size-primary));
    font-weight:var(--font-weight-header-sm);
    line-height: 1.7;
    max-width: 30ch; /* Optimal reading width */

}
.testimonial-signature{
    display:flex;
    flex-direction: column;
    gap:4px;

}
.testimonial-signature p:first-child{
    color:var(--gray-950);
    font-family:var(--font-header);
    font-size:var(--font-size-header-sm);
    font-weight:var(--font-weight-header-lg);
}
.testimonial-signature p:last-child{
    color:var(--gray-400);
    font-size:var(--font-size-body);
    font-weight:var(--font-weight-header-sm);
}
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 5vw, 3rem);
        }
            
    .testimonial-card {
        max-width: none; /* Allow cards to use full width */
        }
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        }
    }
 @media (min-width: 1440px) {
    .testimonials {
        padding: 6rem 2rem; /* ? prevent excessive spacing in large screens, why?*/
    }
            
    .testimonials-header {
        margin-bottom: 5rem;
    }
            
    .content-grid {
        gap: 2.5rem;
    }
}
/*----------------------------------------------------------------------------------------------------------------------------------------*/
/*GALLERY*/
.gallery-grid{
    display:grid;
    grid-template-columns: repeat(2,1fr);
}
.image1,.image2,.image3,.image4{
    background-size: cover;
    background-position: center;
    aspect-ratio: 1/1;
}
.image1{
    background-image: url("./images/mobile/image-gallery-milkbottles.jpg");
}
.image2{
    background-image: url("./images/mobile/image-gallery-orange.jpg");
}
.image3{
    background-image: url("./images/mobile/image-gallery-cone.jpg");
}
.image4{
    background-image: url("./images/mobile/image-gallery-sugar-cubes.jpg");
}
@media screen and (min-width:1024px){
    .gallery-grid{
        grid-template-columns: repeat(4,1fr);
    }
    .image1,.image2,.image3,.image4{
        aspect-ratio: 120/149;
    }
    .image1{
    background-image: url("./images/desktop/image-gallery-milkbottles.jpg");
    }
    .image2{
        background-image: url("./images/desktop/image-gallery-orange.jpg");
    }
    .image3{
        background-image: url("./images/desktop/image-gallery-cone.jpg");
    }
    .image4{
        background-image: url("./images/desktop/image-gallery-sugarcubes.jpg");
    }
}
/*----------------------------------------------------------------------------------------------------------------------------------------*/
/*FOOTER*/

.footer{
    padding:clamp(1.5rem, 10vh, 3.5rem);
    background-color: var(--footer-green);
}
.footer-container{
    margin-inline:auto;
    max-width:256px;
}
.footer-brand{
    text-align:center;
    cursor:pointer;
    margin-block-end:clamp(1.5rem,6vh,3rem)
}
.footer-brand a{
    color:var(--graphic-text-green);
    font-family: var(--font-header);
    font-size:var(--font-size-header-md);
    font-weight:var(--font-weight-header-md);
}
.footer-menu{
    margin-block-end:clamp(3rem,12vh,6rem);
    display:flex;
    justify-content: space-between;
    align-items: center;
}
.footer-menu > *{
    cursor:pointer;
    color:var(--graphic-text-green);
    font-size:var(--font-size-body);
    font-weight:var(--font-weight-header-sm);
    transition: all 0.3s ease;
}
.footer-menu > *:hover{
    color:var(--white);
}
.footer-links{
    display:flex;
    justify-content: center;
    align-items: center;
    gap:clamp(1rem,1.5vw,1.5rem)
}
.footer-links > *{
    cursor:pointer;
    transition: all 0.3s ease;
}
.footer-links > * path{
    transition: all 0.3s ease;
}
.footer-links > *:hover path{
    fill: var(--white);
}
@media screen and (min-width:768px){
    .footer-container{
        max-width:356px;
    }
}

@media screen and (min-width:1024px){
    .footer-container{
        max-width:480px;
    }
}
/*----------------------------------------------------------------------------------------------------------------------------------------*/
/*--I say never be complete. Stop being perfect. I say let's evolve, let the chips fall where they may.--*/