/* ROOT VARIABLES for WebTeam Theme (GitHub/Coding inspired) */
:root {
    --github-blue: #58a6ff;
    --github-green: #7ee787;
    --github-purple: #d2a8ff;
    --github-dark: #0d1117;
    --github-darker: #010409;
    --github-card: #161b22;
}

/* ================= GLOBAL STYLES ================= */
body {
    background: var(--github-dark);
    color: #c9d1d9;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* Global Section Spacing */
section:not(#webteam-hero) {
    padding: 70px 20px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* ================= NAVBAR (WebTeam Theme) ================= */
.navbar {
    width: 100%;
    padding: 12px 0;
    position: absolute;
    top: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(88, 166, 255, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

/* LOGO */
.logo-img {
    width: 55px;
}

/* DESKTOP MENU */
.nav-links {
    list-style: none;
    display: flex;
    gap: 22px;
}

.nav-links li a {
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.25s;
}

.nav-links li a:hover {
    color: var(--github-blue);
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.6);
}

/* PORTAL BUTTON (DESKTOP ONLY) */
.portal-btn {
    background: linear-gradient(135deg, #238636, #2ea043);
    padding: 10px 18px;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.portal-btn:hover {
    box-shadow: 0 0 15px rgba(126, 231, 135, 0.5);
    transform: translateY(-2px);
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--github-blue);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 10px 0;
    margin-top: 0;
    padding-top: 15px;
    border-radius: 8px;
    min-width: 220px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #c9d1d9;
    font-size: 0.85rem;
}

.dropdown-menu li a:hover {
    background: rgba(88, 166, 255, 0.1);
    color: var(--github-blue);
}

/* ================= HERO SECTION ================= */
#webteam-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1117, #161b22);
}

.webteam-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9), rgba(22, 27, 34, 0.8));
    z-index: 1;
}

/* Floating Background Shapes */
.webteam-floating-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.15), transparent);
    animation: float 8s ease-in-out infinite;
}

.circle.c1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle.c2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.circle.c3 {
    width: 250px;
    height: 250px;
    bottom: 5%;
    left: 50%;
    animation-delay: 4s;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
}

.triangle.t1 {
    border-width: 0 75px 130px 75px;
    border-color: transparent transparent var(--github-green) transparent;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.triangle.t2 {
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent var(--github-purple) transparent;
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

.triangle.t3 {
    border-width: 0 50px 87px 50px;
    border-color: transparent transparent var(--github-blue) transparent;
    top: 50%;
    left: 25%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Hero Content */
.webteam-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 50px 20px;
}

.webteam-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--github-blue), var(--github-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.webteam-subtitle {
    font-size: 1.3rem;
    color: var(--github-green);
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

/* ================= COMMITTEE SECTION ================= */
#webteam-committee {
    padding: 70px 20px;
}

.committee-title {
    font-size: 2.2rem;
    color: var(--github-blue);
    margin-bottom: 40px;
    position: relative;
    text-align: left;
}

.committee-title::after {
    content: "";
    width: 160px;
    height: 3px;
    background: var(--github-blue);
    position: absolute;
    bottom: -8px;
    left: 0;
    opacity: 0.6;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

/* Card styling */
.committee-card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.9));
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    border: 2px solid rgba(88, 166, 255, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Gradient overlay effect */
.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--github-blue), var(--github-purple));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.committee-card:hover::before {
    opacity: 1;
}

/* Lead cards - Blue theme */
.committee-card.lead {
    border-color: rgba(88, 166, 255, 0.4);
}

.committee-card.lead::before {
    background: linear-gradient(180deg, #1f6feb, var(--github-blue), #58a6ff);
}

.committee-card.lead:hover {
    border-color: var(--github-blue);
    box-shadow: 0 10px 40px rgba(88, 166, 255, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.1) inset;
    transform: translateX(8px);
}

.committee-card.lead .role {
    color: var(--github-blue);
}

/* Senior cards - Green theme */
.committee-card.senior {
    border-color: rgba(126, 231, 135, 0.4);
}

.committee-card.senior::before {
    background: linear-gradient(180deg, #238636, var(--github-green), #7ee787);
}

.committee-card.senior:hover {
    border-color: var(--github-green);
    box-shadow: 0 10px 40px rgba(126, 231, 135, 0.3), 0 0 0 1px rgba(126, 231, 135, 0.1) inset;
    transform: translateX(8px);
}

.committee-card.senior .role {
    color: var(--github-green);
}

/* Junior cards - Purple theme */
.committee-card.junior {
    border-color: rgba(210, 168, 255, 0.4);
}

.committee-card.junior::before {
    background: linear-gradient(180deg, #8957e5, var(--github-purple), #d2a8ff);
}

.committee-card.junior:hover {
    border-color: var(--github-purple);
    box-shadow: 0 10px 40px rgba(210, 168, 255, 0.3), 0 0 0 1px rgba(210, 168, 255, 0.1) inset;
    transform: translateX(8px);
}

.committee-card.junior .role {
    color: var(--github-purple);
}

/* Member images */
.committee-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(88, 166, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.committee-card:hover .committee-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(88, 166, 255, 0.4);
}

.committee-card.lead:hover .committee-img {
    border-color: var(--github-blue);
}

.committee-card.senior:hover .committee-img {
    border-color: var(--github-green);
}

.committee-card.junior:hover .committee-img {
    border-color: var(--github-purple);
}

/* Card content wrapper */
.card-content {
    flex: 1;
    min-width: 0;
}

/* Role label */
.role {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    opacity: 0.8;
}

/* Member name */
.name {
    font-size: 1.25rem;
    color: #e6edf3;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FOOTER ================= */
#contact {
    background: linear-gradient(135deg, #0d1117, #161b22);
    color: #c9d1d9;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--github-blue);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 15px;
}

.footer-about {
    color: #8b949e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #8b949e;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: var(--github-blue);
    padding-left: 5px;
}

.footer-links li a i {
    font-size: 0.8rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: #8b949e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--github-blue);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--github-blue);
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--github-blue);
    color: white;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(88, 166, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #8b949e;
    font-size: 0.9rem;
}

.footer-title {
    color: var(--github-blue);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-heading {
    color: var(--github-blue);
    margin-bottom: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        display: none;
        border-top: 1px solid rgba(88, 166, 255, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(88, 166, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        margin-top: 10px;
        border: none;
        background: rgba(22, 27, 34, 0.5);
        display: none;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }

    .portal-btn.desktop-only {
        display: none;
    }

    .webteam-title {
        font-size: 2.5rem;
    }

    .webteam-subtitle {
        font-size: 1rem;
    }

    .committee-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .committee-card {
        padding: 30px 20px;
    }
    
    .committee-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .committee-title {
        font-size: 1.8rem;
    }

    .webteam-title {
        font-size: 2rem;
    }
}
