/* =====================
   Modern Hero Section
   ===================== */
:root {
    --primary-color: #0a4a0a;
    --secondary-color: #ff9000;
    --accent-color: #ff5252;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, rgba(10, 74, 10, 0.95) 0%, rgba(15, 105, 15, 0.9) 50%, rgba(10, 74, 10, 0.95) 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient), url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: hidden;
    z-index: 1;
    margin-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiBmaWxsPSJ0cmFuc3BhcmVudCI+PC9yZWN0PjxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwJSIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjAzKSI+PC9yZWN0PjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSI+PC9yZWN0Pjwvc3ZnPg==');
    opacity: 0.1;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    position: relative;
    z-index: 15;
}

.hero-text h1 .typewriter {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff9e1f 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 20;
}

.hero-text h1 .typewriter::after {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--secondary-color);
    background-clip: unset;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #ff9e1f);
    border-radius: 2px;
    animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

.hero-text .lead {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0 20px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #ff9e1f);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 144, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff9e1f, var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 144, 0, 0.4);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: var(--glass-bg);
    color: #fff;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.feature-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--secondary-color), #ff9e1f);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), #ff9e1f);
    color: #fff;
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 144, 0, 0.3);
}

.feature-item:hover .feature-icon::before {
    opacity: 1;
}

.feature-item span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.feature-item:hover span {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Animated Elements */
.hero-shape-1,
.hero-shape-2,
.hero-shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
    filter: blur(1px);
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(255, 144, 0, 0.1) 0%, rgba(255, 144, 0, 0.05) 50%, transparent 70%);
    animation: float1 15s ease-in-out infinite;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: 100px;
    left: -150px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.05) 50%, transparent 70%);
    animation: float2 12s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 15%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: float3 10s ease-in-out infinite;
}

.hero-shape-4 {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(255, 144, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float4 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(50px, -70px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-30px, 40px) rotate(240deg) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-60px, 50px) rotate(180deg) scale(1.2); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(30px, 60px) rotate(90deg) scale(1.3); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.1); }
    50% { transform: translate(-20px, -40px) scale(0.9); }
    75% { transform: translate(30px, 20px) scale(1.2); }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Text Animations */
.hero-text h1 {
    animation: slideInDown 1s ease-out;
}

.hero-text .lead {
    animation: slideInLeft 1.2s ease-out 0.3s both;
}

.cta-buttons {
    animation: slideInUp 1.4s ease-out 0.6s both;
}

.features-grid {
    animation: scaleIn 1.6s ease-out 0.9s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    .hero-text .lead {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-shape-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
    }
    
    .hero-shape-2 {
        width: 250px;
        height: 250px;
        bottom: 80px;
        left: -120px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-text .lead {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .hero-shape-1,
    .hero-shape-2,
    .hero-shape-3,
    .hero-shape-4 {
        display: none;
    }
    
    .cta-buttons {
        gap: 15px;
        margin-bottom: 3rem;
    }
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    transition: var(--transition);
    font-weight: 500;
}

.scroll-down:hover {
    color: var(--secondary-color);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down i {
    font-size: 1.8rem;
    margin-top: 8px;
    animation: bounce 2s infinite;
    color: var(--secondary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Particle Effects */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Loading Animation */
.hero-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Typewriter Effect - Final Fix */
.typewriter {
    display: inline-block;
    position: relative;
    color: var(--secondary-color) !important;
    font-weight: 700;
    z-index: 25;
    text-shadow: 0 0 20px rgba(255, 144, 0, 0.5);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff9e1f 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -15px;
    color: var(--secondary-color) !important;
    animation: blink 1s step-end infinite;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 144, 0, 0.8);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--secondary-color);
    background-clip: unset;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}
