/* Home Page Specific Styles */

/* Floating Astronaut */
.floating-astronaut {
    position: fixed;
    top: -10px;
    left: 15%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-left: -200px; /* Position it near the logo */
}

.floating-astronaut .image {
    width: 100px;
    height: 100px;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    transform-origin: center;
}

.floating-astronaut:hover .image {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* Hero Section with Animated Grid Background */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Animated Grid Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 30s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Grid Dots Animation */
.grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.2) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: gridDots 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridDots {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Interactive Grid Cells */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.grid-cell {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.02);
    transition: all 0.3s ease;
    opacity: 0;
}

.grid-cell.active {
    opacity: 1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    animation: cellPulse 2s ease-in-out infinite;
}

@keyframes cellPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: titleUnderline 1s ease 0.5s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes titleUnderline {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    margin-left: -290px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px var(--shadow-light);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 20%;
    right: 15%;
    animation: float 3s ease-in-out infinite 0.5s;
}

.card-3 {
    bottom: 30%;
    left: 20%;
    animation: float 3s ease-in-out infinite 1s;
}

.card-4 {
    bottom: 15%;
    right: 10%;
    animation: float 3s ease-in-out infinite 1.5s;
}

/* ===== Enhanced Features Section ===== */
.features-section {
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient-dark);
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
    z-index: 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 20px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(17, 24, 39, 0.6);
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.feature-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: inherit;
    z-index: -1;
    transition: all 0.4s ease;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-content {
    text-align: left;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
    opacity: 0.9;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.feature-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.feature-link:hover {
    color: var(--primary-light);
}

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

.feature-link i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* Features CTA */
.features-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.features-cta::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

.features-cta h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.features-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .features-cta h3 {
        font-size: 1.8rem;
    }
    
    .features-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .features-cta {
        padding: 40px 20px;
    }
    
    .features-cta h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 0, 255, 0.05) 0%, rgba(0, 191, 255, 0.05) 100%);
    z-index: -1;
    opacity: 0.3;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.category-card {
    background: var(--background-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.category-icon i {
    font-size: 1.8rem;
    color: white;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.category-count {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
    border-radius: 16px 16px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-astronaut {
        display: none;
    }
    
    .hero-section {
        padding: 80px 15px 40px;
        min-height: 85vh;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 0 10px;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 25px;
        opacity: 0.9;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .hero-visual {
        height: 250px;
        margin-bottom: 20px;
        transform: translateY(20px);
    }
    
    .floating-card {
        padding: 12px;
        width: 70px;
        height: 70px;
    }
    
    .floating-card i {
        font-size: 1.3rem;
    }
    
    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
  .hero-visual {
    margin-left: 0;
  }
}

/* تم حذف جميع ستايلات hero-code-window وما يتعلق بها */

/* Glassy Navbar Styles */
.navbar {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.nav-container {
  background: rgba(35,41,70,0.32);
  backdrop-filter: blur(10px) saturate(1.2);
  border-radius: 18px;
  box-shadow: none !important;
  transition: background 0.3s;
}

/* Mobile navbar improvements */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: 95%;
    }
    
    .nav-container {
        padding: 12px 20px;
        border-radius: 15px;
    }
    
    .nav-logo span {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 8px;
        width: 98%;
    }
    
    .nav-container {
        padding: 10px 15px;
        border-radius: 12px;
    }
    
    .nav-logo span {
        font-size: 1.1rem;
    }
    
    .nav-logo i {
        font-size: 1.3rem;
    }
}

.feature-card, .category-card, .floating-card {
    background: var(--surface-color) !important;
    border: 1.5px solid var(--border-color) !important;
    box-shadow: 0 6px 24px var(--shadow-light) !important;
}

.feature-card h3, .category-card h3, .floating-card span {
    color: var(--text-primary) !important;
}

.feature-card p, .category-card p {
    color: var(--text-secondary) !important;
}

.hero-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: heroFadeIn 0.9s cubic-bezier(.77,0,.18,1) forwards;
  animation-play-state: paused;
}
.hero-title.hero-animate {
  animation-delay: 0.1s;
}
.hero-subtitle.hero-animate {
  animation-delay: 0.35s;
}
.hero-buttons.hero-animate {
  animation-delay: 0.6s;
}
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments for floating astronaut */
@media (max-width: 768px) {
    .floating-astronaut {
        margin-left: -180px;
    }
    
    .floating-astronaut .image {
        width: 50px;
        height: 50px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .hero-section {
        padding: 60px 8px 25px;
        min-height: 75vh;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        max-width: 220px;
        gap: 8px;
    }
    
    .hero-buttons .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .hero-visual {
        height: 180px;
        margin-bottom: 15px;
        transform: translateY(10px);
    }
    
    .floating-card {
        width: 50px;
        height: 50px;
        padding: 8px;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .cta-content h2 {
        font-size: 1.4rem;
    }
    
    .cta-buttons {
        max-width: 220px;
        gap: 8px;
    }
    
    .cta-buttons .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .floating-astronaut {
        margin-left: -160px;
    }
    
    .floating-astronaut .image {
        width: 40px;
        height: 40px;
    }
    
    .hero-section {
        padding: 70px 10px 30px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        max-width: 250px;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: 200px;
        transform: translateY(15px);
    }
    
    .floating-card {
        width: 60px;
        height: 60px;
        padding: 10px;
    }
    
    .floating-card i {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        max-width: 250px;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile optimizations for hero visual */
@media (max-width: 768px) {
    .hero-visual {
        transform: translateY(-120px);
        margin-bottom: 35px;
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual canvas {
        transform: scale(0.8);
    }
}

@media (max-width: 576px) {
    .hero-visual {
        transform: translateY(-90px);
        margin-bottom: 10px;
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual canvas {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .hero-visual {
        transform: translateY(-70px);
        margin-bottom: 8px;
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual canvas {
        transform: scale(0.6);
    }
}

/* Ensure text positioning remains unaffected */
@media (max-width: 768px) {
    .hero-content {
        position: relative;
        z-index: 2;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        position: relative;
        z-index: 2;
    }
    
    .hero-visual {
        position: relative;
        z-index: 1;
    }

}

@media (max-width: 576px) {
    .hero-content {
        position: relative;
        z-index: 2;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        position: relative;
        z-index: 2;
    }
    
    .hero-visual {
        position: relative;
        z-index: 1;
    }

}

@media (max-width: 480px) {
    .hero-content {
        position: relative;
        z-index: 2;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        position: relative;
        z-index: 2;
    }
    
    .hero-visual {
        position: relative;
        z-index: 1;
    }

}

/* Additional mobile positioning for hero visual */
@media (max-width: 768px) {
    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-visual {
        margin-bottom: 250px;
        margin-top: -40px;
    }
}

@media (max-width: 576px) {
    .hero-grid {
        gap: 12px;
    }
    
    .hero-visual {
        margin-bottom: 280px;
        margin-top: -30px;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        gap: 10px;
    }
    
    .hero-visual {
        margin-bottom: 250px;
        margin-top: -25px;
    }
}

/* Specific icon colors on hover */
.social-icon[aria-label="YouTube"]:hover {
    background: #ff0000;
    color: white;
}

.social-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
    color: white;
}

.social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-icon[aria-label="TikTok"]:hover {
    background: #000000;
    color: #69c9d0;
}



