﻿/* ============================================================================
   ENDURE FOREVER PAGE STYLES
   ============================================================================ */

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

/* Global Styles */
* {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0d1117;
    color: #e2e8f0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

main {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 4em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 1.5em;
    color: #e2e8f0;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: #cbd5e1;
}

p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #94a3b8;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #e2e8f0;
    padding: 3em 2em;
    border-radius: 1.5em;
    border-left: 6px solid rgba(34, 197, 94, 0.8);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.15);
}

.hero-text {
    flex: 1 1 400px;
    padding: 1em;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 0.3em;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.4em;
    color: #94a3b8;
    margin-bottom: 0.5em;
    font-weight: 500;
}

.hero-text .tagline {
    font-size: 1.1em;
    color: #8894a7;
    font-style: italic;
    margin-bottom: 1em;
}

.hero-text .role {
    font-size: 1.2em;
    color: #22c55e;
    font-weight: 600;
    padding: 0.5em 1em;
    background: rgba(34, 197, 94, 0.25);
    border-radius: 0.5em;
    display: inline-block;
    margin-bottom: 0.5em;
}

.hero-text .duration {
    font-size: 1em;
    color: #8894a7;
    font-style: italic;
    margin-bottom: 1.5em;
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
    padding: 1em;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 1.5em;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
}

.btn {
    color: #fff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 1em 2em;
    border-radius: 0.8em;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* ============================================================================
   BRAND MISSION SECTION
   ============================================================================ */
.mission {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mission-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.mission-text {
    flex: 1 1 500px;
}

.mission-text p {
    margin-bottom: 1.5em;
}

.mission-text strong {
    color: #22c55e;
    font-weight: 600;
}

.mission-stats {
    flex: 1 1 400px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}

.stat-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    padding: 2em 1.5em;
    border-radius: 1em;
    text-align: center;
    border: 2px solid rgba(34, 197, 94, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.3em;
    line-height: 1;
}

.stat-card p {
    font-size: 1em;
    color: #94a3b8;
    margin: 0;
    font-weight: 600;
}

/* ============================================================================
   ROLE & RESPONSIBILITIES SECTION
   ============================================================================ */
.role-section {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.role-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #22c55e;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.role-card h3 {
    margin-top: 0;
    color: #e2e8f0;
    font-size: 1.5em;
}

.role-card p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1em;
}

.role-card p:last-child {
    margin-bottom: 0;
}

.role-card strong {
    color: #22c55e;
}

/* ============================================================================
   TECHNICAL ACHIEVEMENTS SECTION
   ============================================================================ */
.tech-achievements {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.achievement-item {
    background: #0d1117;
    padding: 2.5em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 2.5em;
    border-left: 4px solid #22c55e;
}

.achievement-item:last-child {
    margin-bottom: 0;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 2px solid rgba(34, 197, 94, 0.4);
}

.achievement-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.achievement-title h3 {
    margin: 0;
    color: #22c55e;
    font-size: 1.8em;
}

.achievement-subtitle {
    margin: 0.3em 0 0;
    color: #8894a7;
    font-size: 1.1em;
    font-style: italic;
}

.achievement-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: flex-start;
}

.achievement-text {
    flex: 1 1 500px;
}

.achievement-text h4 {
    color: #e2e8f0;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-size: 1.3em;
}

.achievement-text h4:first-child {
    margin-top: 0;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.tech-list li {
    padding: 0.8em 0 0.8em 2.5em;
    color: #94a3b8;
    font-size: 1.05em;
    position: relative;
}

.tech-list li::before {
    content: "▶";
    color: #22c55e;
    font-size: 0.8em;
    position: absolute;
    left: 1em;
}

.impact-metrics {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.impact-metrics li {
    padding: 0.8em 0;
    color: #94a3b8;
    font-size: 1.05em;
    border-left: 3px solid #22c55e;
    padding-left: 1em;
    margin-bottom: 0.5em;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 0.3em;
}

.achievement-image {
    flex: 1 1 350px;
    text-align: center;
}

.achievement-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 1em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
    border: 3px solid rgba(34, 197, 94, 0.4);
}

.caption {
    margin-top: 1em;
    font-size: 1em;
    color: #8894a7;
    font-style: italic;
}

.code-snippet {
    margin-top: 1.5em;
    background: #1e293b;
    border-radius: 0.8em;
    overflow: hidden;
}

.code-snippet summary {
    padding: 1.2em 1.5em;
    cursor: pointer;
    background: #334155;
    color: #e2e8f0;
    font-weight: 600;
    transition: background 0.2s ease;
}

.code-snippet summary:hover {
    background: #475569;
}

.code-snippet pre {
    margin: 0;
    padding: 1.5em;
    overflow-x: auto;
    background: #1e293b;
}

.code-snippet code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ============================================================================
   BRAND GALLERY SECTION
   ============================================================================ */
.brand-gallery {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3em;
}

.gallery-intro p {
    font-size: 1.15em;
    color: #94a3b8;
}

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

.gallery-item {
    position: relative;
    background: #161b22;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.15);
}

.gallery-item.featured {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item.featured img {
    height: 400px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2em 1.5em 1.5em;
    color: #ffffff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(-5px);
}

.gallery-overlay h4 {
    margin: 0 0 0.3em;
    font-size: 1.3em;
    color: #ffffff;
}

.gallery-overlay p {
    margin: 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================================
   IMPACT & SKILLS SECTION
   ============================================================================ */
.impact {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.impact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-bottom: 3em;
}

.impact-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #22c55e;
}

.impact-card h3 {
    margin-top: 0;
    color: #e2e8f0;
}

.impact-card strong {
    color: #22c55e;
}

.skills-gained {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.skills-gained h3 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #e2e8f0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #e2e8f0;
    padding: 0.6em 1.2em;
    border-radius: 2em;
    font-size: 0.95em;
    font-weight: 500;
    border: 2px solid rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(34, 197, 94, 0.4);
    border-color: #22c55e;
    transform: scale(1.05);
}

/* ============================================================================
   BRAND VALUES SECTION
   ============================================================================ */
.values {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.values-content blockquote {
    font-size: 1.3em;
    line-height: 1.8;
    color: #cbd5e1;
    font-style: italic;
    border-left: 5px solid #22c55e;
    padding-left: 2em;
    margin: 0 0 2em 0;
    background: rgba(34, 197, 94, 0.05);
    padding: 1.5em 2em;
    border-radius: 0.5em;
}

.values-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
}

.pillar {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    padding: 1.5em;
    border-radius: 1em;
    text-align: center;
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.pillar-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.pillar h4 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 0.8em;
    color: #e2e8f0;
}

.pillar p {
    font-size: 1em;
    color: #8894a7;
    margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    main {
        padding: 1em;
    }

    section {
        margin-bottom: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text .subtitle {
        font-size: 1.1em;
    }

    .hero,
    .mission-content,
    .role-cards,
    .achievement-content,
    .gallery-grid,
    .impact-content,
    .values-pillars {
        flex-direction: column;
    }

    .mission-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .gallery-item.featured {
        grid-column: span 1;
    }

    .gallery-item img,
    .gallery-item.featured img {
        height: 250px;
    }

    .achievement-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
