/* Home Page Specific Styles - Professional & Elegant */

/* Hero Section - Enhanced visual impact */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    min-height: 700px;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    justify-content: flex-start; /* Align content to left */
    overflow: hidden;
    background-color: #000; /* Fallback */
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000; /* Ensure black background */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem); /* Much closer to edge */
}

.hero-title {
    font-size: clamp(1rem, 2.5vw, 2rem); /* 50% smaller */
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 700;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(0.8rem, 1.6vw, 1rem); /* 60% larger */
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 0 2rem 0;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    font-weight: 300;
}

.subtitle-break {
    display: none; /* Hidden by default */
}

/* Desktop only: break line at 'they' */
@media (min-width: 769px) {
    .subtitle-break {
        display: block; /* Creates line break */
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Holographic UI Panel Removed */

/* Scene Caption */
.scene-caption {
    position: absolute;
    top: 120px;
    right: clamp(2rem, 5vw, 4rem);
    z-index: 10;
    text-align: right;
    color: var(--text-light);
    font-family: var(--font-accent);
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    transition: opacity 0.5s ease;
}

.caption-title {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.caption-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Interactive Scene Selector */
.scene-selector {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.scene-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0; /* Prevent dots from shrinking */
}

.scene-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.scene-dot.active {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 0 12px var(--accent-light);
    transform: scale(1.2);
}

.scene-dot::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    right: 0;
    font-size: 0.625rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--text-light);
    font-family: var(--font-accent);
    letter-spacing: 0.05em;
    pointer-events: none;
}

.scene-dot:hover::after {
    opacity: 1;
}

/* Mobile responsiveness for scene selector */
@media (max-width: 768px) {
    .scene-selector {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .scene-dot {
        width: 10px;
        height: 10px;
    }
    
    .scene-dot::after {
        font-size: 0.5rem;
        bottom: -25px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        align-items: center; /* Center vertically */
        justify-content: flex-start;
        padding-top: 15vh; /* Push content down from top */
        padding-bottom: 2rem;
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
        padding: 0 1.5rem;
        margin-bottom: 2rem; /* Reduced space below content */
        max-width: 100%;
        order: 2; /* Content appears below the effect */
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem); /* Larger on mobile */
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.71rem, 2.63vw, 0.825rem); /* 25% smaller (0.95 * 0.75 = 0.71, 1.1 * 0.75 = 0.825) */
        line-height: 1.6;
        margin: 0 auto 1rem; /* Reduced margin */
    }

    .hero-cta {
        justify-content: center;
    }

    #canvas-container {
        position: relative; /* Flow in document */
        height: 45vh; /* Slightly smaller */
        width: 100%;
        order: 1; /* Effect appears above content */
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    }
    
    .scene-caption {
        top: 100px;
        right: 1.5rem;
        left: auto;
    }
    
    .caption-title {
        font-size: 0.75rem;
    }
    
    .caption-subtitle {
        font-size: 0.7rem;
    }
}

/* Problems Section - Enhanced card design */
.problems-section {
    background-color: var(--bg-secondary);
}

.problems-intro {
    text-align: center;
    max-width: 960px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.problems-intro h2 {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.problems-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: none;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 1024px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background-color: var(--bg-primary);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.problem-description {
    flex-grow: 1;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.problem-card:hover::before {
    transform: scaleX(1);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.problem-number {
    font-family: var(--font-accent);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.problem-title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.problem-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.problem-solution {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.problem-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--accent-color);
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.problem-cta:hover {
    gap: 1rem;
    color: var(--accent-light);
}

.problem-cta::after {
    content: '→';
    font-size: 1.25rem;
}

/* Mission & Vision Section - Professional White/Grey Design */
.mission-vision-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

#mission-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

.mission-vision-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.title-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #666666, transparent);
    margin: 0 auto;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    max-width: 1400px;
    margin: 0 auto;
}

.mission-box,
.vision-box {
    padding: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
    background: #ffffff;
    border-radius: 0;
    border: none;
    border-left: 3px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.mission-box:hover,
.vision-box:hover {
    border-left-color: #666666;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transform: translateX(8px);
}

.mission-box h3,
.vision-box h3 {
    color: #333333;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-accent);
}

.mission-box p,
.vision-box p {
    color: #666666;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.9;
    font-weight: 300;
    max-width: none;
}

/* What We Do - Strategic Plan Section - Professional White/Grey Design */
.what-we-do-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    min-height: 800px;
}

.strategic-content {
    position: relative;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
    color: #666666;
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Interactive Strategic Tabs */
.strategic-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.strategic-tab {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.strategic-tab:hover {
    border-color: #999999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.strategic-tab.active {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.tab-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #999999;
    font-family: var(--font-accent);
    letter-spacing: 0.1em;
}

.strategic-tab.active .tab-number {
    color: #cccccc;
}

.tab-title {
    font-size: 0.9375rem;
    color: #333333;
    font-weight: 400;
    text-align: center;
    font-family: var(--font-accent);
    letter-spacing: 0.02em;
}

.strategic-tab.active .tab-title {
    color: #ffffff;
}

/* Strategic Content Cards */
.strategic-content-container {
    position: relative;
    min-height: 600px;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.strategic-content-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    padding: clamp(2.5rem, 5vw, 4rem);
    border-left: 3px solid #e0e0e0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.strategic-content-card.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.strategic-content-card h3 {
    color: #1a1a1a;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.card-content > p {
    color: #666666;
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.content-highlight {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid #cccccc;
    flex: 1;
    min-width: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.highlights-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .highlights-container {
        flex-direction: column;
    }
}

.content-highlight h4 {
    color: #333333;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-family: var(--font-accent);
    letter-spacing: 0.02em;
}

.content-highlight p {
    color: #666666;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 300;
}

.why-box {
    background: #333333;
    color: #ffffff;
    padding: 2rem;
    margin-top: 2rem;
}

.why-box strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-family: var(--font-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
}

.why-box p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 300;
}

/* Timeline Section - Redesigned */
.timeline-section {
    margin: clamp(4rem, 8vw, 6rem) 0 0;
}

.timeline-content {
    background: #ffffff;
    padding: clamp(2.5rem, 5vw, 4rem);
    border-left: 3px solid #e0e0e0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.timeline-content h3 {
    color: #1a1a1a;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.timeline-content > p {
    color: #666666;
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.timeline-content ul {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: #666666;
    line-height: 1.9;
    font-size: 1.0625rem;
    font-weight: 300;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: #333333;
    border-radius: 50%;
}

.timeline-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.timeline-footer p {
    color: #666666;
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: 1rem;
    font-weight: 300;
}

.timeline-footer p strong {
    color: #333333;
    font-weight: 500;
}

/* Responsive Design - Enhanced for mobile */
@media (max-width: 768px) {
    .hero-section {
        height: 85vh;
        min-height: 600px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .mission-vision-section {
        min-height: auto;
        padding: clamp(3rem, 8vw, 5rem) 0;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-box,
    .vision-box {
        padding: 2rem 1.5rem;
    }
    
    .what-we-do-section {
        min-height: auto;
    }
    
    .strategic-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .strategic-tab {
        min-width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .strategic-content-card {
        padding: 2rem 1.5rem;
    }
    
    .content-highlight {
        padding: 1.25rem 1.5rem;
    }
    
    .why-box {
        padding: 1.5rem;
    }
    
    .timeline-content {
        padding: 2rem 1.5rem;
    }
    
    .problem-card,
    .objective-card {
        padding: 2rem;
    }
    
    .strategic-detail {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .problem-card,
    .objective-card {
        padding: 1.5rem;
    }
    
    .strategic-detail {
        padding: 1.5rem;
    }
}
