body {
    background-color: #ece3d0;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

main.top {
    background: hsla(0, 0%, 0%, 1);
    background: linear-gradient(270deg, hsla(0, 0%, 0%, 1) 0%, hsla(41, 42%, 87%, 1) 100%);
    background: -moz-linear-gradient(270deg, hsla(0, 0%, 0%, 1) 0%, hsla(41, 42%, 87%, 1) 100%);
    background: -webkit-linear-gradient(270deg, hsla(0, 0%, 0%, 1) 0%, hsla(41, 42%, 87%, 1) 100%);
    filter:    progid: DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#ECE3D0", GradientType=1);
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    position: relative;
    padding: 50px 20px;
    box-sizing: border-box;
}

main.top span {
    color: white;
    text-align: center;
    font-size: 30px;
}

.h2 {
    margin-top: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(90deg, black, yellow, green, white);
    font-weight: bold;
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: colors 8s linear infinite;
    font-size: 29px;
}

@keyframes colors {
    0% { 
        background-position: 0% 50%; 
    }

    100% { 
        background-position: -300% 50%; 
    }
}

hr {
    border: none;
    height: 5px;
    position: relative;
    margin: 50px 0;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* Soft shadow for depth */
}

/* Create the wave effect using pseudo-element */
hr::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00c6ff, #0072ff, #00c6ff);
    animation: waving 4s ease-in-out infinite;
    border-radius: 5px;
}

/* hr animation */
@keyframes waving {
    0% {
        transform: translateX(-100%) scaleY(1);
    }
    50% {
        transform: translateX(0) scaleY(1.1); /* Slight rise of wave */
    }
    100% {
        transform: translateX(100%) scaleY(1);
    }
}

.section-title {
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    margin-left: 20px;
}

.brown {
    box-shadow: 0 4px 10px transparent; /* Soft shadow for depth */
    margin-bottom: 0;
    z-index: 220;
}

.brown::after {
    background: linear-gradient(135deg, black, #964B00, black);
    animation: waving 4s ease-in-out infinite;
}

.team {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 30px 20px;
    text-align: center;
}

.member {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 220px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.member:hover {
    transform: translateY(-8px);
}

.member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ece3d0;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.member h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.member p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

footer {
    background-color: #111;
    color: #eee;
    padding: 40px 20px 20px;
    font-size: 14px;
    margin-top: 0;
    padding-top: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h3, 
.footer-col h4 {
    margin-bottom: 10px;
    color: #fff;
}

.footer-col p {
    color: #bbb;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 22px;
    height: 22px;
    transition: transform 0.2s;
    filter: brightness(0) invert(1);
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #777;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 13px;
    transition: color 1s;
}

html {
    scroll-behavior: smooth;
}

.footer-bottom:hover {
    color: orange;
}

.carousel {
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    position: relative;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    max-width: 250px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.4s ease-in-out;
    cursor: pointer;
}

.carousel-card:hover {
    transform: scale(1.05);
}

.carousel-card img {
    object-fit: cover;
    border: 4px solid #ece3d0;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 12px;
}

.carousel-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.carousel-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.carousel-card a {
    color: red;
    text-decoration: none;
    cursor: default;
}

.carousel-card a:hover {
    text-decoration: underline;
    color: purple;
}

.loader {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
}

.loader::after,
.loader::before {
    content: '';
    width: 48px;
    height: 48px;
    border: 2px solid #FFF;
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    animation: movingg 2s ease-in-out infinite;
}

.loader::after {
    border-color: #FF3D00;
    animation-delay: 1s;
}

@keyframes movingg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

} 

#loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(192, 190, 173, 0.703);
    backdrop-filter: blur(7px); /* blur */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ===== nav ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(224, 206, 165, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: #333;
}

/* Hamburger for Mobile */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

/* Hide the checkbox itself */
#menu-toggle {
    display: none;
}

/* ===== Nav Links ===== */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

/* All links basic style */
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    position: relative;
    transition: color 0.3s;
}

/* General hover: green color */
.nav-links a:hover {
    color: rgb(0, 105, 0);
    text-decoration: underline;
}

/* ==== Projects Link Special: No underline ==== */
.projects-link::after {
    content: none;
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    z-index: 999;
    flex-direction: column;
    list-style: disc inside;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: flex;
}

/* Dropdown list items */
.dropdown-menu li {
    margin: 8px 0;
    position: relative;
}

/* ===== Responsive Mobile ===== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(236, 227, 208, 0.95);
        backdrop-filter: blur(12px);
        display: none;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    #menu-toggle:checked+.hamburger+.nav-links {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: rgba(236, 227, 208, 0.3);
        padding: 10px 20px;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        list-style: disc inside;
    }

    .dropdown-menu li a {
        padding-left: 20px;
    }
}

section.beat {
    min-height: 250px;
    display: fixed;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    padding-top: 100px;
    position: relative;
    padding: 50px 20px;
    box-sizing: border-box;
    background: linear-gradient(90deg, red, yellow, red, blue);
    font-weight: bold;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 29px;    
    text-align: center;
}

section.projects2 div {
    cursor: pointer;
}

/* sigma ads */
.server-promo {
    background: linear-gradient(90deg, black, blue);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    animation: slide-in 0.8s ease;
    border: 3px solid red; /* brdr */
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.promo-text h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.promo-text p {
    margin: 8px 0 0;
    font-size: 16px;
    color: #f0f0f0;
    max-width: 500px;
}

.promo-button {
    background-color: #fff;
    color: #0072ff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.promo-button:hover {
    background-color: #0072ff;
    color: #fff;
    border: 1px solid #fff;
}

@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-button {
        width: 50%;
        text-align: center;
    }
}

.occ {
    background: linear-gradient(90deg, red, purple);
    border: 3px solid blue;
    /* border */
}

.occ .promo-button:hover {
    background-color: yellow;
    color: black;
}

/* i may be dumb. */