:root {
    /* Colors */
    --bg: #f4f4f4;
    --text: #333;
    --sidebar-bg: #222;
    --brand: #00bcd4;
    --brand-strong: #008b43;

    /* Layout */
    --sidebar-w: 250px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    /* Typography */
    --fs-base: clamp(16px, 0.9vw + 12px, 18px);
    --fs-sm: 0.95rem;
    --fs-md: 1.05rem;
    --fs-lg: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
    --fs-h3: clamp(1.3rem, 1.05rem + 1vw, 1.6rem);
    --fs-h2: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem);
    --fs-h1: clamp(2rem, 1.4rem + 2.2vw, 2.8rem);

    /* Components */
    --toggle-size: 44px;
    --radius: 8px;
}


/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    font-size: var(--fs-base);
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

nav ul li a {
    font-size: var(--fs-md)
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Space Grotesk', sans-serif;
    /* font-weight: 600; */
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    margin-bottom: 50px;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    background-image:
        radial-gradient(1200px 600px at -200px -100px, rgba(255, 255, 255, .06), transparent 60%),
        radial-gradient(800px 400px at 120% 120%, rgba(0, 0, 0, .35), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, rgba(255, 255, 255, 0) 2px 4px);
    background-blend-mode: overlay, multiply, normal;

    border-right: 1px solid rgba(255, 255, 255, 0.4);

    text-shadow: none;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
    color: white;
    position: fixed;
    height: 100vh;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    /* overflow-y: auto; */
    left: 0;
    top: 0;
    z-index: 1000;
}

#sidebar h2,
h3 {
    margin: 0;
}

body.dark-mode #sidebar {
    border-right: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .12);
}

/* Desktop: hide when toggled */
#sidebar.hidden {
    transform: translateX(-100%);
}

.button,
#toggle-sidebar {
    background: var(--brand);
}

.button:hover,
#toggle-sidebar:hover {
    background: var(--brand-strong);
}

/* Toggle button */
#toggle-sidebar {
    position: fixed;
    top: 20px;
    left: 255px;
    background: #00bcd4;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    z-index: 1100;
    transition: background 0.3s;
}

#toggle-sidebar:hover {
    background: #008ba3;
}

.index {
    padding: 0px;
    margin-top: 50px;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.icons {
    padding: 0px;
    list-style: none;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.social-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease-in-out;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Profile Picture */
.profile-picture {
    display: block;
    margin: 0 auto 10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #00bcd4;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #00bcd4;
}

/* Sections */
section {
    margin-bottom: 150px;
}

#main {
    flex: 1;
    margin-left: 250px;
    transition: margin-left 0.3s;
}

/* when sidebar is hidden on desktop */
#main.expanded {
    margin-left: 0;
    width: 100%;
}

/* when collapsed */
/* body.sidebar-closed #toggle-sidebar {
    left: 16px;
} */



#portfolio img {
    width: 50%;
    border-radius: 10px;
}

#portfolio .item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
}

#portfolio .item img:hover {
    transform: scale(1.05);
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

form input[type="text"],
form input[type="email"],
form textarea,
form input[type="submit"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Buttons */
.pdfs {
    width: 100%;
    height: 700px;
}

.button {
    display: inline-block;
    background: #00bcd4;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.button:hover {
    background: #008ba3;
}

/* Footer */
#footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: auto;
}

@media screen and (max-width:768px) {
    :root {
        --fs-base: clamp(17px, 1vw + 14px, 19px);
    }

    /* #main {
        margin-left: 0 !important;
        width: 100% !important;
    } */

    #sidebar {
        height: 100vh;
        transform: translateX(-100%);
        overflow: visible;
        /* position: fixed; */
        /* z-index: 1000; */
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #sidebar.hidden {
        transform: translateX(-100%);
    }

    #main,
    #footer {
        margin-left: 0 !important;
        width: 100% !important;
    }

    #toggle-sidebar {
        width: 56px;
        height: 56px;
        font-size: 26px;
        border-radius: 12px;
        right: -12px;
        /* left: 100px; */
        top: 10px;
        z-index: 1100;
    }
}