* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/fonts/Inter-VariableFont_opsz,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/fonts/Inter-Italic-VariableFont_opsz,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: "Raleway";
    src: url("./fonts/fonts/Raleway-VariableFont_wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Raleway";
    src: url("./fonts/fonts/Raleway-Italic-VariableFont_wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: white;
}

#nav {
    background-color: #333;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

#nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

#nav li {
    position: relative;
}

#nav li a {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    line-height: 80px;
    padding: 0 10px;
}

#nav li a:hover {
    color: #ffcc00;
}

.dropdown-menu {
    position: absolute;
    top: 80px;
    left: 0;
    background-color: #333;
    min-width: 220px;
    z-index: 1000;

    list-style: none;
    padding: 0;
    margin: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;

    display: flex;
    flex-direction: column;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: #444;
    color: #ffcc00;
}

#nav li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#nav li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* slide into position */
}

#hero {
    height: calc(100vh - 80px);
    background: linear-gradient(to right, #1a1a1a, #333);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn.primary {
    background-color: #ffcc00;
    color: #333;
}

.btn.primary:hover {
    background-color: #e6b800;
}

.btn.secondary {
    border: 2px solid white;
    color: white;
}

.btn.secondary:hover {
    background-color: white;
    color: #333;
}

#about{
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    gap: 40px;
}

#contact {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0px auto 0 auto;
    justify-content: center;
    min-height: calc(100vh - 90px - 60px);
    gap: 30px;
}

#about h2,
#contact h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 10px;
}

#about h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #aaa;
    margin-bottom: 25px;
}

#about p,
#contact p {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 10px;
}

#contact a :hover {
    color: #ffcc00;
}

#projects-overview {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

#contact a[href^="mailto:"] {
    color: #ffcc00;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

#contact a[href^="mailto:"]:hover {
    color: #333;
    background-color: #ffcc00;
}

#projects-overview h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    color: #ffcc00;
    margin-bottom: 10px;
}

#projects-overview p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #ddd;
    margin-bottom: 30px;
}

.project-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-item {
    background-color: #222;
    padding: 20px 25px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.project-item:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.project-link {
    text-decoration: none;
    color: inherit;
}

.project-link h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    margin-bottom: 8px;
    color: #ffcc00;
}

.project-link p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #ddd;
    line-height: 1.5;
}

.project-link .tech-stack {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #aaa;
    margin-top: 8px;
}

.project-details-list {
    list-style-type: disc; /* normal bullets */
    padding-left: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-details-list li {
    margin-bottom: 12px; /* spacing between bullets */
}

.tech-skills-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tech-card {
    background-color: #222;
    border-radius: 10px;
    padding: 20px 25px;
    flex: 1 1 220px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.tech-card:hover {
    transform: translateY(-5px);
    background-color: #333;
}

.tech-card h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 8px;
    text-align: center;
}

.tech-card .tech-badge {
    display: inline-block;
    background-color: #111;
    color: #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    margin: 4px 4px 4px 0;
}

#project-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#project-page h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    color: #ffcc00;
    text-align: center;
}

.project-summary {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #ddd;
    text-align: center;
}

.project-tech {
    justify-content: center;
    flex-wrap: wrap;
}

.project-media {
    display: flex;
    justify-content: center;
}

.project-media img {
    max-width: 100%;
    border-radius: 10px;
}

.project-details h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    color: #ffcc00;
    margin-bottom: 15px;
}

.project-details p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
}

@media (max-width: 768px) {

    #about h2,
    #contact h2 {
        font-size: 36px;
    }

    #about p,
    #contact p {
        font-size: 18px;
    }

    #about h3 {
        font-size: 18px;
    }
}

footer {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-top: 40px;
    padding-bottom: 20px;
}