/* --- YGS Website Redesign --- */

/* 1. SETUP & VARIABLES
-------------------------------------------------- */
:root {
    --teal-dark: #003d34;
    --teal-light: #00897B;
    --amber-accent: #FFC107;
    --off-white: #f8f7f4;
    --dark-charcoal: #1a1a1a;
    --light-gray: #b0b0b0;
    --white: #ffffff;
    --black: #000000;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s ease;
}

/* 2. BASE & TYPOGRAPHY
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-charcoal);
    color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
}

p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

/* 3. ANIMATED BACKGROUND
-------------------------------------------------- */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, #003d34 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, #5e4200 0%, transparent 30%),
                radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 100%);
    background-size: 200% 200%;
    animation: gradient-flow 20s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 4. HEADER & NAVIGATION
-------------------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--light-gray);
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--amber-accent);
    transition: width var(--transition-slow);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

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

.nav-cta {
    background: var(--amber-accent);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: var(--black);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--dark-charcoal);
    position: fixed;
    top: 80px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    z-index: 99;
}

/* 5. PAGE CONTENT & SECTIONS
-------------------------------------------------- */
.page-content {
    display: none;
    animation: fadeIn 0.8s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--teal-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 1rem 0;
    color: var(--white);
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-gray);
    letter-spacing: 4px;
}

#typewriter {
    color: var(--amber-accent);
}

/* 6. INTERACTIVE CARD with AURORA EFFECT
-------------------------------------------------- */
.interactive-card {
    background: rgba(35, 35, 35, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    z-index: 1;
}

.interactive-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-slow);
    background: radial-gradient(
        300px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 137, 123, 0.2),
        transparent 80%
    );
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: rgba(255, 255, 255, 0.2);
}

.interactive-card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--teal-light), var(--teal-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.card-icon.alt {
    background: linear-gradient(145deg, var(--amber-accent), #c79100);
    color: var(--black);
}

.interactive-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
}
.card-link i {
    transition: transform var(--transition-fast);
    margin-left: 0.25rem;
}
.card-link:hover i {
    transform: translateX(5px);
}

/* Grid Layouts */
.services-grid, .problems-grid, .services-grid-3-col {
    display: grid;
    gap: 2rem;
}
.services-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.problems-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.services-grid-3-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }


/* 7. SPECIFIC SECTION STYLES
-------------------------------------------------- */

/* Quote Section */
.quote-section {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}
.quote-section p {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}
.about-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 15px 30px var(--shadow-color);
}
.about-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.highlight-card {
    background: rgba(35, 35, 35, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.highlight-card i {
    font-size: 1.5rem;
    color: var(--teal-light);
    margin-bottom: 0.5rem;
}
.highlight-card h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-gray);
}
.about-text-column h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.checklist i {
    color: var(--teal-light);
    margin-top: 4px;
}
.info-box {
    background: rgba(0, 61, 52, 0.3);
    border-left: 4px solid var(--teal-light);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.info-box.alt {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--amber-accent);
}
.info-box strong {
    color: var(--white);
}

/* Problems Section */
.symptom-title {
    font-weight: 600;
    color: var(--white);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.symptom-list {
    padding-left: 1rem;
}
.symptom-list li {
    list-style-type: disc;
    margin-left: 1rem;
}

/* Workshops Section */
.workshop-item {
    margin-bottom: 5rem;
}
.workshop-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}
.workshop-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* 8. AI TOOL & FORMS
-------------------------------------------------- */
.ai-tool-section {
    background: rgba(0,0,0,0.1);
    padding: 6rem 0;
}
.ai-tool-card {
    max-width: 800px;
    margin: 0 auto;
}
.ai-input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.ai-input:focus {
    outline: none;
    border-color: var(--amber-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}
.ai-button {
    width: 100%;
    background: var(--amber-accent);
    color: var(--black);
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}
.ai-button .loader {
    display: none;
}
.ai-button.loading .button-text {
    display: none;
}
.ai-button.loading .loader {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.ai-output {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    min-height: 150px;
}
.ai-output h3 { font-size: 1.2rem; color: var(--amber-accent); margin-top: 1rem; }
.ai-output ul { padding-left: 1.5rem; }
.ai-output li { list-style-type: disc; margin-left: 1rem; }


/* 9. FOOTER
-------------------------------------------------- */
.footer-section {
    background: var(--black);
    padding: 4rem ;
    margin-top: 0.5cm;
    text-align: center;
}
.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.contact-button {
    background: var(--dark-charcoal);
    color: var(--light-gray);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}
.contact-button:hover {
    background: var(--teal-dark);
    color: var(--white);
    border-color: var(--teal-light);
    transform: translateY(-2px);
}
.contact-button i {
    margin-right: 0.75rem;
}
.copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* 10. RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image-column {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
    .services-grid, .problems-grid, .services-grid-3-col {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Loader Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
