/* Timeline & History Section Styles */

/* Incredible Interactive History Timeline Styles */
.history-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Background Elements */
.history-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.history-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: particleFloat 20s infinite linear;
}

.history-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: gridRotate 60s infinite linear;
}

.history-glow {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    filter: blur(50px);
    animation: glowPulse 10s infinite alternate;
}

.digital-circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,50 L40,50 M60,50 L90,50 M50,10 L50,40 M50,60 L50,90" stroke="rgba(0,212,255,0.1)" stroke-width="0.5" fill="none"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.floating-code-snippets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.code-snippet {
    position: absolute;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.5s forwards, float 10s infinite ease-in-out;
}

.code-snippet:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0.2s, 1s;
}

.code-snippet:nth-child(2) {
    top: 25%;
    right: 8%;
    animation-delay: 0.4s, 2s;
}

.code-snippet:nth-child(3) {
    bottom: 30%;
    left: 12%;
    animation-delay: 0.6s, 3s;
}

.code-snippet:nth-child(4) {
    bottom: 20%;
    right: 15%;
    animation-delay: 0.8s, 4s;
}

.code-snippet:nth-child(5) {
    top: 60%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    animation-delay: 1s, 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Future Vision Section */
.future-vision {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.vision-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.vision-content {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.vision-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.vision-goals {
    margin-top: 30px;
}

.vision-goal {
    display: flex;
    margin-bottom: 25px;
}

.goal-icon {
    position: relative;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.2;
    filter: blur(10px);
    animation: pulseGlow 3s infinite;
}

.goal-content {
    flex: 1;
}

.goal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.goal-content p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.goal-progress {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: white;
    filter: blur(5px);
    opacity: 0.7;
    animation: progressGlow 2s infinite;
}

.progress-text {
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: right;
    opacity: 0.7;
}

.vision-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.future-hologram {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hologram-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.hologram-base {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    filter: blur(10px);
}

.base-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.5;
    filter: blur(5px);
    animation: baseLight 3s infinite alternate;
}

.hologram-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.stat-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.circle-progress {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 5;
}

.progress-fill {
    fill: none;
    stroke: url(#circleGradient);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 1;
    margin: 80px 0 40px;
}

.cta-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    border-radius: 15px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-card p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-btn:hover .btn-icon {
    transform: translateX(5px);
}

.primary-btn:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.6);
    transform: translateY(-2px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.deco-element {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    filter: blur(20px);
}

.deco-1 {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
}

.deco-2 {
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
}

.deco-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.05;
}

/* Animations */
@keyframes particleFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes hologramFlicker {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.9;
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }
    5% {
        clip: rect(80px, 9999px, 95px, 0);
    }
    10% {
        clip: rect(15px, 9999px, 25px, 0);
    }
    15% {
        clip: rect(54px, 9999px, 25px, 0);
    }
    20% {
        clip: rect(35px, 9999px, 35px, 0);
    }
    25% {
        clip: rect(63px, 9999px, 78px, 0);
    }
    30% {
        clip: rect(15px, 9999px, 25px, 0);
    }
    45% {
        clip: rect(40px, 9999px, 29px, 0);
    }
    50% {
        clip: rect(37px, 9999px, 43px, 0);
    }
    55% {
        clip: rect(73px, 9999px, 86px, 0);
    }
    60% {
        clip: rect(32px, 9999px, 49px, 0);
    }
    75% {
        clip: rect(56px, 9999px, 85px, 0);
    }
    80% {
        clip: rect(72px, 9999px, 99px, 0);
    }
    85% {
        clip: rect(11px, 9999px, 37px, 0);
    }
    90% {
        clip: rect(31px, 9999px, 84px, 0);
    }
    95% {
        clip: rect(94px, 9999px, 64px, 0);
    }
    100% {
        clip: rect(18px, 9999px, 19px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }
    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }
    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }
    15% {
        clip: rect(75px, 9999px, 5px, 0);
    }
    20% {
        clip: rect(67px, 9999px, 61px, 0);
    }
    25% {
        clip: rect(14px, 9999px, 79px, 0);
    }
    30% {
        clip: rect(1px, 9999px, 66px, 0);
    }
    35% {
        clip: rect(86px, 9999px, 30px, 0);
    }
    40% {
        clip: rect(23px, 9999px, 98px, 0);
    }
    45% {
        clip: rect(85px, 9999px, 72px, 0);
    }
    50% {
        clip: rect(71px, 9999px, 75px, 0);
    }
    55% {
        clip: rect(2px, 9999px, 48px, 0);
    }
    60% {
        clip: rect(30px, 9999px, 16px, 0);
    }
    65% {
        clip: rect(59px, 9999px, 50px, 0);
    }
    70% {
        clip: rect(41px, 9999px, 62px, 0);
    }
    75% {
        clip: rect(2px, 9999px, 82px, 0);
    }
    80% {
        clip: rect(47px, 9999px, 73px, 0);
    }
    85% {
        clip: rect(3px, 9999px, 27px, 0);
    }
    90% {
        clip: rect(26px, 9999px, 55px, 0);
    }
    95% {
        clip: rect(42px, 9999px, 97px, 0);
    }
    100% {
        clip: rect(38px, 9999px, 49px, 0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes baseLight {
    0%, 100% {
        opacity: 0.5;
        filter: blur(5px);
    }
    50% {
        opacity: 0.8;
        filter: blur(8px);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hologram-title {
        font-size: 2rem;
    }
    
    .hologram-text {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .timeline-event {
        min-width: 250px;
    }
    
    .vision-container {
        flex-direction: column;
    }
    
    .vision-visual {
        padding: 20px;
    }
    
    .hologram-stats {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .history-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .code-snippet {
        display: none;
    }
    
    .hologram-title {
        font-size: 1.8rem;
    }
    
    .hologram-text {
        font-size: 0.9rem;
    }
    
    .founder-image {
        width: 100px;
        height: 100px;
    }
    
    .timeline-event {
        min-width: 220px;
    }
    
    .event-content h4 {
        font-size: 1.2rem;
    }
    
    .event-content p {
        font-size: 0.9rem;
    }
    
    .event-image {
        height: 120px;
    }
    
    .glitch-text {
        font-size: 2rem;
    }
    
    .vision-content {
        padding: 30px;
    }
    
    .cta-card {
        padding: 30px;
    }
    
    .cta-card h3 {
        font-size: 1.8rem;
    }
    
    .cta-card p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .history-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hologram-content {
        padding: 15px;
    }
    
    .hologram-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .hologram-text {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .founder-image {
        width: 80px;
        height: 80px;
    }
    
    .founder-name {
        font-size: 1rem;
    }
    
    .founder-title {
        font-size: 0.8rem;
    }
    
    .timeline-event {
        min-width: 200px;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-content h4 {
        font-size: 1.1rem;
    }
    
    .event-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .event-image {
        height: 100px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .glitch-text {
        font-size: 1.8rem;
    }
    
    .vision-content {
        padding: 20px;
    }
    
    .vision-content p {
        font-size: 0.9rem;
    }
    
    .goal-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }
    
    .goal-content h4 {
        font-size: 1.1rem;
    }
    
    .goal-content p {
        font-size: 0.85rem;
    }
    
    .cta-card {
        padding: 25px;
    }
    
    .cta-card h3 {
        font-size: 1.5rem;
    }
    
    .cta-card p {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-image {
        height: 150px;
    }
    
    .modal-details {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-description {
        font-size: 0.9rem;
    }
    
    .modal-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .gallery-images {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 150px;
    }
}

.holographic-container {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.holographic-display {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(0, 180, 255, 0.05);
    border: 1px solid rgba(0, 220, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.4);
    overflow: hidden;
    transform: rotateX(5deg);
    animation: hologram-float 6s ease-in-out infinite;
}

.holo-image {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 220, 255, 0.8));
}

.holo-reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 180, 255, 0), rgba(0, 220, 255, 0.1));
    transform: scaleY(-1);
    opacity: 0.4;
    filter: blur(2px);
}

.holo-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 220, 255, 0.05) 2px,
        rgba(0, 220, 255, 0.05) 4px
    );
    z-index: 3;
    pointer-events: none;
}

.holo-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 220, 255, 0.1);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    animation: holo-glitch 4s infinite;
}

.holo-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.holo-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 220, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 220, 255, 0.8);
    animation: control-pulse 2s infinite alternate;
}

.holo-control:nth-child(2) {
    animation-delay: 0.7s;
}

.holo-control:nth-child(3) {
    animation-delay: 1.4s;
}

.holo-base {
    position: relative;
    width: 80%;
    height: 20px;
    margin: -10px auto 0;
    background: linear-gradient(to right, #111, #333, #111);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.holo-light {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 220, 255, 0.8) 0%, rgba(0, 220, 255, 0) 70%);
    opacity: 0.7;
    animation: light-pulse 3s infinite;
}

.holo-data {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0 20px;
}

.data-line {
    height: 2px;
    background: linear-gradient(to right, 
        rgba(0, 220, 255, 0), 
        rgba(0, 220, 255, 0.7) 20%, 
        rgba(0, 220, 255, 0.7) 80%, 
        rgba(0, 220, 255, 0)
    );
    animation: data-flow 3s infinite linear;
}

.data-line:nth-child(2) {
    animation-duration: 5s;
    animation-direction: reverse;
}

.data-line:nth-child(3) {
    animation-duration: 7s;
}

@keyframes hologram-float {
    0%, 100% { transform: rotateX(5deg) translateY(0); }
    50% { transform: rotateX(8deg) translateY(-10px); }
}

@keyframes holo-glitch {
    0%, 100% { opacity: 0; }
    10%, 15% { opacity: 0.3; transform: translate(-5px, 0); }
    20%, 25% { opacity: 0; transform: translate(0, 0); }
    30%, 35% { opacity: 0.3; transform: translate(5px, 0); }
    40%, 45% { opacity: 0; transform: translate(0, 0); }
    50%, 55% { opacity: 0.3; transform: translate(-2px, 0); }
    60%, 65% { opacity: 0; transform: translate(0, 0); }
}

@keyframes control-pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

@keyframes light-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes data-flow {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
}