/* ========================= */
/* PROJECTS PAGE CSS */
/* ========================= */

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

body {
    font-family: 'Inter', sans-serif;
    color: white;
    background: linear-gradient(135deg, #0f2027, #203a43, #00c6ff, #00ffd5);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.logo-img {
    width: 60px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #00ffd5;
    transition: 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* ========================= */
/* PROJECTS SECTION */
/* ========================= */

.projects {
    flex: 1;
    padding: 100px 8%;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: start; 
}

/* project cards */
.project-card {
    background: rgba(255, 255, 255, 0.05); /* Very light white for glass effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    position: relative; 
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* buttons */
.project-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    display: inline-block;
}

.primary {
    background: #00ffd5;
    color: #003a3a;
    border: none;
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 213, 0.3);
}

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

.secondary:hover {
    background: white;
    color: black;
}

/* DROPDOWN STYLES */

.dropdown-toggle {
    cursor: pointer;
    width: 100%;
    outline: none;
}

.dropdown-content {
    position: static;
    z-index: 50;
    pointer-events: none;

    /* Adaptive Glassmorphism */
    background: rgba(255, 255, 255, 0.08); /* Translucent so background shows through */
    backdrop-filter: blur(25px); /* Strong blur so text is readable */
    -webkit-backdrop-filter: blur(25px);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;

    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 25px;
}

.dropdown-content.show {
    max-height: 300px;
    padding: 20px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.dropdown-content a {
    text-decoration: none;
    color: white; /* Changed to white for better contrast against all colors */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.dropdown-content a:hover {
    background: rgba(0, 255, 213, 0.2);
    color: #00ffd5;
    transform: translateX(5px);
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer {
    text-align: center;
    padding: 25px;
    opacity: 0.7;
    margin-top: auto;
}