/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Theme Colors */
    --primary-color: #00f3ff;   /* Neon Cyan */
    --secondary-color: #bc13fe; /* Neon Purple */
    --bg-dark: #050510;         /* Deep Space Blue/Black */
    --card-bg-dark: #0a0a14;    /* Darker card background for contrast */
    --text-main: #e0e0e0;
    --text-muted: #8f9ba8;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(20, 20, 35, 0.6);
    --glass-border: 1px solid rgba(0, 243, 255, 0.1);
    
    /* New Accent Colors for Team Cards */
    --accent-blue: #2E9AFE;
    --accent-yellow: #FFC300;
    --accent-purple: #9B59B6;
    --accent-red: #E74C3C;

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* =========================================
   2. GLOBAL RESET & BACKGROUND
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    /* Cyber Grid Background Effect */
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }

/* =========================================
   3. HERO SECTION (ANIMATED)
   ========================================= */
.hero-premium {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 60%);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    margin-bottom: 15px;
    opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out;
}

.hero-sub {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out 0.2s;
}

.hero-title.active, .hero-sub.active { opacity: 1; transform: translateY(0); }

/* =========================================
   4. SECTIONS & LAYOUT
   ========================================= */
.page-section {
    padding: 70px 8%;
    position: relative;
}

h2 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-top: 10px;
}

/* Basic Content Card (for Overview, City Info) */
.content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

p { font-size: 1.05rem; margin-bottom: 15px; color: var(--text-muted); }
ul { list-style: none; }
li { margin-bottom: 10px; font-size: 1.05rem; color: var(--text-muted); }
strong { color: var(--text-main); font-weight: 600; }

/* =========================================
   5. NEW TEAM CARDS (The requested change)
   ========================================= */
.team-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.team-card-new {
    background-color: var(--card-bg-dark);
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.team-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Top colored bar */
.card-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

/* Icon Container */
.team-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #fff;
}

/* Accent Color variations */
.accent-blue .card-header-bar, .accent-blue .team-icon { background: var(--accent-blue); }
.accent-yellow .card-header-bar, .accent-yellow .team-icon { background: var(--accent-yellow); color: #000; }
.accent-purple .card-header-bar, .accent-purple .team-icon { background: var(--accent-purple); }
.accent-red .card-header-bar, .accent-red .team-icon { background: var(--accent-red); }

/* Accent Text Colors */
.accent-blue .member-domain, .accent-blue .portfolio-link { color: var(--accent-blue); }
.accent-yellow .member-domain, .accent-yellow .portfolio-link { color: var(--accent-yellow); }
.accent-purple .member-domain, .accent-purple .portfolio-link { color: var(--accent-purple); }
.accent-red .member-domain, .accent-red .portfolio-link { color: var(--accent-red); }

/* Typography inside card */
.member-name {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.member-ids {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.member-domain {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-skills {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 8px;
}

.skill-label {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 5px;
}

.member-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
    flex-grow: 1; /* Ensures buttons align at bottom if lengths vary */
}

.portfolio-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: padding 0.3s ease;
}

.portfolio-link i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.team-card-new:hover .portfolio-link i {
    transform: translateX(5px);
}


/* =========================================
   6. DATA TABLES (FUTURISTIC)
   ========================================= */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    background: var(--glass-bg);
    border: var(--glass-border);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

th {
    background: rgba(0, 243, 255, 0.08);
    color: var(--primary-color);
    font-family: var(--font-heading);
    padding: 18px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 500;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); color: var(--text-main); }

.total td {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1.1rem;
    background: rgba(0, 243, 255, 0.03);
}

/* =========================================
   7. IMAGES & MAPS
   ========================================= */
.map {
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    margin: 15px;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.15);
    transition: transform 0.3s;
}
.map:hover { transform: scale(1.02); }
.center-text { text-align: center; max-width: 700px; margin: 0 auto 40px auto; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 50px 20px;
    background: #020205;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    margin-top: 80px;
}

footer p { color: var(--text-muted); margin-bottom: 20px; font-family: var(--font-heading); letter-spacing: 1px;}

.github-link-footer {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.github-link-footer i { margin-right: 10px; font-size: 1.2rem;}

.github-link-footer:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* =========================================
   9. SCROLL REVEAL ANIMATION
   ========================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal.active-reveal { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    .page-section { padding: 50px 5%; }
}
.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    justify-content: center;
    max-width: 1400px;
}

/* Base Card Styling */
.card {
    background-color: #111625; /* Slightly lighter dark for card */
    width: 280px;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none; /* Removes link underline */
    color: #b0b3b8;
    position: relative;
    border-top: 4px solid transparent; /* Placeholder for color bar */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Hover Animation: Lift Up + Glow */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    background-color: #161b2e; /* Slight lighten on hover */
}

/* Color Themes for each member */
.card-blue { border-top-color: #007bff; }
.card-blue .icon-box { background-color: #007bff; }
.card-blue .role-title, .card-blue .view-btn { color: #007bff; }

.card-yellow { border-top-color: #ffc107; }
.card-yellow .icon-box { background-color: #ffc107; color: #000; }
.card-yellow .role-title, .card-yellow .view-btn { color: #ffc107; }

.card-purple { border-top-color: #6f42c1; }
.card-purple .icon-box { background-color: #6f42c1; }
.card-purple .role-title, .card-purple .view-btn { color: #9d5ce7; }

.card-red { border-top-color: #dc3545; }
.card-red .icon-box { background-color: #dc3545; }
.card-red .role-title, .card-red .view-btn { color: #ff4d5a; }

/* Internal Elements */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.card h3 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.meta {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.role-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.skills-box {
    background-color: #1c2230;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border: 1px solid #2d3446;
}

.skill-label {
    color: #e0e0e0;
    font-weight: 600;
}

.desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: auto; /* Pushes button to bottom */
    padding-bottom: 20px;
}

.view-btn {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    transition: padding-left 0.3s ease;
}

/* Button Slide Animation */
.card:hover .view-btn {
    padding-left: 10px; /* Small movement to right on hover */
}
