/* ================= RESET & BASICS ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* This changes the font for every single element on the site */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: black;
    color: white;
    overflow-x: hidden;
    /* Optional: Improves font rendering on modern screens */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================= HEADER (DESKTOP DEFAULT) ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.hero-title-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tedx-logo {
    height: 50px; 
    width: auto;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    position: relative;
    transition: 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #E62B1E;
    transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ================= HERO SECTION ================= */
#home {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s ease-in-out;
}

/* Initial states for JS slider */
.slide1 { z-index: 1; opacity: 1; }
.slide2 { z-index: 2; opacity: 0; }

#home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9));
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.tedx { color: #E62B1E; font-weight: 900; }

.hero-content p {
    margin-top: 20px;
    font-size: 20px;
    opacity: 0.85;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 45px;
    border-radius: 50px;
    background: linear-gradient(135deg, #E62B1E, #ff3b2e);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(230,43,30,0.4);
}

/* ================= SHARED BACKGROUNDS ================= */
#about, #speakers, #sponsors, #contact {
    background-image: url("Background/Background_image1.JPG");
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    position: relative;
    padding-top: 100px;
    padding-bottom: 80px;
}

#about::before, #speakers::before, #sponsors::before, #contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85); 
    z-index: 1;
}

/* ================= SECTION TITLES ================= */
section.content-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2; 
}

section.content-section h2 { 
    font-size: 40px; 
    color: #E62B1E; 
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* ================= ABOUT SECTION ================= */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; 
    gap: 60px;
    align-items: flex-start;
    padding: 60px;
    background: rgba(20, 20, 20, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.about-block {
    flex: 1; 
    text-align: left;
}

.about-block h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 3px solid #E62B1E;
    display: inline-block;
    padding-bottom: 10px;
}

.text-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #cccccc; 
    margin-bottom: 20px;
    font-weight: 300;
}

.text-content strong {
    color: white;
    font-weight: 600;
}

.lead-text {
    font-size: 18px !important;
    color: white !important;
    font-weight: 400 !important;
}

.divider-vertical {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    align-self: stretch; 
}

.btn-about {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #E62B1E;
    color: #E62B1E;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px; 
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-about:hover {
    background: #E62B1E;
    color: white;
    box-shadow: 0 0 20px rgba(230, 43, 30, 0.4);
}

/* ================= SPEAKERS GRID (FIXED) ================= */
.speakers-grid {
    display: grid;
    /* Desktop: 3 columns, Responsive */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.speaker-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 100%; 
}

.speaker-card:hover {
    transform: translateY(-10px);
    border-color: #E62B1E;
    box-shadow: 0 20px 50px rgba(230, 43, 30, 0.2);
}

.speaker-img-box {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 50%; 
    overflow: hidden;
    border: 3px solid #E62B1E;
    padding: 3px; 
    background: transparent;
    flex-shrink: 0;
}

.speaker-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.speaker-card h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.speaker-bio {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.speaker-socials {
    margin-top: auto; 
}

.speaker-socials a {
    color: white;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.speaker-socials a:hover {
    background: #E62B1E;
    transform: scale(1.1);
}

/* ================= SPONSORS GRID ================= */


.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.07); 
    height: auto; 
    min-height: 320px; 
    border-radius: 16px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(230, 43, 30, 0.2);
}

.sponsor-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #E62B1E;
    background: rgba(230, 43, 30, 0.08);
    border: 1px solid #E62B1E;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
    display: inline-block;
}

.sponsor-img-box {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sponsor-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    padding: 5px;
}

.sponsor-card h3 {
    font-size: 20px;
    color: #c9c9c9; /* Lighter text for better contrast */
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    
}

.sponsor-card p {
    font-size: 14px;
    color: #9b9a9a;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    
}
.sponsors-subtitle {
    font-size: 18px;
    color: #FFFFFF; /* Changed to white to bring it forward */
    text-align: center;
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0.85;
    position: relative;
    z-index: 10;
    font-family: Helvetica, sans-serif;
}


/* ================= CONTACT ================= */
.contact-container {
    position: relative;
    z-index: 2; 
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}
.contact-container h2 {
    font-size: 40px;
    color: #e62b1e;
    margin-bottom: 20px;
    text-align: center;
}
.contact-intro {
    margin-bottom: 40px;
    font-size: 18px;
    opacity: 0.85;
    text-align: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.contact-card {
    background: rgba(255,255,255,0.06);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
    text-align: center;
}
.contact-card:hover {
    transform: translateY(-6px);
    background: rgba(230,43,30,0.12);
}
.contact-card h3 { color: #e62b1e; margin-bottom: 10px; }
.contact-card a {
    display: block;
    margin-top: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
}
.contact-card a:hover { color: #e62b1e; }
.event-head {
    margin-top: 60px;
    padding: 30px;
    background: rgba(230,43,30,0.1);
    border-radius: 15px;
    text-align: center;
}
.event-head h3 { color: #e62b1e; margin-bottom: 15px; }
.event-head p { margin: 5px 0; }
.event-head a { color: white; text-decoration: none; display: inline-block; margin-bottom: 10px;}
.phone { font-weight: bold; margin-top: 10px; display: block; }
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    font-size: 14px;
    opacity: 0.7;
    position: relative;
    z-index: 10;
}

/* ================= MOBILE OPTIMIZATION (ALL FIXES) ================= */
@media (max-width: 768px) {
    
    /* --- HEADER FIX (Left Align + Stacked) --- */
    header {
        flex-direction: column; /* Stack Logo on top, Nav below */
        align-items: flex-start; /* FORCE LEFT ALIGNMENT */
        padding: 15px 20px;
        background: rgba(0,0,0,0.95);
        gap: 15px;
    }

    .tedx-logo {
        height: 40px; /* Resize logo slightly for mobile */
    }

    nav {
        width: 100%;
        justify-content: flex-start; /* Nav Links Left Aligned */
        flex-wrap: nowrap; /* Prevent wrapping initially */
        overflow-x: auto; /* Scroll if it gets too wide */
        padding-bottom: 5px;
        margin: 0;
    }

    nav a {
        margin: 0 20px 0 0; /* Space to the right of each link */
        font-size: 14px;
        white-space: nowrap; /* Keep links on one line */
    }

    /* --- HERO SECTION FIX --- */
    .hero-content h1 { 
        font-size: 32px; 
        line-height: 1.3;
    }
    .hero-content p { font-size: 16px; }
    .btn { padding: 12px 30px; font-size: 14px; }

    /* --- ABOUT SECTION FIX (Compact) --- */
    .about-container {
        flex-direction: column;
        padding: 20px; /* Much smaller padding */
        gap: 20px;
    }
    .divider-vertical {
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.2);
    }
    .about-block h2 {
        font-size: 22px; /* Smaller Heading */
        margin-bottom: 15px;
    }
    .text-content p {
        font-size: 13px; /* Smaller Body Text */
        line-height: 1.5;
        margin-bottom: 15px;
    }
    .lead-text { font-size: 14px !important; }

    /* --- SPEAKERS GRID MOBILE FIX --- */
    .speakers-grid {
        grid-template-columns: 1fr; /* 1 Column */
        width: 95%;
        padding: 0;
        gap: 25px;
    }
    .speaker-card {
        padding: 25px 20px;
        width: 100%;
    }
    .speaker-img-box {
        width: 120px;
        height: 120px;
    }
    .speaker-card h3 { font-size: 20px; }

    /* --- SPONSORS GRID FIX --- */
    .sponsors-grid {
        grid-template-columns: 1fr; 
        width: 95%;
        padding: 0;
        gap: 25px;
    }
    .sponsor-card {
        min-height: auto;
        padding: 25px 20px;
    }

    /* --- CONTACT FIX --- */
    .contact-container h2 { font-size: 28px; }

    
}
/* ================= SIMPLE SOCIAL FOOTER ================= */
footer {
    background: #000;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-simple {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    height: 45px;
    width: auto;
}

/* Social Icons Layout */
.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-socials a {
    color: white;
    font-size: 22px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.footer-socials a:hover {
    background: #E62B1E; /* TEDx Red on hover */
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 43, 30, 0.4);
}

.footer-legal {
    font-size: 13px;
    color: #888;
    max-width: 400px;
    line-height: 1.4;
}

.footer-copyright {
    font-size: 12px;
    color: #555;
    margin-top: -10px;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .footer-logo {
        height: 35px;
    }
    .footer-socials a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}