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

/* main */
h1, h2, h3 {
    padding-bottom: 20px;
    color: #D9C5A6;
}
a, button {
    color: black;
    text-decoration: none;
}
p {
    color:#D9C5A6;
    font-size: 1.3rem;
}
h2 {
    font-size: 2rem;
    font-weight: lighter;
}

/* navbar */
.navbar {
    position: fixed;
    top: 10px;
    left: 50%; /* Centers the navbar horizontally */
    transform: translateX(-50%);
    background-color: #181716;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-list {
    list-style-type: none; /* Removes bullet points */
    gap: 10px;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* Nav Links */
.nav-list li {
    display: flex;
    float: left;
}
.nav-list li a {
    text-decoration: none;
    color: #D9C5A6;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-list .contact-button {
    position: absolute;
    right: 40px;
    top: 50%;
    margin-right: auto;
    transform: translateY(-50%);
}
.nav-list .logo {
    margin-left: auto;
}
.nav-link {
    position: relative;
    text-decoration: none;
    color: black;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #D9C5A6;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.nav-link.active::after, 
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Dropdown menu (hidden by default) */
.dropdown {
    display: none;
    position: relative;
    top: 50%;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background-color: #35312B;
    list-style: none;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
    margin: 10px 0;
    display: flex;
}

.dropdown-menu a {
    text-decoration: none;
    color: white;
}

/* Dropdown button styles */
.dropdown-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: auto;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0E0E0E;
    padding: 1rem;
    overflow: hidden;
}

.hero-image {
    width: 400px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 70%;
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.65) 100%);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent),
    linear-gradient(to bottom, black, black 80%, transparent 100%); /* Horizontal fade */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent),
    linear-gradient(to bottom, black, black 80%, transparent 100%); /* For Safari */
    mask-composite: intersect; /* Combines both gradients */
    -webkit-mask-composite: destination-in;
}

.hero-text {
    margin-top: 2rem;
    text-align: center;
}
  
.hero-text h1 {
    font-size: 3rem;
    font-weight: lighter;
    margin-bottom: 1rem;
    color: #D9C5A6;
}

.cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background-color: #e1c699;
    color: #1c1c1c;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
}

.cta:hover {
    background-color: #d6b589;
}

.cta .read-more {
    display: inline-block;
}

.projects {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0E0E0E;
    padding: 1rem;
    overflow: hidden;
} 
.projects-text {
    margin-top: 2rem;
    text-align: center;
}
.projects-text h2 {
    margin-bottom: 1rem;
    color: #D9C5A6;
}

.box-grid {
    display: flex;
    width: 90%;
    gap: 20px;
    padding: 2rem;
    flex-direction: column;
}

.box {
    background: #35312B;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box img {
    width: 45%;
    height: auto;
    object-fit: cover;
    display: block;
    padding: 1rem;
}

.box .overlay{
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box .content {
    flex: 1;
    padding-right: 1rem;
    padding-left: 1rem;
}

.see-all {
    text-align: right;
    margin-top: 10px;
}

.see-all a {
    color: #f5a623;
    text-decoration: none;
    font-size: 14px;
}

.see-all a:hover {
    text-decoration: underline;
}
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
}
.about {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0E0E0E;
    padding: 1rem;
    overflow: hidden;
} 
.about-image {
    width: 300px;
    max-width: 600px;
    opacity: 70%;
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.65) 100%);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent),
    linear-gradient(to bottom, black, black 80%, transparent 100%),
    linear-gradient(to top, black, black 80%, transparent 100%); /* Horizontal fade */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent),
    linear-gradient(to bottom, black, black 80%, transparent 100%),
    linear-gradient(to top, black, black 80%, transparent 100%); /* For Safari */
    mask-composite: intersect; /* Combines both gradients */
    -webkit-mask-composite: destination-in;
}
.text {
    flex: 1;
    max-width: 900px;
    text-align: center;
}
.text p {
    padding-bottom: 2rem;
}
.text h2 {
    margin-right: auto;
    padding-left: 2rem;
    padding-bottom: 4rem;
    flex: 1;
    text-align: left;
    margin-top: 0;
}

/* Outer container for the marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #121212;
    padding-bottom: 10px;
    box-sizing: border-box;
}
  /* Inner marquee element */
.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee-animation 20s linear infinite;
}
/* The text */
.marquee span {
    font-size: 16px;
    color: #D9C5A6;
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
    padding-right: 3px;
}

.courses {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0E0E0E;
    padding: 1rem;
    overflow: hidden;
} 
.courses h2 {
    margin-right: auto;
    padding-left: 2rem;
}
.touch {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    background: #181716;
    padding: 3rem;
    overflow: hidden;
} 
.touch h1 {
    font-size: 3rem;
    font-weight: lighter;
    margin-bottom: 1rem;
    color: #D9C5A6;
}
.touch p {
    padding-bottom: 2rem;
}
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0E0E0E;
    padding: 1rem;
    overflow: hidden;
} 
.contact-box, .about-box {
    width: 90%;
    background: #35312B;
    min-height: 40vh;
    padding: 2rem;
}
.contact-box h2 {
    padding-top: 0.4rem;
}
.input-container {
    width: 100%;
    gap: 20px;
}
input, textarea {
    background: #635B50;
    width: 100%;
    border: none;
    padding: 0.7rem;
    margin-bottom: 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
}
input::placeholder {
    font-size: 14px;
}
input:focus, textarea::focus {
    outline: none;
}
textarea {
    min-height: 150px;
}
.about-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0E0E0E;
    padding-top: 6rem;
    padding-bottom: 6rem;
    overflow: hidden;
}
.about-box img {
    width: 100%;
    height: auto;
    padding-top: 1rem;
}
.github a {
    color: #D9C5A6;
    text-decoration: underline;
}

/* Responsive Padding */
@media (max-width: 941px) {
    .navbar {
        top: 17px;
        width: 90%;
        padding: 20px 28px 20px;
    }
    .nav-list > li:not(.contact-button):not(.dropdown):not(.logo) {
        display: none; /* Hide all except the contact button and dropdown */
    }
    .nav-list li {
        float: right;
    }
    .nav-list > li:first-child {
        margin-right: auto;
        position: absolute;
    }    
    .nav-list .logo {
        transform: translateY(-5%);
    }
    .dropdown-button {
        transform: translateY(-10%);
    }
    .hero-image {
        width: 300px;
    }
    .hero-text h1 {
        font-size: 2.9rem;
    }
    p {
        font-size: 1rem;
    }
    .box-grid {
        padding: 2rem 0;
    }
    .box {
        flex-direction: column;
    }
    .box img {
        width: 100%;
    }
    .about-image {
        display: none;
    }
}
@media (min-width: 942px) and (max-width: 1279px) {
    .navbar {
        top: 25px;
        padding: 11px 24px 11px;
    }
    .nav-list .dropdown {
        display: none;
    }
    .nav-list .contact-button {
        display: none;
    }
    .hero-image {
        width: 400px;
    }
    .hero-text h1 {
        font-size: 5rem;
    }
    h2 {
        font-size: 3rem;
    }
    .box-grid {
        padding: 2rem 0;
    }
}

@media (min-width: 1280px) {
    .navbar {
        top: 33px;
        padding: 11px 24px 11px;
    }
    .nav-list .dropdown {
        display: none;
    }
    .nav-list .contact-button {
        display: none;
    }
    .hero-image {
        width: 500px;
    }
    .hero-text h1 {
        font-size: 7rem;
    }
    h2 {
        font-size: 3rem;
    }
}
/* Marquee animation */
@keyframes marquee-animation {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
}