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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 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: 20px; /* 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;
    }
}



/* main section */
.min-h-screen {
    min-height: 100vh;
    background: linear-gradient(to bottom, #111827, #1f2937, #111827);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 1rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1515187029135-18ee286d815b?auto=format&fit=crop&w=2000');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, transparent, #111827);
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge span {
    color: #f70000;
    font-weight: 600;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.primary-button:hover {
    background: #b91c1c;
}

.external-link-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.primary-button:hover .external-link-icon {
    transform: translateX(4px);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.play-icon {
    margin-right: 0.5rem;
}

/* Speakers Section */
.speakers-section {
    position: relative;
    padding: 8rem 1rem;
}

.section-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #111827, black);
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.header-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.users-icon {
    color: #ef4444;
    margin-right: 1rem;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #d11515, #b31313);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-description {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 1.5rem auto 0;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

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

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

.speaker-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(31, 41, 55, 0.5);
    padding: 2px;
    transition: all 0.3s;
}

.speaker-card:hover {
    transform: scale(1.02);
    padding: 3px;
}

.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ef4444, #a855f7, #ef4444);
    background-size: 400% 400%;
    border-radius: 1rem;
    opacity: 0.75;
    transition: opacity 0.3s;
    animation: gradient 8s ease infinite;
}

.speaker-card:hover .card-gradient {
    opacity: 1;
}

.card-content {
    position: relative;
    background: #111827;
    padding: 1.5rem;
    border-radius: 1rem;
    height: 100%;
    backdrop-filter: blur(12px);
}

.speaker-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

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

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, white, #d1d5db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.speaker-role {
    color: #f87171;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.speaker-topic {
    color: #9ca3af;
    font-size: 0.875rem;
}

.view-talk-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #d1d5db;
    opacity: 0;
    transition: opacity 0.3s;
}

.speaker-card:hover .view-talk-badge {
    opacity: 1;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* 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;
        }
    }

    