/* General Styling */
:root {
    --black: #080808;
    --dark-grey: #1a1a1a;
    --orange: #ff7f00;
    --light-orange: #ff9933;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Key fix to prevent horizontal overflow */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--black);
    overflow-x: hidden; /* Double-check for safety */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--orange);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--orange);
    position: relative;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--light-orange);
    box-shadow: 0 0 5px var(--light-orange);
}

/* Header and Navigation */
.header {
    background: rgba(8, 8, 8, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(255,127,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated Logo Styling */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Allows the logo to take up available space */
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced gap for mobile */
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(255,127,0,0.5);
    position: relative;
    white-space: nowrap; /* Prevents text from wrapping */
}

.impact, .you {
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.5s ease;
}

.iy {
    font-size: 3rem;
    font-weight: 900;
    color: var(--orange);
    text-shadow: 2px 2px 8px rgba(255,127,0,0.8);
    transition: all 0.5s ease;
}

.iy-container {
    position: relative;
    display: flex;
    align-items: center;
}

.line {
    position: absolute;
    height: 3px;
    background: var(--white);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
    transition: width 0.5s ease, opacity 0.5s ease;
}

.line-left {
    left: -20px;
    width: 0;
    opacity: 0;
}

.line-right {
    right: -20px;
    width: 0;
    opacity: 0;
}

/* Media query to apply the line animations only on larger screens */
@media (min-width: 769px) {
    .logo-text {
        gap: 15px; /* Restore desktop gap */
    }

    .logo-text:hover .impact, .logo-text:hover .you {
        color: var(--orange);
    }

    .logo-text:hover .line-left {
        width: 120px; /* Increased line length on hover */
        opacity: 1;
        animation: linePulse 2s infinite;
    }

    .logo-text:hover .line-right {
        width: 120px;
        opacity: 1;
        animation: linePulse 2s infinite reverse;
    }
}


@keyframes linePulse {
    0%, 100% { box-shadow: 0 0 5px var(--light-orange); }
    50% { box-shadow: 0 0 20px var(--light-orange); }
}

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

.nav-button {
    background: var(--orange);
    color: var(--black);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 20px;
    text-shadow: none;
}

.nav-button:hover {
    background: var(--light-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,127,0,0.5);
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 20px 0;
}

.mobile-nav-list a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
    transition: color 0.3s ease;
}

.mobile-nav-list a:hover {
    color: var(--light-orange);
}

/* Login/Sign-up Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--dark-grey);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255,127,0,0.3);
    position: relative;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.close-button {
    color: var(--white);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.form-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid var(--orange);
    border-radius: 5px;
}

.toggle-button {
    background: var(--dark-grey);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.toggle-button.active {
    background: var(--orange);
    color: var(--black);
}

.login-form, .signup-form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.active-form {
    display: flex;
}

.login-form h2, .signup-form h2 {
    color: var(--orange);
    margin-bottom: 20px;
}

.login-form input, .signup-form input {
    width: 100%; /* Ensure inputs fill container */
    padding: 12px;
    border: 1px solid var(--orange);
    background-color: var(--black);
    color: var(--white);
    border-radius: 5px;
    font-size: 1rem;
}

.form-submit-button {
    background: var(--orange);
    color: var(--black);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit-button:hover {
    background: var(--light-orange);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.gallery-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    animation: slideShow 30s infinite;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    filter: brightness(0.5) blur(3px); /* Added blur to the slides */
    transition: filter 1s ease;
}

.hero-content {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    backdrop-filter: blur(8px); /* Increased blur on content */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid var(--orange);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: var(--orange);
    color: var(--black);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
}

.cta-button:hover {
    background: var(--light-orange);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255,127,0,0.3);
}

@keyframes slideShow {
    0% { transform: translateX(0); }
    10% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    35% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    60% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    85% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s forwards;
}

.animate-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards;
}

.animate-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

/* Sections */
section {
    padding: 80px 0;
    transition: background-color 0.5s ease;
}

/* Sessions Section */
.sessions {
    background: var(--dark-grey);
    padding: 60px 0;
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px;
    background: rgba(255, 127, 0, 0.2);
    border-radius: 15px;
    border: 1px solid var(--orange);
}

.session-card {
    background: var(--black);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255,127,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--orange);
}

.session-card h3 {
    color: var(--orange);
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.session-card p {
    font-size: 1rem;
    color: var(--white);
}

.session-card:hover {
    background: var(--orange);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255,127,0,0.5);
    color: var(--black);
}

.session-card:hover h3, .session-card:hover p {
    color: var(--black);
}

/* Why Choose Us Section */
.why-choose-us {
    background: var(--dark-grey);
    padding: 60px 0;
    color: var(--white);
}

.why-choose-us .section-title {
    color: var(--orange);
}

.why-choose-us .section-title::after {
    background: var(--light-orange);
}

.why-choose-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.why-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding: 20px;
    background: var(--black);
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(255,127,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--orange);
}

.why-choose-item:hover {
    transform: translateX(10px);
}

.why-choose-item i {
    font-size: 2rem;
    color: var(--orange);
    margin-top: 5px;
}

.why-choose-item p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--white);
}

.why-choose-item span {
    font-weight: 700;
    color: var(--light-orange);
}

/* Testimonials Section */
.testimonials {
    background: var(--black);
    padding: 60px 0;
}

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

.testimonial-card {
    background: var(--dark-grey);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255,127,0,0.3);
    max-width: 450px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    color: var(--white);
    border: 1px solid var(--orange);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--orange);
    display: block;
    margin-top: auto;
}

/* Gallery Section - Updated for 3D Flip */
.gallery {
    background: var(--dark-grey);
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    perspective: 1000px; /* For 3D transform */
}

.gallery-card {
    background: transparent;
    width: 100%;
    height: 250px; /* Increased card height */
    position: relative;
    cursor: pointer;
    transition: transform 0.6s;
}

.gallery-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--orange);
}

.gallery-card:hover .gallery-card-inner {
    transform: rotateY(180deg);
}

.gallery-card-front, .gallery-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
}

.gallery-card-front {
    background: var(--black);
}

.gallery-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-card-back {
    background: var(--orange);
    color: var(--black);
    transform: rotateY(180deg);
    padding: 20px;
}

.gallery-card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-card-back p {
    font-size: 1rem;
    color: var(--black);
}

/* Contact Section */
.contact-section {
    background: var(--black);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-container, .contact-info-container {
    background: var(--dark-grey);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255,127,0,0.3);
    color: var(--white);
    border: 1px solid var(--orange);
}

.contact-form-container .section-title, .contact-info-container .section-title {
    color: var(--orange);
    margin-bottom: 20px;
}

.contact-form .section-title::after, .contact-info-container .section-title::after {
    display: none;
}

.contact-text {
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--orange);
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--light-orange);
    box-shadow: 0 0 5px var(--light-orange);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--orange);
    color: var(--black);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: var(--light-orange);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Changed to flex-start for better alignment with wrapped text */
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--orange);
    min-width: 25px; /* Added min-width to prevent icon from shifting */
}

.contact-item p, .contact-item a {
    font-size: 1.1rem;
    color: var(--white);
    word-break: break-all; /* More aggressive word-breaking for long strings */
}

.contact-item a {
    color: var(--orange);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    font-size: 2rem;
    color: var(--orange);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--light-orange);
}


/* Footer */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 2px solid var(--orange);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand, .footer-links, .footer-contact {
    flex: 1 1 250px;
}

.footer-logo-text {
    justify-content: flex-start;
}

.footer-content h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--orange);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    line-height: 2.5;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--dark-grey);
}

/* Responsive Design (No changes needed) */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .session-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .iy {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav .nav-button {
        display: none;
    }

    .logo-text {
        gap: 10px;
    }
    .line-left, .line-right {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .section-title {
        font-size: 2rem;
    }

    .why-choose-list {
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links ul, .footer-contact ul {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }
}
