/* ===========================
   FONT
=========================== */
@font-face {
    font-family: 'General Sans';
    src: url('font/GeneralSans-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('font/GeneralSans-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
}

/* ===========================
   CSS VARIABLES & THEMES
=========================== */
:root {
    --hover-color: #8a8a8a;
    --click-color: #A3C9F1;
    --bg-main: #ffffff;
    --text-main: #333;
    --navbar-bg: #ffffff;
    --navbar-text: #333;
}

body.dark {
    --bg-main: #000000;
    --text-main: #ffffff;
    --navbar-bg: #000000;
    --navbar-text: #ffffff;
}

/* ===========================
   BASE
=========================== */
body {
    overflow-x: hidden;
    font-family: 'General Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* ===========================
   HEADER
=========================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: var(--navbar-bg);
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 9999;
}

.logo-img {
    height: 65px;
    width: auto;
}

/* ===========================
   MAIN NAV
=========================== */
.main-nav {
    display: flex;
    align-items: center;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 20px;
}

.main-menu li { margin-right: 30px; }

.nav-item {
    text-decoration: none;
    color: var(--navbar-text);
    padding: 5px 0;
    display: block;
    transition: color 0.2s;
}

.main-item:hover { color: var(--hover-color); }
.main-item.active,
.main-item.clicked { color: var(--click-color); }
body.dark .main-item.active,
body.dark .main-item.clicked { color: var(--click-color); }

/* ===========================
   NAV ACTIONS
=========================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* ===========================
   THEME TOGGLE
=========================== */
.theme-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    outline: 1px solid var(--navbar-text);
    background-color: #000;
    transition: background-color 0.3s ease;
}

body.dark .theme-toggle { background-color: #fff; }

/* ===========================
   HAMBURGER
=========================== */
.hamburger-menu {
    cursor: pointer;
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px;
    transition: transform 0.3s;
}

.bar {
    width: 100%;
    height: 1.5px;
    background-color: var(--navbar-text);
    border: none;
    box-shadow: none;
    transition: all 0.3s;
}

.hamburger-menu.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 8px); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -8px); }

/* ===========================
   DROPDOWN
=========================== */
.dropdown-menu {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
    position: absolute;
    top: 70px;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    min-width: 150px;
    text-align: right;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.dropdown-menu.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li { padding: 8px 85px; }
.dropdown-menu a { color: var(--navbar-text); }
.sub-item { font-size: 16px; padding: 0; }
.sub-item:hover { color: var(--hover-color); }
.sub-item.active,
.sub-item.clicked { color: var(--click-color); }

/* ===========================
   PROJECTS
=========================== */
.project-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.35s ease;
}

.project-content img:hover { transform: scale(1.03); }

.project-content h3 {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    color: var(--hover-color);
}

.project-link { text-decoration: none; }
.project-link h3 {
    display: inline-block;
    color: var(--hover-color);
    padding-bottom: 4px;
    transition: color 0.25s ease;
}
.project-link:hover h3 { color: #A3C9F1; }

.project-1 { padding: 80px 60px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; margin-bottom: 10px; }
.project-2 { padding: 20px 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; margin-bottom: 10px; }
.project-3 { padding: 20px 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; margin-bottom: 80px; }
.project-4 { padding: 20px 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; margin-bottom: 80px; }
.project-center { padding: 0 60px; display: flex; justify-content: center; margin-bottom: 80px; }
.project-right { padding: 0 60px; display: flex; justify-content: right; margin-bottom: 40px; }

/* ===========================
   MENU LIST
=========================== */
.menu-list {
    list-style: none;
    padding: 20px 60px;
    margin-bottom: 40px;
    width: 100%;
}

.menu-list li {
    border-bottom: 1.5px solid #222;
    width: 1400px;
}

.menu-list li a {
    text-align: center;
    display: block;
    padding: 20px;
    font-size: 36px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    transition: transform 0.25s ease, color 0.25s ease;
}

.menu-list li a:hover {
    transform: scale(1.50);
    color: #A3C9F1;
}

/* ===========================
   FOOTER
=========================== */
.main-footer {
    width: 100%;
    height: 250px;
    background-color: #A3C9F1;
    margin-top: 100px;
    position: relative;
}
 
.logo-footer { display: flex; justify-content: left; align-items: center; padding: 40px 60px; }
.footer { display: flex; justify-content: space-between; padding: 60px 60px 0; }
 
.back-to-top {
    position: absolute;
    top: 40px;
    right: 60px;
    background: none;
    font-size: 18px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease;
}
 
.back-to-top:hover { transform: scale(1.05); }
 
.footer a {
    color: #000;
    text-decoration: none;
}
 
.footer a:hover {
    text-decoration: underline;
}
 
.footer-highlight {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
}