
 /*------------------------------------------
CSS RESET BEGINS - Three Designed Objects
---------------------------------------------*/


/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
    box-sizing: border-box;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
    box-sizing: border-box;
    }

/*reset ends here*/


 /*------------------------------------------
GENERAL PAGE STYING 
---------------------------------------------*/

body {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif; 
    font-size: clamp(1.3rem,1.8vw,1.8rem); 
    line-height: clamp(1.6rem, 2.5vw, 2.8rem);
    background-color: #f0f8ff;
    color: #1d1d1d;
    
}

h1, h2 { 
    font-family: 'Poppins', 'Arial Black', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 3rem;
    color: #013046;
    clear: both;
}

h1 {
    margin-top: 5rem;
}

h2 {
    margin-top: 3rem;
}

p {
    margin-top: 3rem;
}

main {
    width: 85%;
    margin: 0 auto;
    max-width: 1000px;
    margin-bottom: 6rem;
}

.scissor-page main p:nth-of-type(4) {
    clear: both;
}

 /*------------------------------------------
IMAGE ALIGNMENTS/STYLIZATION
---------------------------------------------*/

img {
    width: 40%;
    height: auto;
    margin-top: 3rem;
}

img[src*="open-water-bottle"],
img[src*="zoomed-out-full-scissors"] {
    float: right;
    margin:0 0 2rem;
    padding-left: 2rem;
    max-width: 400px;
}

img[src*="full-length-water-bottle"],
img[src*="close-up-scissor-handle"],
img[src*="power-bank-cable-retention"] {
    float: left;
    margin: 0 0 2rem;
    padding-right: 2rem;
}

.img-container { 
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    gap: 2rem;
}

 /*------------------------------------------
NAVIGATION STYLING
---------------------------------------------*/

/* -------fullwidth site naviagtion bar stylization ---------*/

nav {
    width: 90%;
    margin: 0 auto 3rem;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    margin-top: 3rem;
    padding: .5rem;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    display: block;
    font-weight: 450;
    font-size: clamp(1.2rem, 2vw, 3rem);
    color: #013046;
}

/*unvisisted link and visited link*/
 nav ul li a:link,
 nav ul li a:visited {
    color: #013046;
}
 
/* For hover, focus and active  */

 nav ul li a:hover,
 nav ul li a:focus,
 nav ul li a:active {
    color: #4a5053;
    transition: background-color 0.3s ease-in-out 0.2s; 
}

/* -------side bar menu bar stylization and function -------------*/

.sidebar {
    position: fixed;
    top: 0 ;
    right:0;
    height: 100vh;
    width: 40%;
    margin: 0 auto;
    padding-right: 1rem;
    display: none;
    flex-direction: column;
    z-index: 999;
    backdrop-filter: blur(10px);
    background-color: #d7e1e9;
    box-shadow: -2px 0 10px #1d1d1d50;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li:first-child {
    margin-top: 3rem;
}

.sidebar li {
    width: 100%;
    margin-left: 1rem;
}

.sidebar a {
    width: 100%;
}

/* Navigation Toggle */

.nav-toggle {  /*the icon for bar */
    position: absolute;
    cursor: pointer;
    margin: 0 1.5rem 2rem;
    right: 0;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: block;
}  

svg {
    fill: #013046;
    width: 3rem;
}

/*close icon */
.close {
    display: none;

}

/*menu icon */
.menu {
    margin-top: 0.2rem;
}

/* ---Checkbox for Toggle --- */

#nav-responsive{
    display:none;
}

/* Toggle Actions */

#nav-responsive:checked ~  .sidebar {
    display: flex;
}

#nav-responsive:checked ~ label.nav-toggle .close {
    display: block;
}

#nav-responsive:checked ~ label.nav-toggle .menu{
    display: none;
}

/* Main Navigation */
.main-nav {
    display: flex; /* Show main navigation by default */
    gap: 2rem;
    list-style-type: none;
    justify-content: flex-end;
    white-space: nowrap;    
}

 /*------------------------------------------
SPECFIC HOMEPAGE STYLING 
---------------------------------------------*/

.home-page main {
    text-align: center;
    max-width:70vw;
}

.home-page main p {
    margin-top: 1.5rem;
}

.home-page {
    margin-top: 10rem;
}

/* specific to homepage naviagtion*/

nav[aria-label="primary"] {
    display: flex; /* Enable Flexbox */
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    border: dashed #013046;
    border-radius: 1rem;
    width:80%;
    height: fit-content;
    align-items: center;
    margin: 0 auto;
}

nav[aria-label="primary"] ul.main-nav {
    list-style: none; /* Removes default list styling */
    display: flex; /* Aligns the items in a row */
    justify-content: center; /* Centers the list items horizontally */
    padding: 2rem;
    margin: 0;
}

nav[aria-label="primary"] ul.main-nav li {
    margin: 0 auto; /* Adds space between the list items */
}

 /*------------------------------------------
RESPONSIVE DESIGN 
---------------------------------------------*/

/*----- RESPONSIVE FOR (NAVIGATION) ------*/

/* changing to column for main menu home page*/

@media (max-width: 650px) {
    .main-nav {
        display:flex;
        flex-direction: column;  /* Stack links vertically on small screens */
        margin: 1.2rem;
        align-items: center; 
    }
    .main-nav ul li {
        margin-right: 0; /* Remove right margin in column layout */
        margin-bottom: 1rem; /* Add spacing between items */
    }
    .main-nav ul li:first-child {
        margin-left: 0rem;
    }
    .main-nav ul li:last-child {
        margin-right: 0rem; /* targeting my last link taking off any default margin */
    }
}  

@media (max-width: 790px) {
   
/* Show sidebar and toggle icon on small screens */
    .nav-toggle {
        display: block; /* Only visible on screens <= 450px */
        margin-top: 2rem;
    }
    .sidebar{
        display: none; /* Sidebar will only show when checkbox is checked */
        width: 90%;
    }

/* Hide main navigation on small screens */ 
    .main-nav { 
    display: none;
    }
    .hero-section {
    padding: 5rem 0;
    }
}
   
@media (min-width: 791px) {
    /* Hide sidebar and toggle icon on larger screens */
    
    .sidebar {
        display: none;
    }
    .nav-toggle {
    display: none; /* Ensure toggle is hidden */
    }

/* Show main navigation on larger screens */
    .main-nav {
        display: flex;
    }
    
    .sidebar li {
        display: flex;
        flex-direction: row;
        margin-top: 0.5rem;
        padding: .5rem;
        list-style-type: none;
        justify-content: flex-end;
        white-space: nowrap;
    }
}
