    :root {
    --bg-color: #0d0f1a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-glow: #6366f1;
    --secondary-glow: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 { top: -10%; left: -10%; }
.glow-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%); animation-delay: -5s; }
.glow-3 { top: 40%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); opacity: 0.1; animation-duration: 25s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

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

/* Typography & Utils */
.gradient-text {
    background: linear-gradient(135deg, #a855f7, #6366f1, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.grid-about {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.featured-team-photo {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
}

.featured-team-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.8);
}

@media (max-width: 900px) {
    .grid-about {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-outline:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px; /* Even more gap */
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #cbd5e1;
}

.main-title {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 20px; /* Ensure space below title */
}

.hero .subtitle {
    font-size: 1.35rem; /* slightly larger */
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto; /* Enormous space below subtitle */
    line-height: 1.8;
}

.hod-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    margin: 10px 0 20px;
    color: #e2e8f0;
}

.hod-info i {
    color: #0ea5e9;
    font-size: 1.2rem;
}

/* Vision Mission */
.vision-mission {
    padding: 100px 0;
}

.vision-mission .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #a855f7;
    margin-bottom: 24px;
}

.vision-mission h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.vision-mission p {
    color: var(--text-muted);
}

/* Projects */
.projects {
    padding: 100px 0;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-color), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-overlay span {
    background: rgba(14, 165, 233, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Team Testimonials */
.team-testimonial {
    padding: 100px 0;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    width: calc(33.333% - 20px);
    min-width: 300px;
    position: relative;
    z-index: 1;
    margin-top: 70px; /* Space for protruding avatar */
    text-align: center;
}

.testimonial-card .card-content {
    padding: 80px 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); /* slightly lighter for card look */
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    height: 100%;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover .card-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.avatar-top {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #a855f7;
    background: var(--bg-color);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), 0 10px 20px rgba(0,0,0,0.5);
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover .avatar-top {
    transform: translateX(-50%) translateY(-10px);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.7), 0 15px 25px rgba(0,0,0,0.6);
    border-color: #6366f1;
}

.member-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.member-role {
    font-size: 0.85rem;
    color: #0ea5e9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.feedback {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #a855f7;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.modal-body h3 {
    color: #a855f7;
    margin: 24px 0 12px;
    font-size: 1.3rem;
}

.modal-list {
    list-style-position: inside;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.modal-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-list li strong {
    color: #0ea5e9;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tags span {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #f8fafc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .testimonial-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .testimonial-card {
        width: 100%;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
