.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg,
        #0f172a 0%,
        #1e293b 25%,
        #334155 50%,
        #475569 75%,
        #64748b 100%);
    background-size: 400% 400%;
    animation: heroGradientShift 15s ease infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem 1rem; /* Added top padding to avoid header collision */
    padding-top: 120px; /* Extra space for header */
}

.hero-section.loading {
    opacity: 0;
    transform: scale(0.95);
}

.hero-section.loaded {
    opacity: 1;
    transform: scale(1);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Galaxy Background */
.hero-galaxy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        rgba(59, 130, 246, 0.3) 0%,
        rgba(99, 102, 241, 0.2) 25%,
        rgba(168, 85, 247, 0.15) 50%,
        rgba(236, 72, 153, 0.1) 75%,
        transparent 100%);
    animation: galaxyPulse 20s ease-in-out infinite;
    z-index: 1;
}

.hero-galaxy-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.5), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starsMove 50s linear infinite;
    opacity: 0.7;
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Desktop: Left button - Center content - Right button */
    grid-template-areas: "left center right";
    gap: 2rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Hero Logo Section */
.hero-logo-section {
    grid-area: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.hero-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(147, 51, 234, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(59, 130, 246, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(59, 130, 246, 0.3),
        transparent,
        rgba(147, 51, 234, 0.3),
        transparent
    );
    animation: logoRotate 15s linear infinite;
    z-index: -1;
}

.hero-logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

/* Action Buttons */
.hero-action-left,
.hero-action-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-action-left {
    grid-area: left;
    justify-self: end;
    padding-right: 1rem;
}

.hero-action-right {
    grid-area: right;
    justify-self: start;
    padding-left: 1rem;
}

/* Enhanced Professional Hero Buttons */
.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    min-width: 180px;
    height: 60px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Register Button Styling */
.hero-btn-register {
    background: linear-gradient(135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%);
    background-size: 300% 300%;
    animation: gradientShiftRegister 6s ease infinite;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-btn-register:hover {
    transform: translateY(-5px) scale(1.05) rotateX(5deg);
    box-shadow:
        0 15px 40px rgba(102, 126, 234, 0.4),
        0 8px 25px rgba(245, 87, 108, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation-duration: 2s;
}

.hero-btn-register:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Download Button Styling */
.hero-btn-download {
    background: linear-gradient(135deg,
        #11998e 0%,
        #38ef7d 25%,
        #2196f3 50%,
        #21cbf3 75%,
        #a8edea 100%);
    background-size: 300% 300%;
    animation: gradientShiftDownload 6s ease infinite;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-btn-download:hover {
    transform: translateY(-5px) scale(1.05) rotateX(5deg);
    box-shadow:
        0 15px 40px rgba(17, 153, 142, 0.4),
        0 8px 25px rgba(56, 239, 125, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation-duration: 2s;
}

.hero-btn-download:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Button Background Effects */
.btn-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    background-size: 200% 200%;
    animation: bgShift 3s ease-in-out infinite;
    border-radius: inherit;
    z-index: 1;
}

.btn-shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    transition: all 0.6s ease;
    border-radius: inherit;
    z-index: 2;
}

.hero-btn:hover .btn-shine-effect {
    left: 100%;
}

.btn-glow-effect {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: inherit;
    border-radius: 25px;
    filter: blur(15px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.hero-btn:hover .btn-glow-effect {
    opacity: 0.8;
}

/* Button Content */
.btn-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 25px;
    z-index: 3;
    transition: all 0.3s ease;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-icon i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.hero-btn:hover .btn-icon {
    transform: scale(1.2) rotate(360deg);
    background: rgba(255, 255, 255, 0.3);
}

.hero-btn:hover .btn-icon i {
    transform: scale(1.1);
}

.btn-text {
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-btn:hover .btn-text {
    transform: translateX(3px);
    letter-spacing: 1.5px;
}

/* Button Particles */
.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.btn-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 3s linear infinite;
}

.btn-particles .particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.btn-particles .particle:nth-child(2) {
    left: 40%;
    animation-delay: 0.6s;
}

.btn-particles .particle:nth-child(3) {
    left: 60%;
    animation-delay: 1.2s;
}

.btn-particles .particle:nth-child(4) {
    left: 80%;
    animation-delay: 1.8s;
}

.btn-particles .particle:nth-child(5) {
    left: 30%;
    animation-delay: 2.4s;
}

.hero-btn:hover .btn-particles .particle {
    animation-duration: 1s;
}

/* Mini Hero Section for Non-Home Pages */
.mini-hero-section {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg,
        #0f172a 0%,
        #1e293b 25%,
        #334155 50%,
        #475569 75%,
        #64748b 100%);
    background-size: 400% 400%;
    animation: heroGradientShift 15s ease infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 1rem 1rem;
    margin: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mini-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        rgba(59, 130, 246, 0.3) 0%,
        rgba(99, 102, 241, 0.2) 25%,
        rgba(168, 85, 247, 0.15) 50%,
        rgba(236, 72, 153, 0.1) 75%,
        transparent 100%);
    animation: galaxyPulse 20s ease-in-out infinite;
    border-radius: inherit;
    z-index: 1;
}

.mini-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.5), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starsMove 50s linear infinite, starTwinkle 3s ease-in-out infinite;
    opacity: 0.7;
}

.mini-hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.mini-hero-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.mini-hero-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-hero-logo {
    position: relative;
    width: 160px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(147, 51, 234, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(59, 130, 246, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.mini-hero-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent,
        rgba(147, 51, 234, 0.1),
        transparent);
    animation: miniLogoRotate 15s linear infinite;
    z-index: -1;
}

.mini-hero-logo-img {
    width: 120px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

/* Mobile Responsive for Mini Hero */
@media (max-width: 768px) {
    .mini-hero-section {
        min-height: 200px;
        padding: 1rem 0.5rem;
        margin: 0;
    }

    .mini-hero-logo {
        width: 140px;
        height: 60px;
    }

    .mini-hero-logo-img {
        width: 100px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .mini-hero-section {
        min-height: 180px;
        padding: 0.75rem 0.25rem;
    }

    .mini-hero-logo {
        width: 120px;
        height: 50px;
    }

    .mini-hero-logo-img {
        width: 90px;
        height: 40px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        padding: 100px 1rem 1.5rem 1rem; /* Maintain header spacing on tablets */
        min-height: 90vh;
    }

    .hero-content {
        gap: 1.5rem;
        padding: 0.5rem;
        grid-template-columns: 1fr auto 1fr; /* Keep horizontal layout for tablets */
        grid-template-areas: "left center right";
    }

    .hero-action-left {
        padding-right: 0.5rem;
    }

    .hero-action-right {
        padding-left: 0.5rem;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
    }

    .hero-logo-img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 90px 0.5rem 1rem 0.5rem; /* Header spacing for mobile */
        background-attachment: scroll;
    }

    /* Switch to vertical layout on mobile */
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "center"
            "left"
            "right";
        gap: 2rem;
        padding: 1rem 0.5rem;
        max-width: 100%;
    }

    .hero-logo-section {
        gap: 1.5rem;
        margin-bottom: 0;
    }

    .hero-action-left,
    .hero-action-right {
        width: 100%;
        padding: 0 1rem;
        justify-self: center;
    }

    .hero-action-left {
        justify-self: center;
        padding-right: 1rem;
    }

    .hero-action-right {
        justify-self: center;
        padding-left: 1rem;
    }

    .hero-logo {
        width: 160px;
        height: 160px;
    }

    .hero-logo-img {
        width: 120px;
        height: 120px;
    }

    /* Mobile galaxy background optimization */
    .hero-galaxy-bg::before {
        background-size: 150px 75px;
        animation-duration: 40s;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 80px 0.5rem 0.5rem 0.5rem; /* Header spacing for small screens */
        min-height: 100vh;
    }

    .hero-content {
        gap: 1.5rem;
        padding: 1rem 0;
        grid-template-areas:
            "center"
            "left"
            "right";
    }

    .hero-logo-section {
        gap: 1rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .hero-logo-img {
        width: 100px;
        height: 100px;
    }

    .hero-action-left,
    .hero-action-right {
        padding: 0 0.5rem;
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 75px 0.25rem 0.5rem 0.25rem; /* Header spacing for very small screens */
        background-size: 300% 300%;
    }

    .hero-content {
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .hero-logo-section {
        gap: 0.8rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
        border-width: 1px;
    }

    .hero-logo-img {
        width: 90px;
        height: 90px;
    }

    /* Optimize performance on small screens */
    .hero-galaxy-bg {
        animation-duration: 25s;
    }

    .hero-logo::before {
        animation-duration: 20s;
    }
}

@media (max-width: 360px) {
    .hero-section {
        min-height: 100vh;
        padding: 70px 0.25rem 0.25rem 0.25rem; /* Header spacing for smallest screens */
    }

    .hero-content {
        gap: 0.8rem;
        padding: 0.5rem 0;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .hero-logo-img {
        width: 75px;
        height: 75px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0.5rem 0.5rem 0.5rem; /* Header spacing for landscape mobile */
    }

    .hero-content {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 1fr;
        grid-template-areas: "left center right";
        gap: 1rem;
        align-items: center;
        padding: 0.5rem;
    }

    .hero-logo-section {
        gap: 1rem;
    }

    .hero-action-left {
        justify-self: start;
        padding-right: 0.5rem;
        width: auto;
    }

    .hero-action-right {
        justify-self: end;
        padding-left: 0.5rem;
        width: auto;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-logo-img {
        width: 90px;
        height: 90px;
    }
}

/* High DPI optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo {
        border-width: 1px;
    }

    .hero-galaxy-bg::before {
        opacity: 0.8;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .hero-galaxy-bg,
    .hero-logo::before {
        animation: none;
    }

    .hero-section.loading {
        opacity: 1;
        transform: none;
    }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg,
            #020617 0%,
            #0f172a 25%,
            #1e293b 50%,
            #334155 75%,
            #475569 100%);
    }

    .hero-logo {
        background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.15) 0%,
            rgba(147, 51, 234, 0.15) 100%);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

/* Enhanced mobile touch experience */
@media (hover: none) and (pointer: coarse) {
    .hero-logo {
        cursor: default;
        transition: transform 0.2s ease;
    }

    .hero-logo:active {
        transform: scale(0.95);
    }

    /* Optimize animations for touch devices */
    .hero-section {
        animation-duration: 20s;
    }

    .hero-galaxy-bg {
        animation-duration: 30s;
    }
}

/* Gradient Animations */
@keyframes gradientShiftRegister {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShiftDownload {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-90%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%) scale(0);
    }
}

@keyframes miniLogoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Missing Keyframes for Animations */
@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes galaxyPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

@keyframes starsMove {
    0% { background-position: 0 0; }
    100% { background-position: 200px 100px; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-btn {
        min-width: 160px;
        height: 55px;
        font-size: 0.95rem;
    }

    .btn-content {
        gap: 10px;
        padding: 0 22px;
    }

    .btn-icon {
        width: 22px;
        height: 22px;
    }

    .btn-icon i {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "center"
            "left"
            "right";
        gap: 2rem;
        padding: 1rem;
    }

    .hero-action-left,
    .hero-action-right {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-logo-section {
        grid-area: center;
        margin-bottom: 1rem;
    }

    .hero-btn {
        min-width: 280px;
        height: 65px;
        font-size: 1.1rem;
        border-radius: 25px;
        margin: 0.5rem 0;
    }

    .btn-content {
        gap: 15px;
        padding: 0 30px;
    }

    .btn-icon {
        width: 28px;
        height: 28px;
    }

    .btn-icon i {
        font-size: 16px;
    }

    .btn-text {
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* Enhanced hover effects for mobile */
    .hero-btn:hover {
        transform: translateY(-3px) scale(1.02);
    }

    .hero-btn:active {
        transform: translateY(0) scale(0.98);
    }
}

@media (max-width: 600px) {
    .hero-btn {
        min-width: 260px;
        height: 60px;
        font-size: 1rem;
        border-radius: 22px;
    }

    .btn-content {
        gap: 12px;
        padding: 0 25px;
    }

    .btn-icon {
        width: 26px;
        height: 26px;
    }

    .btn-icon i {
        font-size: 15px;
    }

    .btn-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .hero-btn {
        min-width: 240px;
        height: 55px;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .btn-content {
        gap: 10px;
        padding: 0 20px;
    }

    .btn-icon {
        width: 24px;
        height: 24px;
    }

    .btn-icon i {
        font-size: 14px;
    }

    .btn-text {
        letter-spacing: 0.8px;
        font-size: 0.9rem;
    }

    /* Reduced particle effects for better performance */
    .btn-particles .particle {
        width: 3px;
        height: 3px;
    }

    /* Smaller glow effects for mobile */
    .btn-glow-effect {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        filter: blur(10px);
    }
}

@media (max-width: 360px) {
    .hero-btn {
        min-width: 220px;
        height: 50px;
        font-size: 0.85rem;
        border-radius: 18px;
    }

    .btn-content {
        gap: 8px;
        padding: 0 18px;
    }

    .btn-icon {
        width: 22px;
        height: 22px;
    }

    .btn-icon i {
        font-size: 13px;
    }

    .btn-text {
        letter-spacing: 0.5px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* Simplified animations for very small screens */
    .hero-btn:hover .btn-icon {
        transform: scale(1.1) rotate(180deg);
    }

    .hero-btn:hover .btn-text {
        transform: translateX(2px);
        letter-spacing: 1px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero-btn {
        min-height: 60px;
        touch-action: manipulation;
    }

    .hero-btn:hover {
        transform: none;
        animation: none;
    }

    .hero-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    /* Disable hover-specific animations on touch devices */
    .hero-btn:hover .btn-particles .particle {
        animation-duration: 3s;
    }

    .hero-btn:hover .btn-glow-effect {
        opacity: 0.5;
    }

    /* Enhanced tap feedback */
    .hero-btn:active::before {
        opacity: 0.3;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .hero-action-left,
    .hero-action-right {
        order: initial;
        width: auto;
        flex: 0 0 auto;
    }

    .hero-logo-section {
        order: initial;
        flex: 1;
        margin-bottom: 0;
    }

    .hero-btn {
        min-width: 180px;
        height: 50px;
        font-size: 0.9rem;
    }

    .btn-content {
        gap: 8px;
        padding: 0 20px;
    }

    .btn-text {
        font-size: 0.9rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-btn {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .btn-particles .particle {
        box-shadow: 0 0 8px currentColor;
    }
}

/* RTL Support */
[dir="rtl"] .btn-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-btn:hover .btn-text {
    transform: translateX(-3px);
}

[dir="rtl"] .btn-shine-effect {
    left: 100%;
}

[dir="rtl"] .hero-btn:hover .btn-shine-effect {
    left: -100%;
}

/* Focus States for Accessibility */
.hero-btn:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Loading State */
.hero-btn.loading {
    pointer-events: none;
}

.hero-btn.loading .btn-content {
    opacity: 0.7;
}

.hero-btn.loading .btn-icon {
    animation: loadingRotate 1s linear infinite;
}

@keyframes loadingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced hover effects for better interaction */
.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hero-btn:hover::before {
    opacity: 1;
}

/* Success animation for when action is completed */
.hero-btn.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hero particles styles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    animation: heroParticleFloat 12s linear infinite;
    opacity: 0;
    top: 100%;
}

.hero-particle:nth-child(odd) {
    background: linear-gradient(45deg, #f093fb, #667eea);
    animation-duration: 15s;
}

.hero-particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 10s;
}

@keyframes heroParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translateY(-100px) scale(1) rotate(180deg);
    }
    90% {
        opacity: 1;
        transform: translateY(-100vh) scale(1) rotate(360deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-120vh) scale(0) rotate(540deg);
    }
}

/* Page Path Display in Mini Hero Section */
.mini-hero-path {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.path-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.path-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.3) 50%,
        transparent 100%);
    transition: left 0.5s ease;
}

.mini-hero-path:hover .path-text::before {
    left: 100%;
}

/* Mobile Responsive for Path */
@media (max-width: 768px) {
    .path-text {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .path-text {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Home Link in Breadcrumb Path */
.path-link {
    color: var(--color-game-neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.path-link:hover {
    color: var(--color-game-neon-cyan-dark);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.path-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-game-neon-cyan);
    transition: width 0.3s ease;
}

.path-link:hover::after {
    width: 100%;
}

/* Breadcrumb Navigation Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.breadcrumb-item {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.breadcrumb-item:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.breadcrumb-item.current {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.3);
    color: var(--color-game-neon-pink);
    font-weight: 600;
    cursor: default;
}

.breadcrumb-separator {
    color: var(--color-text-secondary);
    font-weight: bold;
    font-size: 1rem;
}

/* Mobile Responsive for Breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        gap: 0.3rem;
    }

    .breadcrumb-item {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }

    .breadcrumb-separator {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        gap: 0.2rem;
        justify-content: flex-start;
    }

    .breadcrumb-item {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .breadcrumb-separator {
        font-size: 0.8rem;
    }
}

/* Notification Styles for Unread/Read States */
.notification-item-desktop.unread {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid #ffc107;
    animation: notificationPulse 2s ease-in-out infinite;
}

.notification-item-desktop.read {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.8;
}

.notification-item-desktop.unread:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08));
    transform: translateX(-2px);
}

.notification-unread-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ffc107;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    animation: indicatorGlow 1.5s ease-in-out infinite alternate;
}

@keyframes notificationPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
    }
}

@keyframes indicatorGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
    }
}
