/* --- 1. Global Variables & Reset --- */
:root {
    --primary-purple: #4A00E0;
    --secondary-purple: #8E2DE2;
    --accent-pink: #F05F9A;
    --accent-gold: #FFD700;
    --text-dark: #2c3e50;
    --text-grey: #7f8c8d;
    --white: #ffffff;
    --bg-gradient-main: linear-gradient(160deg, var(--accent-pink) 0%, var(--secondary-purple) 50%, var(--primary-purple) 100%);
    /* NEW: Gradient for Workshop Cards */
    --card-gradient: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple)); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- UPDATED BODY STYLE: Reverting to initial background image setting --- */
body {
    background-image: url('website-bg.jpg'); /* 🚨 CHANGE THIS FILENAME IF NEEDED! 🚨 */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--text-dark);
}

/* 🔄 Reverted: Content sections now use semi-transparent white overlay 
   to show background image through, and padding is set here. */
.about-section, 
.workshops-section, 
.registration-section, 
.contact-form-section {
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white overlay */
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 🎨 NEW: Section Title Background Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-purple);
    margin-bottom: 40px;
    display: inline-block; /* Allows background color to wrap text */
    padding: 10px 25px;
    border-radius: 5px;
    /* Using a subtle, light background color */
    background-color: rgba(230, 230, 250, 0.8); /* Light Lavender */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-primary-large {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-primary, .btn-primary-large {
    background: var(--accent-pink);
    color: var(--white);
    border: 2px solid var(--accent-pink);
    box-shadow: 0 4px 10px rgba(240, 95, 154, 0.4);
}

.btn-primary:hover, .btn-primary-large:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- 2. Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-pink);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white); 
}

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


/* --- 3. Hero Section --- */
.hero-section {
    background: var(--bg-gradient-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 50px 0;
}

.hero-text {
    flex: 1;
    color: var(--white);
    max-width: 55%;
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--accent-gold);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    max-width: 40%;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    filter: blur(50px);
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    left: 5%;
}
.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    right: 15%;
    animation-delay: 2s;
}
.shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 45%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
    100% { transform: translate(0, 0); }
}


/* --- 4. About Us Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    /* Removed text-align: left; here because it's handled by .section-title */
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-grey);
    margin-bottom: 15px;
    font-size: 1rem;
}

.about-image {
    flex: 1;
    max-width: 40%;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-list {
    margin-top: 40px;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-pink);
    min-width: 35px;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.feature-item small {
    color: var(--text-grey);
    line-height: 1.3;
}

/* --- 5. Workshops Section --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* ❌ Removed: colorPulse keyframes */

/* 🎨 NEW: Workshop Card Gradient Background, no animation */
.card {
    background: var(--card-gradient); 
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    /* Removed animation: colorPulse 10s infinite ease-in-out; */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.icon-box {
    margin-bottom: 20px;
}

/* Workshop Card Image Size Increase */
.workshop-icon {
    width: 80px; 
    height: 80px; 
    border-radius: 10px;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.cert-badge i {
    color: var(--accent-gold);
    margin-right: 8px;
}

.card-date {
    font-size: 0.95rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

/* Styles for Detailed Workshop Descriptions */
.detailed-description {
    text-align: left;
    padding: 15px 0 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 150px;
}

.detailed-description p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
}

.detailed-description ul {
    list-style: none;
    padding-left: 0;
}

.detailed-description ul li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.detailed-description ul li i {
    margin-right: 8px;
    color: var(--accent-gold);
}


/* --- 6. Registration Links Section --- */
.registration-section .section-title {
    color: var(--text-dark);
}

.registration-section .section-subtext {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 40px;
}

.registration-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.registration-link-item {
    background: #f7f7f7;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.registration-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.registration-link-item h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.registration-link-item .btn-primary-large {
    width: 100%;
    text-transform: uppercase;
}


/* --- 7. Contact Form Section --- */
.contact-form-section .section-title {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-subtext {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 40px;
}

.query-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-pink);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 75, 139, 0.2);
}

.query-form .btn-primary-large {
    margin-top: 15px;
    width: 100%;
}

/* Styles for the Callback Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-top: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 1rem;
}


/* --- 8. Footer --- */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px 0;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Footer Contact Information Styling */
.footer-content .contact-info {
    margin-bottom: 25px;
    margin-top: 15px;
}

.footer-content .contact-info p {
    color: var(--white);
    font-size: 1rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content .contact-info i {
    color: var(--accent-pink);
    margin-right: 10px;
    font-size: 1.1rem;
}

.footer-content .contact-info a {
    color: var(--white);
    text-decoration: underline;
}

.footer-content .contact-info a:hover {
    color: var(--accent-pink);
}


.socials a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-pink);
}

.copyright {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}


/* --- 9. Responsive Design (Media Queries) --- */

/* Tablet Styles (Max width 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }
    
    .registration-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet/Mobile Styles (Max width 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 25px;
    }

    /* Mobile Menu Display */
    .nav-links, .btn-nav {
        display: none; 
    }

    .hamburger {
        display: block;
        color: var(--white);
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 75px; 
        left: 0;
        width: 100%;
        background-color: rgba(74, 0, 224, 0.95); 
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        padding: 20px 0;
        animation: fadeInDown 0.3s ease-in-out;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-links li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Hero/About Section Stacking */
    .hero-section {
        min-height: 80vh;
        padding: 100px 25px 50px 25px;
    }
    
    .hero-content, .about-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-top: 20px;
    }
    
    .hero-image, .about-image {
        order: -1;
        margin-bottom: 30px;
        max-width: 90%;
    }

    .hero-btns {
        justify-content: center;
    }
    
    .features-list {
        grid-template-columns: 1fr; /* Stack features vertically on mobile */
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    /* Workshops Grid Stacking */
    .workshops-section {
        padding: 50px 25px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detailed-description {
        min-height: auto;
    }

    /* Form Section Adjustments */
    .contact-form-section, .registration-section {
        padding: 50px 25px;
    }
}

/* Mobile Phone Styles (Max width 600px) */
@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary, .btn-primary-large {
        width: 100%;
        padding: 12px 20px;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 8px 15px;
    }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
