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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #111827;
    color: white;
    min-height: 100vh;
}

/* navbar css design */
/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    padding: 0.625rem 1.25rem;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
}

nav .logo {
    width: 20.375rem;
    height: auto;
    margin-right: 20rem;
}
/* logo size */
/* Medium screens (tablets) */
@media (max-width: 1024px) {
    nav .logo {
        width: 16rem; /* Reduce logo size */
    }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
    nav .logo {
        width: 12rem; /* Smaller size for mobile */
    }
}

/* Very small screens */
@media (max-width: 480px) {
    nav .logo {
        max-width: 1200px; /* Resize but keep aspect ratio */
        height: auto;
        width: 80%;
       margin-right: 1rem;
    
    }
}
/* Navbar List Items */
nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    position: relative;
}

/* Style Dropdown Parent */
nav ul .dropdown {
    position: relative;
}

/* Hide Dropdown Menu Initially */
nav ul .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    padding: 10px 0;
    width: 150px;
    display: none;
    text-align: left;
    border-radius: 5px;
}

/* Style Dropdown Links */
nav ul .dropdown-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Hover Effect - White Underline */
nav ul .dropdown-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: red ;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav ul .dropdown-menu li a:hover::after {
    transform: scaleX(1);
}

/* Show Dropdown on Hover */
nav ul .dropdown:hover .dropdown-menu {
    display: block;
}

/* drop down box arrow */
.nav-link i {
    color: white;
    font-size: 12px;
    margin-left: 5px;
}

nav ul  li{
    padding-top: 10px;
}
nav ul li {
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    
}
/* Navbar Ticket Button (3D Red to White Gradient) */
nav .btn {
    background: red; /* Red to White gradient */
    border: none;
    color: black;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(211, 210, 210, 0.3); /* 3D Shadow Effect */
    text-align: center;
    font-family: Arial, sans-serif;
    position: relative;
    display: inline-block;
}

/* Hover Effect (Turns White) */
nav .btn:hover {
    background: white;
    color: black;
    transform: scale(1.05) translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Click Effect (Press Down) */
nav .btn:active {
    transform: scale(1) translateY(2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Underline hover effect */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.125rem;
    width: 100%;
    height: 0.125rem;
    background-color: red;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

nav ul li a:hover {
    color: rgb(255, 147, 147);
}

/* Mobile Responsive Menu */
.icon {
    display: none;
    font-size: 1.5625rem;
    color: white;
    cursor: pointer;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    z-index: 1000;
}


/* navbar-checking */
/* Mobile Navigation Overrides (for screens 768px and below) */
/* Modified Mobile Responsive Menu */
/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        right: 38px; /* Right-aligned hamburger */
        font-size: 32px;
        cursor: pointer;
        z-index: 1000;
        background: none;
        border: none;
        color: white;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 30px 20px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto; /* Allow scrolling if needed */
    }

    .nav-menu.show {
        left: 0;
    }

    .dropdown-menu {
        position: relative;
        background: transparent !important;
        padding: 10px;
        border-radius: 5px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px; /* Expand to fit content */
        opacity: 1;
        transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
    }

    .dropdown.active + li {
        margin-top: 8rem; /* Push down the next menu item */
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        backdrop-filter: blur(5px);
        display: none;
        z-index: 998;
    }

    .menu-overlay.active {
        display: block;
    }

    .nav-menu .nav-item {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}



/* Header styles */
.header {
    text-align: center;
    margin-top: 6rem;
}

.header h1 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.divider {
    width: 90%; /* Makes it responsive */
    max-width: 70rem; /* Prevents it from being too wide */
    height: 0.25rem;
    background-color: #eeeaea;
    margin: 2rem auto; /* Centers it */
}


/* Faculty Advisor Section */
.faculty-advisor-section {
    margin-bottom: 5rem;
}

.faculty-advisor-section h2 {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.advisor-card {
    background-color: black; /* Solid background, no transparency */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 1); /* No transparency in shadow */
    border: 1px solid #0d1625;
    transition: transform 0.3s ease;
}
.tedx{
    color:red;
}


.advisor-card:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .advisor-card {
        display: flex;
    }
}


.advisor-image {
    flex-shrink: 0;
}

.advisor-image img {
    height: 22rem;
    width: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    
        .advisor-image img {
            width: 12rem;
            height: 50vh; /* 50% of viewport height */
            object-fit: cover;
        }
    
    
    
}


.advisor-info {
    padding: 2rem;
}

.advisor-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.advisor-info .role {
    margin-top: 0.5rem;
    color: #f87171;
    font-weight: 500;
}

.advisor-info .bio {
    margin-top: 1rem;
    color: #d1d5db;
    line-height: 1.6;
}
.teamx{
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 3rem;
}



/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    padding: 5rem;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Team Member Card */
.team-member {
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.member-image-container {
    height: 25rem;
   
    overflow: hidden;
    position: relative;
}


.member-image {
    width: 100%;
    height: 100%;
    object-position: center 30%; /* Moves focus downward */
    object-fit: cover;
    
    transition: transform 0.5s ease;
}

.team-member:hover .member-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.9));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.team-member:hover .image-overlay {
    opacity: 0.7;
}

.member-content {
    padding: 1rem;
    position: relative;
}

.social-links {
    position: absolute;
    top: -2rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    transform: translateY(0.5rem);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover .social-links {
    transform: translateY(0);
    opacity: 1;
}

.social-link {
    background: rgba(59, 130, 246, 0.8);
    padding: 0.5rem;
    border-radius: 9999px;
    color: white;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: rgb(37, 99, 235);
}

.social-link.email {
    background: rgba(239, 68, 68, 0.8);
}

.social-link.email:hover {
    background: rgb(220, 38, 38);
}

.member-name {
    font-size: 1.125rem;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.member-bio {
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.625;
}
@media (max-width: 480px) {
    .team-member{
        width: 25rem;
        position: relative;
        left: -4rem;          /* Shift it fully to the left */
        text-align: center; /* Center text inside */
        justify-content: flex-start; /* Aligns to the left */
        
        text-align: left; /* Align text to the left */
       
    }
    .member-image-container {
        height: 25rem;
        width: 100%;
        overflow: hidden;
        position: relative;
        
        
    }
    .member-image{
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    
    .grid{
        text-align: center;
        text-align: left; /* Align text to the left */
        margin: 0;        /* Remove extra margins so it starts from the left */
        margin-right: 0;   /* Remove the right margin */
        padding-bottom: 2rem;
    }
    .team-member.active .social-links {
        transform: translateY(0);
        opacity: 1;
    }
    
    
  }
  
  /* iPhone 12/13/14 (390px width) */
  @media (max-width: 390px) {
    .team-member{
        width: 25rem;
        position: relative;
        left: -4rem;          /* Shift it fully to the left */
        text-align: center; /* Center text inside */
        justify-content: flex-start; /* Aligns to the left */
        
        text-align: left; /* Align text to the left */
       
    }
    .member-image-container {
        height: 25rem;
        width: 100%;
        overflow: hidden;
        position: relative;
        
        
    }
    .member-image{
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    
    .grid{
        text-align: center;
        text-align: left; /* Align text to the left */
        margin: 0;        /* Remove extra margins so it starts from the left */
        margin-right: 0;   /* Remove the right margin */
        padding-bottom: 2rem;
    }
    .team-member:focus-within .social-links {
        transform: translateY(0);
        opacity: 1;
    }
  }




/* Background Effects */
.bg-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.1), transparent 50%);
}



/* Icons */
.earth-icon {
    width: 14px;
    height: 14px;
    stroke: #6b7280;
}

.external-link-icon {
    transition: transform 0.3s ease;
}

.group:hover .external-link-icon {
    transform: translateX(0.25rem);
}



/* footer section */
.tedx-footer {
    background:black;
    color: #ffffff;
    padding: 100px 50px 50px;

}

.footer-container {
    max-width: 1200px;
    margin-right: 300px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-section {
    flex: 2;
    min-width: 300px;
   
}

.links-section {
    flex: 1.2;
    min-width: 150px;
    
}

.contact-section {
    flex: 1.5;
    min-width: 250px;
   
}
.email-link {
color: white;
text-decoration: none;
padding: 5px;
transition: background-color 0.3s;
margin-right: 5px;
}

.email-link:hover {
color: red;
}

.tedx-heading {
    color: #e62b1e;
    font-size: 36px;
    margin-bottom: 4px;
}

.subheading {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    align-items: center; /* Align text and icon in a row */
}
.contact-info div {
    display: flex;
    align-items: center; /* Ensures icons and text align properly */
    margin-bottom: 8px; /* Add spacing between each contact detail */
}

.tagline {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    max-width: 280px;
}

.footer-links {
    list-style: none;
    line-height: 1.8;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e62b1e;
}

.contact-info {
    line-height: 1.8;
    font-size: 16px;
}

.contact-social-wrapper {
    display: flex;
    gap: 30px;
}

.follow-us-section {
    margin-left: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #e62b1e;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    margin: 30px auto;
    max-width: 1200px;
}
/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
  }

  /* Footer styling */
  .site-footer {
    position: relative;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
  }

  
  



  @media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .tagline {
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .brand-section {
        text-align: left;
    }

    .tedx-heading, .subheading {
        text-align: left;
    }

    .contact-social-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .follow-us-section {
        margin-left: 0;
        margin-top: 20px;
    }

    .social-icons {
        justify-content: flex-start;
    }
}


/* Back to top arrow styling */
/* Ensure footer has relative positioning */
.footer {
    position: relative;
}

/* Place back-to-top button inside the footer */
    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 5%;
        right: 5%;
        width: 60px;
        height: 60px;
        background-color: #e62b1e; /* Red Circle */
        color: white; /* White Arrow */
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 28px;
        cursor: pointer;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
        opacity: 1; /* Make sure it's visible */
        visibility: visible;
        z-index: 1000;
    }

    .back-to-top i {
        font-size: 28px;
    }

    .back-to-top:hover {
        background-color: #c22218; /* Darker Red on Hover */
        transform: scale(1.1);
    }

    /* Hide Button Initially */
    .hidden {
        opacity: 0;
        visibility: hidden;
    }

    /* Responsive Styles */
    @media (max-width: 768px) {
        .back-to-top {
            width: 50px;
            height: 50px;
            font-size: 24px;
            bottom: 10%;
            right: 5%;
        }

        .back-to-top i {
            font-size: 24px;
        }
    }

    @media (max-width: 480px) {
        .back-to-top {
            width: 45px;
            height: 45px;
            font-size: 20px;
            bottom: 12%;
            right: 5%;
        }

        .back-to-top i {
            font-size: 20px;
        }
    }