/* Enhanced Hero Section - High Priority Styles */
#home.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#home.hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#home.hero .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

#home.hero .orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00d4ff, transparent);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

#home.hero .orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6366f1, transparent);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

#home.hero .orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #10b981, transparent);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

#home.hero .hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Content - Left Side */
#home.hero .hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#home.hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 2rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #00d4ff;
    width: fit-content;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
}

#home.hero .badge-icon {
    font-size: 1.2rem;
    animation: rotate 3s linear infinite;
}

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

#home.hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

#home.hero .hero-title .title-line {
    display: block;
    margin-bottom: 0.2rem;
}

#home.hero .hero-title .title-line:first-child {
    color: #ffffff;
}

#home.hero .hero-title .title-line:nth-child(2) {
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#home.hero .hero-title .title-line:nth-child(3) {
    background: linear-gradient(135deg, #6366f1, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#home.hero .hero-subtitle {
    font-size: 1.3rem;
    color: #b3b3b3;
    line-height: 1.6;
    margin: 0;
}

#home.hero .hero-subtitle .highlight {
    color: #00d4ff;
    font-weight: 600;
}

/* Hero Stats */
#home.hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

#home.hero .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#home.hero .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

#home.hero .stat-item:hover::before {
    left: 100%;
}

#home.hero .stat-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

#home.hero .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

#home.hero .stat-label {
    font-size: 0.8rem;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Hero CTAs */
#home.hero .hero-ctas {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

#home.hero .btn-primary {
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

#home.hero .btn-primary::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.5s ease;
}

#home.hero .btn-primary:hover::before {
    left: 100%;
}

#home.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

#home.hero .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

#home.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Hero Testimonial */
/* Hero Testimonial Slider */
#home.hero .hero-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

#home.hero .hero-testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
    transition: left 0.8s ease;
}

#home.hero .hero-testimonial:hover::before {
    left: 100%;
}

#home.hero .testimonial-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

#home.hero .testimonial-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

#home.hero .testimonial-content.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

#home.hero .testimonial-content p {
    font-style: italic;
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: opacity 0.6s ease;
}

#home.hero .testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.6s ease;
}

#home.hero .author-info {
    display: flex;
    flex-direction: column;
}

#home.hero .author-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

#home.hero .author-title {
    font-size: 0.8rem;
    color: #10b981;
}

#home.hero .author-rating .stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Testimonial Indicators */
#home.hero .testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

#home.hero .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

#home.hero .indicator:hover {
    background: rgba(0, 212, 255, 0.6);
    transform: scale(1.2);
}

#home.hero .indicator.active {
    background: #00d4ff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* Hero Visual - Right Side */
#home.hero .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

#home.hero .services-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* Central decorative element */
#home.hero .hero-center-element {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(99, 102, 241, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    position: relative;
    animation: pulse 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

#home.hero .hero-center-element::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

#home.hero .hero-center-element::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    animation: rotate 15s linear infinite reverse;
}

#home.hero .center-icon {
    font-size: 3rem;
    color: #ffffff;
    z-index: 1;
}

/* Services Grid - Clean Alternative */
#home.hero .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

#home.hero .service-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#home.hero .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

#home.hero .service-card:hover::before {
    left: 100%;
}

#home.hero .service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Service-specific colors */
#home.hero .service-card[data-service="ai"] {
    border-color: rgba(99, 102, 241, 0.3);
}

#home.hero .service-card[data-service="ai"]:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

#home.hero .service-card[data-service="web"] {
    border-color: rgba(0, 212, 255, 0.3);
}

#home.hero .service-card[data-service="web"]:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

#home.hero .service-card[data-service="cyber"] {
    border-color: rgba(245, 101, 101, 0.3);
}

#home.hero .service-card[data-service="cyber"]:hover {
    border-color: rgba(245, 101, 101, 0.5);
    box-shadow: 0 10px 30px rgba(245, 101, 101, 0.2);
}

#home.hero .service-card[data-service="server"] {
    border-color: rgba(16, 185, 129, 0.3);
}

#home.hero .service-card[data-service="server"]:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

#home.hero .card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#home.hero .service-card:hover .card-icon {
    transform: scale(1.05) translateY(-2px);
}

/* Service-specific icon colors */
#home.hero .service-card[data-service="ai"] .card-icon {
    color: #6366f1;
}

#home.hero .service-card[data-service="web"] .card-icon {
    color: #00d4ff;
}

#home.hero .service-card[data-service="cyber"] .card-icon {
    color: #f56565;
}

#home.hero .service-card[data-service="server"] .card-icon {
    color: #10b981;
}

#home.hero .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

#home.hero .card-description {
    font-size: 0.75rem;
    color: #b3b3b3;
    line-height: 1.3;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Enhanced floating card interactions */
#home.hero .floating-card.card-hover-active {
    animation: cardPulse 0.6s ease-in-out;
}

@keyframes cardPulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

#home.hero .floating-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #6366f1, #10b981, #00d4ff);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

#home.hero .floating-card:hover::after {
    opacity: 0.3;
}

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

/* Hero Tech Stack - Positioned far below cards */
#home.hero .hero-tech-stack {
    width: 200px;
    height: 200px;
    margin: 8rem auto 0;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

#home.hero .tech-orbit {
    position: relative;
    width: 100%;
    height: 100%;
    animation: rotate 25s linear infinite;
}

#home.hero .tech-item {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    font-size: 0.7rem;
    font-weight: 600;
    color: #b3b3b3;
    pointer-events: auto;
    /* Counter-rotate text to keep it upright */
    animation: counterRotate 25s linear infinite;
}

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

#home.hero .tech-item:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    transform: scale(1.05);
    z-index: 10;
}

/* Positioning for 6 items in orbit */
#home.hero .tech-item:nth-child(1) {
    top: 10px;
    left: 50%;
    margin-left: -22.5px;
}

#home.hero .tech-item:nth-child(2) {
    top: 35px;
    right: 15px;
}

#home.hero .tech-item:nth-child(3) {
    bottom: 35px;
    right: 15px;
}

#home.hero .tech-item:nth-child(4) {
    bottom: 10px;
    left: 50%;
    margin-left: -22.5px;
}

#home.hero .tech-item:nth-child(5) {
    bottom: 35px;
    left: 15px;
}

#home.hero .tech-item:nth-child(6) {
    top: 35px;
    left: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #home.hero .hero-container {
        gap: 3rem;
    }
    
    #home.hero .hero-title {
        font-size: 3rem;
    }
    
    #home.hero .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #home.hero .hero-visual {
        height: 500px;
    }
}

@media (max-width: 768px) {
    #home.hero {
        padding: 100px 0 60px;
    }
    
    #home.hero .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    #home.hero .hero-title {
        font-size: 2.5rem;
    }
    
    #home.hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    #home.hero .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #home.hero .hero-ctas {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #home.hero .hero-visual {
        height: 350px;
        order: -1;
    }
    
    #home.hero .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 300px;
    }
    
    #home.hero .service-card {
        padding: 1.2rem 1rem;
    }
    
    #home.hero .card-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    #home.hero .card-title {
        font-size: 0.8rem;
    }
    
    #home.hero .card-description {
        font-size: 0.7rem;
    }
    
    #home.hero .hero-center-element {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    #home.hero .center-icon {
        font-size: 2rem;
    }
    
    #home.hero .hero-tech-stack {
        width: 150px;
        height: 150px;
        margin: 6rem auto 0;
    }
    
    #home.hero .tech-item {
        width: 35px;
        height: 35px;
        font-size: 0.6rem;
    }
    
    #home.hero .tech-item:nth-child(1) {
        top: 10px;
        margin-left: -17.5px;
    }
    
    #home.hero .tech-item:nth-child(2) {
        top: 30px;
        right: 15px;
    }
    
    #home.hero .tech-item:nth-child(3) {
        bottom: 30px;
        right: 15px;
    }
    
    #home.hero .tech-item:nth-child(4) {
        bottom: 10px;
        margin-left: -17.5px;
    }
    
    #home.hero .tech-item:nth-child(5) {
        bottom: 30px;
        left: 15px;
    }
    
    #home.hero .tech-item:nth-child(6) {
        top: 30px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    #home.hero .hero-container {
        padding: 0 1rem;
    }
    
    #home.hero .hero-title {
        font-size: 2rem;
    }
    
    #home.hero .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    #home.hero .stat-item {
        padding: 1rem;
    }
    
    #home.hero .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }
    
    #home.hero .btn-primary,
    #home.hero .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    #home.hero .floating-card {
        min-width: 120px;
        padding: 1rem;
    }
    
    #home.hero .card-title {
        font-size: 0.8rem;
    }
    
    #home.hero .card-description {
        font-size: 0.7rem;
    }
}

/* High specificity overrides */
body #home.hero .hero-title .title-line:first-child {
    color: #ffffff !important;
}

body #home.hero .hero-title .title-line:nth-child(2) {
    background: linear-gradient(135deg, #00d4ff, #6366f1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body #home.hero .hero-title .title-line:nth-child(3) {
    background: linear-gradient(135deg, #6366f1, #10b981) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body #home.hero .stat-number {
    color: #00d4ff !important;
}

body #home.hero .card-title {
    color: #ffffff !important;
}
