/* style.css */

/* CSS Variables for Theme */
:root {
    /* Main Colors */
    --color-primary: #2E2E2E;
    --color-secondary: #4A4A4A;
    --color-accent: #FF5722;
    --color-accent-dark: #E64A19;
    --color-background: #F5F5F5;
    --color-text: #333333;
    --color-light: #FFFFFF;
    
    /* Gradient Backgrounds */
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    
    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Shadows */
    --shadow-glass: rgba(255, 255, 255, 0.1) 0px 4px 30px;
    
    /* Transition */
    --transition-speed: 0.3s;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    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);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-accent-dark);
}

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

button:hover, .button:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

button:focus, .button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.5);
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    opacity: 0.6;
    z-index: 1;
}

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

.hero .title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: drawIn 1.5s ease forwards;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: drawIn 2s ease forwards;
}

.hero .button {
    font-size: 1.2rem;
    animation: drawIn 2.5s ease forwards;
}

/* Features Section */
#features {
    padding: 4rem 0;
    background-color: var(--color-light);
    grid-gap: 2rem;
}

.feature-card {
    background: var(--color-light);
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.feature-card .title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* Partners Section */
#partners {
    padding: 4rem 0;
    background-color: var(--color-background);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform var(--transition-speed);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* Pricing Section */
#pricing {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.pricing-card {
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-card li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--color-secondary);
}

.pricing-card .button {
    margin-top: 1rem;
}

/* Projects Section */
#projects {
    padding: 4rem 0;
    background-color: var(--color-background);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

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

/* Instructors Section */
#instructors {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.instructor-card {
    background: var(--color-light);
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.instructor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.instructor-card .title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* Media Section */
#media {
    padding: 4rem 0;
    background-color: var(--color-background);
}

.carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 1rem;
}

.carousel-item {
    flex: 0 0 80%;
    scroll-snap-align: center;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Resources Section */
#resources {
    padding: 4rem 0;
    background-color: var(--color-light);
}

#resources .content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-secondary);
}

/* Sustainability Section */
#sustainability {
    padding: 4rem 0;
    background-color: var(--color-background);
}

#sustainability .content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-secondary);
}

/* Careers Section */
#careers {
    padding: 4rem 0;
    background-color: var(--color-light);
    text-align: center;
}

#careers .button {
    margin-top: 2rem;
}

/* Contact Section */
#contact {
    padding: 4rem 0;
    background-color: var(--color-background);
}

#contact .box {
    background: var(--color-light);
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(10px);
}

#contact .field label {
    font-size: 1.1rem;
    color: var(--color-secondary);
}

#contact .input, 
#contact .textarea {
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    padding: 0.75rem;
    font-family: var(--font-body);
    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(255, 87, 34, 0.5);
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-secondary);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-light);
}

.footer .title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

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

.footer .social-links a {
    margin-right: 0.5rem;
    display: inline-block;
    transition: transform var(--transition-speed);
}

.footer .social-links a img {
    width: 32px;
    height: 32px;
}

.footer .social-links a:hover {
    transform: scale(1.2);
}

.footer .content {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.flex {
    display: flex;
}

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

.grid {
    display: grid;
}

.grid-gap-2 {
    gap: 2rem;
}

/* Read More Links */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--color-accent);
    position: relative;
    transition: color var(--transition-speed);
}

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

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

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

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

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

    .feature-card, .pricing-card, .instructor-card {
        padding: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes drawIn {
    from {
        /*opacity: 0;*/
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Glassmorphism */
.box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 4px;
}

/* Image Styles with Placeholders */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Specific Image Styles */
.hero img {
    width: 112px;
    height: 28px;
    object-fit: cover;
}

.feature-card img {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

.partner-logo img {
    width: 200px;
    height: 100px;
    object-fit: contain;
}

.instructor-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.carousel-item img {
    width: 600px;
    height: 400px;
    object-fit: cover;
}

/* Smooth Transitions for Sections */
section {
    /*opacity: 0;*/
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Social Media Icons */
.social-links a img {
    transition: transform var(--transition-speed);
}

.social-links a:hover img {
    transform: scale(1.2);
}

/* Burger icon active state */
.navbar-burger.is-active span {
    background-color: #fff; /* Change burger icon color when active */
}

/* Default styling for burger and menu */
.navbar-menu {
    display: none; /* Hide the menu by default */
}

/* Show the menu when burger is active */
.navbar-menu.is-active {
    display: block;
}

/* Styling for the burger icon */
.navbar-burger {
    display: block;
    cursor: pointer;
}

.navbar-burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.navbar-burger.is-active span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    bottom: 8px;
}

/* Mobile responsive: show burger and hide menu by default */
@media screen and (max-width: 1024px) {
    .navbar-menu {
        display: none; /* Keep the menu hidden on mobile by default */
    }

    .navbar-menu.is-active {
        display: block; /* Show the menu when active */
    }

    .navbar-burger {
        display: block; /* Display burger icon */
    }
}

/* Desktop styling: burger menu should not be visible */
@media screen and (min-width: 1025px) {
    .navbar-burger {
        display: none; /* Hide burger icon on larger screens */
    }

    .navbar-menu {
        display: flex; /* Ensure the menu is always visible on larger screens */
    }
}

