/* General Styles */
:root {
    --primary: #ef4444;
    --primary-hover: #dc2626;
    --bg-dark: #050a16;
    --bg-card: #1f2937;
    --bg-card-hover: #374151;
    --text: #f3f4f6;
    --text-secondary: #9ca3af;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.5;
}
/* 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: 4px;
        right: -10.5rem; /* Right-aligned hamburger */
        font-size: 32px;
        cursor: pointer;
        z-index: 1000;
        background: none;
        border: none;
        color: white;
    }
    .hamburger:hover {
        background: none !important;
        color: inherit !important;
        box-shadow: none !important;
        cursor: default !important;
    }

    .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;
    }
}



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

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

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

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

.min-h-screen {
    min-height: 100vh;
}

/* Contact Section */
.contact-section {
    padding: 4rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
}

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

.title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ef4444, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .title {
        font-size: 3rem;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

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

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: background-color 0.2s;
}

.info-card:hover {
    background-color: var(--bg-card-hover);
}

.icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin: 0 auto;
}

.info-card h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;

}


.info-card p,
.info-card a {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

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

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

input,
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.375rem;
    color: #111827;
    margin-bottom: 1.5rem;
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--primary-hover);
}

.send-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: auto;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: none;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
}

/* 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;
    position: relative;
    top: -62px; /* Adjust upward */
   
   
}


.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-infox div {
    display: flex;
    align-items: center; /* Ensures icons and text align properly */
    margin-bottom: 15px; /* 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 {
        margin-left: -6%;
        flex-direction: column;
        align-items: flex-start;
    }

    .follow-us-section {
        margin-left: -1.6%;
        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;
        }
    }