/* style.css */

/* CSS Variables for Theme */
:root {
    /* Color Palette - Analogous Scheme */
    --color-primary: #ff6b6b; /* Bold Red */
    --color-secondary: #ff9f43; /* Vibrant Orange */
    --color-accent: #48dbfb; /* Bright Cyan */
    --color-bg-light: #f1f2f6;
    --color-bg-dark: #2f3640;
    --color-text: #2f3640;
    --color-text-light: #ffffff;
    --color-gradient: linear-gradient(135deg, #ff6b6b, #ff9f43, #48dbfb);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Animation Timing */
    --transition-speed: 0.3s;
    --animation-duration: 0.6s;

    /* Shadows and Effects */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
}

/* Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

button, .button {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color var(--transition-speed);
}

button:hover, .button:hover {
    transform: scale(1.05);
    background-color: var(--color-secondary);
}

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

.section {
    padding: 4rem 0;
}

.title {
    margin-bottom: 1.5rem;
}

.subtitle {
    margin-bottom: 2rem;
    color: var(--color-text-dark);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--color-text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
}

.hero .title {
    font-size: 3rem;
    animation: bounceIn 1s ease both;
}

.hero .subtitle {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease both;
}

.hero .button {
    animation: fadeIn 1s ease both;
}

/* About Us Section */
#about .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#about .column.is-two-thirds {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

#about img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed);
}

#about img:hover {
    transform: scale(1.05);
}

/* Services Section */
#services .card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

#services .card-image img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#services .card-content {
    padding: 1.5rem;
}

#services .card .title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Portfolio Section */
#portfolio .card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

#portfolio .card:hover {
    transform: rotate(2deg) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

#portfolio .card-image img {
    border-radius: 8px 8px 0 0;
}

/* Testimonials Section */
#testimonials .testimonial {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

#testimonials .testimonial:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

#testimonials .testimonial .author {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--color-primary);
}

/* Media Section */
#media .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

#media .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform var(--transition-speed);
}

#media .gallery-item img:hover {
    transform: scale(1.05);
}

/* Community Section */
#community p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

#community .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
}

#community .column.is-one-third {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

#community img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed);
}

#community img:hover {
    transform: scale(1.05);
}

/* Workshops Section */
#workshops .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

#workshops .gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed);
}

#workshops .gallery img:hover {
    transform: scale(1.05);
}

#workshops .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#workshops .column.is-two-thirds {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

#workshops .column p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Behind the Scenes Section */
#behind-the-scenes .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
}

#behind-the-scenes .column.is-one-third {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

#behind-the-scenes img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed);
}

#behind-the-scenes img:hover {
    transform: scale(1.05);
}

/* External Resources Section */
#external-resources ul {
    list-style: none;
    padding: 0;
}

#external-resources li {
    margin-bottom: 1.5rem;
}

#external-resources a {
    font-weight: bold;
    color: var(--color-accent);
    transition: color var(--transition-speed);
}

#external-resources a:hover {
    color: var(--color-primary);
}

#external-resources p {
    margin-top: 0.5rem;
    color: var(--color-text);
}

/* Contact Section */
#contact form {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: box-shadow var(--transition-speed);
}

#contact form:hover {
    box-shadow: var(--shadow-heavy);
}

#contact .field {
    margin-bottom: 1.5rem;
}

#contact .label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#contact .input,
#contact .textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.75rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

#contact .input:focus,
#contact .textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 5px rgba(72, 219, 251, 0.5);
}

#contact .button {
    background: var(--color-primary);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

#contact .button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* Footer Section */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 3rem 1.5rem;
}

.footer a {
    color: var(--color-accent);
    transition: color var(--transition-speed);
    color: #fff;
}

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

.footer .social-icons .icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: color var(--transition-speed) transform var(--transition-speed);
}

.footer .social-icons .icon:hover {
    color: var(--color-primary);
    transform: scale(1.2);
}

.footer .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
}

.footer .column.is-one-third {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.footer .content {
    margin-top: 2rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.has-text-dark {
    color: var(--color-text);
}

.has-background-light {
    background-color: var(--color-bg-light);
}

.has-background-dark {
    background-color: var(--color-bg-dark);
}

.has-background-gradient {
    background: var(--color-gradient);
}

.flex {
    display: flex;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.grid {
    display: grid;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Hover Effects for Read More Links */
.read-more {
    color: var(--color-accent);
    font-weight: bold;
    position: relative;
    transition: color var(--transition-speed);
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    left: 0;
    bottom: -2px;
    transition: width var(--transition-speed);
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .column.is-two-thirds {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #about .columns,
    #community .columns,
    #behind-the-scenes .columns,
    #services .columns,
    #portfolio .columns,
    #media .image-gallery,
    #workshops .gallery {
        flex-direction: column;
    }

    #external-resources .column.is-two-thirds {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero .title {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.25rem;
    }

    .footer .columns {
        flex-direction: column;
    }

    .footer .column.is-one-third {
        max-width: 100%;
    }
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

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

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

@keyframes elastic {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Utility for Smooth Transitions */
.transition {
    transition: all var(--transition-speed) ease;
}

/* Utility for Elastic Animations */
.elastic-animation {
    animation: elastic var(--animation-duration) ease;
}