/* ============================================
   BesstEnergy - Minimalist Corporate Website
   Energy Storage. Engineering. Strategy.
   v2.0 - Bilingual Edition
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    --energy-green: #33C468;
    --energy-green-dark: #2aa857;
    --energy-green-light: #4dd880;
    --deep-graphite: #1A1E20;
    --graphite-soft: #2d3436;
    --slate-gray: #4A4F55;
    --light-gray: #F7F8FA;
    --border-gray: #E5E7EB;
    --white: #ffffff;
    --text-dark: #1A1E20;
    --text-muted: #6B7280;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-graphite);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--energy-green);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-green {
    color: var(--energy-green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-medium);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--energy-green);
    color: var(--white);
    border-color: var(--energy-green);
}

.btn-primary:hover {
    background: var(--energy-green-dark);
    border-color: var(--energy-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(51, 196, 104, 0.25);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--deep-graphite);
    border-color: var(--border-gray);
}

.btn-outline:hover {
    background: var(--deep-graphite);
    border-color: var(--deep-graphite);
    color: var(--white);
}

.btn-dark {
    background: var(--deep-graphite);
    color: var(--white);
    border-color: var(--deep-graphite);
}

.btn-dark:hover {
    background: var(--graphite-soft);
    border-color: var(--graphite-soft);
    color: var(--white);
}

/* ============================================
   NAVIGATION - Clean White Header
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 16px 0;
    transition: var(--transition-medium);
}

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

.logo-container {
    background: var(--white);
    padding: 4px;
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--deep-graphite);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--energy-green);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--energy-green);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-gray);
}

.lang-switcher a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.lang-switcher a:hover {
    color: var(--deep-graphite);
    background: var(--light-gray);
}

.lang-switcher a.active {
    color: var(--white);
    background: var(--deep-graphite);
}

/* Login Link - Green Color */
.login-link {
    color: var(--energy-green) !important;
}

.login-link:hover {
    color: var(--energy-green-dark) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--deep-graphite);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION - Fullscreen Background
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero/hero.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 30, 32, 0.92) 0%, rgba(26, 30, 32, 0.75) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--energy-green);
    margin-bottom: 24px;
    background: rgba(51, 196, 104, 0.15);
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(51, 196, 104, 0.3);
}

.hero h1 {
    margin-bottom: 28px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight {
    color: var(--energy-green);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    line-height: 1.8;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-number .green {
    color: var(--energy-green);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--energy-green);
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    gap: 24px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition-medium);
}

.feature-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--energy-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--deep-graphite);
}

.feature-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.about-visual {
    position: relative;
}

.about-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-stats-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 28px 36px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-stats-card .stat-number {
    font-size: 2rem;
    color: var(--energy-green);
}

.about-stats-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 16px;
    transition: var(--transition-medium);
    border: 1px solid var(--border-gray);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--energy-green);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--deep-graphite);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    background: var(--energy-green);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--deep-graphite);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid var(--light-gray);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--energy-green);
    border-radius: 50%;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-medium);
    border: 1px solid var(--border-gray);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--energy-green);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    z-index: 2;
}

.project-content {
    padding: 28px;
}

.project-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--deep-graphite);
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.project-stats {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
    flex-wrap: wrap;
}

.project-stats .stat {
    text-align: center;
}

.project-stats .stat .value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--energy-green);
    display: block;
}

.project-stats .stat .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--energy-green);
}

.project-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-stakeholders {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
}

.project-stakeholders .stakeholder {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    line-height: 1.5;
}

.project-stakeholders .stakeholder strong {
    color: var(--deep-graphite);
    font-weight: 600;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition-medium);
    border: 1px solid var(--border-gray);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    transition: var(--transition-medium);
}

.team-card:hover .team-image {
    filter: brightness(1.05);
}

.team-info {
    padding: 28px 20px;
}

.team-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--deep-graphite);
}

.team-role {
    font-size: 0.85rem;
    color: var(--energy-green);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.team-email:hover {
    color: var(--energy-green);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: var(--deep-graphite);
    position: relative;
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta {
    background: var(--energy-green);
    color: var(--white);
    border-color: var(--energy-green);
}

.btn-cta:hover {
    background: var(--energy-green-dark);
    border-color: var(--energy-green-dark);
    color: var(--white);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-info>p {
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.contact-details {
    display: grid;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--energy-green);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--deep-graphite);
}

.contact-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

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

.contact-text a:hover {
    color: var(--energy-green);
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 16px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--deep-graphite);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--energy-green);
    box-shadow: 0 0 0 4px rgba(51, 196, 104, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-gray);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    height: 45px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--deep-graphite);
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--energy-green);
    color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-gray);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-gray);
    }

    .nav-links a::after {
        display: none;
    }

    .lang-switcher {
        margin: 20px 0 0;
        padding: 20px 0 0;
        border-left: none;
        border-top: 1px solid var(--border-gray);
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

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

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

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .project-stats {
        flex-direction: column;
        gap: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* Loading Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FORM FEEDBACK MESSAGES
   ============================================ */
.form-message {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: fadeInUp 0.4s ease;
}

.form-message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-message-content svg {
    flex-shrink: 0;
}

.form-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message-success svg {
    color: #28a745;
}

.form-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message-error svg {
    color: #dc3545;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal,
.close-auth-modal {
    /* Reset absolute positioning to allow flexbox layout */
    position: static;
    /* top: 15px; */
    /* right: 20px; */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    background: none;
    border: none;
    line-height: 1;
}

.close-modal:hover,
.close-auth-modal:hover {
    color: var(--deep-graphite);
}


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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--deep-graphite);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--energy-green);
    box-shadow: 0 0 0 3px rgba(51, 196, 104, 0.1);
}

/* Request Account Link */
.request-account-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.request-account-link p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.request-account-link a {
    color: var(--energy-green);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.request-account-link a:hover {
    color: var(--energy-green-dark);
    text-decoration: underline;
}

/* ============================================
   MODAL ENHANCEMENTS (Maximize/Resize)
   ============================================ */
.modal-content {
    /* Enable resize (requires overflow: auto/scroll to work in some browsers, but we already have overflow-y:auto) */
    resize: both;
    overflow: auto;
    /* Constraints */
    min-width: 320px;
    min-height: 300px;
}

/* Maximized State */
.modal-content.maximized {
    width: 98% !important;
    max-width: 100% !important;
    height: 98vh !important;
    max-height: 100vh !important;
    margin: 0;
    border-radius: 0;
}

.btn-maximize {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    outline: none;
}

.btn-maximize:hover {
    color: #334155;
    background-color: #f1f5f9;
    border-radius: 4px;
}

/* Gantt Controls */
.gantt-view-btn {
    transition: all 0.2s;
}

.gantt-view-btn.active {
    background-color: #475569;
    /* Slate 600 */
    color: white;
    border-color: #475569;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
    height: 28px;
    display: inline-flex;
    align-items: center;
}