/* ============================================
   HERO SECTION - ADVANCED
   Lanka Matha Tours - About Page
   ============================================ */

.hero-advanced {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: ken-burns 20s ease-in-out infinite alternate;
}

@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* Gradient Overlay with Animation */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(31, 85, 123, 0.85) 0%,
        rgba(3, 166, 168, 0.75) 50%,
        rgba(31, 85, 123, 0.85) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    z-index: 2;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: float-shape 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: float-shape 18s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 15%;
    clip-path: circle(50% at 50% 50%);
    animation: float-shape 12s ease-in-out infinite;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Particle Container */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.hero-title .line.animated {
    animation: slide-in-up 1s var(--ease-expo) forwards;
}

.hero-title .highlight {
    position: relative;
    background: linear-gradient(
        45deg,
        #ffffff 0%,
        var(--primary-color) 25%,
        #ffffff 50%,
        var(--primary-color) 75%,
        #ffffff 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle.animated {
    animation: slide-in-up 1s var(--ease-expo) 0.4s forwards;
}

/* ============================================
   CTA BUTTON
   ============================================ */

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta.animated {
    animation: slide-in-up 1s var(--ease-expo) 0.6s forwards;
}

.btn-advanced {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--timing-fast) var(--ease-smooth);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-advanced.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(3, 166, 168, 0.3);
}

.btn-advanced.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-advanced.primary:hover::before {
    left: 100%;
}

.btn-advanced.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(3, 166, 168, 0.5);
}

.btn-advanced .arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--timing-fast);
}

.btn-advanced .arrow-icon::before {
    content: '→';
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-advanced:hover .arrow-icon {
    transform: translateX(5px);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    animation: fade-in 1s ease 1s forwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 20% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-advanced {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .btn-advanced {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Simplify for mobile performance */
    .geometric-shapes,
    #hero-particles {
        display: none;
    }
    
    .hero-overlay {
        background: linear-gradient(rgba(31, 85, 123, 0.9), rgba(3, 166, 168, 0.85));
        animation: none;
    }
    
    .hero-bg-image {
        animation: none;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-advanced {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
