.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 25%, #21262d 50%, #1a1f2e 75%, #0d1117 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(106, 153, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(168, 138, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    z-index: 1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(106, 153, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(168, 138, 255, 0.3), 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(106, 153, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    z-index: 1;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(200px); }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    display: none;
    filter: brightness(0.6) contrast(1.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: heroContentFadeIn 1.5s ease-out;
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #6e9fff 20%,
        #a78aff 40%,
        #ffffff 60%,
        #6e9fff 80%,
        #a78aff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(106, 153, 255, 0.3);
    animation: titleShimmer 4s ease-in-out infinite, titleFloat 6s ease-in-out infinite;
    position: relative;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: titleGleam 3s ease-in-out infinite;
    z-index: -1;
    border-radius: 10px;
}

@keyframes titleGleam {
    0% { 
        transform: translateX(-150%) skewX(-15deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% { 
        transform: translateX(150%) skewX(-15deg);
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    animation: subtitleFadeIn 1.5s ease-out 0.3s both;
    font-weight: 300;
    letter-spacing: 0.5px;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: buttonsFadeIn 1.5s ease-out 0.6s both;
}

@keyframes buttonsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons .btn-main {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5b6bcf, #7c5de8, #5b87c7);
    background-size: 200% 200%;
    animation: buttonGradient 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(91, 107, 207, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-buttons .btn-main:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(91, 107, 207, 0.4);
}

.hero-buttons .btn-line {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-buttons .btn-line:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

@keyframes buttonGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
    100% { background-position: 0% 50%; }
}

.features-section {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-top: 2rem;
    position: relative;
}

.features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(106, 153, 255, 0.5), rgba(168, 138, 255, 0.5), transparent);
}

.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: featureBoxFadeIn 1s ease-out 1s both;
}

@keyframes featureBoxFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 153, 255, 0.1);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-box:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(106, 153, 255, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(106, 153, 255, 0.3),
        inset 0 0 20px rgba(106, 153, 255, 0.1);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:nth-child(1) { animation-delay: 1s; }
.feature-box:nth-child(2) { animation-delay: 1.2s; }
.feature-box:nth-child(3) { animation-delay: 1.4s; }

.feature-box h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.feature-box p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
}

.explore-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite, arrowPulse 2s ease-in-out infinite;
    z-index: 2;
}

.explore-arrow a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: block;
    padding: 10px;
}

.explore-arrow:hover a {
    color: #6e9fff;
    transform: scale(1.2);
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Services Section Styles */
.services-section {
    padding: 80px 0;
    background-color: #0d1117;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #4a9fff, #a78aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.services-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
}

.service-card {
    background-color: rgba(23, 25, 35, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(106, 153, 255, 0.3);
}

/* Enhanced Popular Service Card Styling */
.service-card.popular {
    background: linear-gradient(145deg, rgba(74, 159, 255, 0.08), rgba(167, 138, 255, 0.05));
    border: 2px solid rgba(74, 159, 255, 0.4);
    box-shadow: 
        0 0 30px rgba(74, 159, 255, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.4);
    animation: popularGlow 3s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.service-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 159, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
}

.service-card.popular::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a9fff, #a78aff, #4a9fff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes popularGlow {
    0% {
        box-shadow: 
            0 0 30px rgba(74, 159, 255, 0.3),
            0 15px 35px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 50px rgba(74, 159, 255, 0.5),
            0 20px 40px rgba(0, 0, 0, 0.5);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.service-card.popular:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 0 60px rgba(74, 159, 255, 0.6),
        0 25px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(74, 159, 255, 0.8);
}

/* Popular Tag Styling */
.popular-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4a9fff, #a78aff);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(74, 159, 255, 0.4);
    z-index: 10;
    animation: tagPulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes tagPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Enhanced content styling for popular card */
.service-card.popular .service-content {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.service-card.popular h3 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(74, 159, 255, 0.3);
}

.service-card.popular .service-intro-price {
    color: #4a9fff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(74, 159, 255, 0.5);
}

.service-card.popular .service-regular-price {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-card.popular .service-features li i {
    color: #4a9fff;
    text-shadow: 0 0 5px rgba(74, 159, 255, 0.5);
}

.service-card.popular .service-learn-more {
    background: linear-gradient(45deg, #4a9fff, #a78aff);
    box-shadow: 0 5px 20px rgba(74, 159, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-card.popular .service-learn-more:hover {
    background: linear-gradient(45deg, #a78aff, #4a9fff);
    box-shadow: 0 8px 25px rgba(74, 159, 255, 0.6);
    transform: translateY(-3px);
}

/* Regular service card styling remains the same */
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: #aaa;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-price {
    margin: 20px 0;
}

.service-intro-price {
    font-size: 0.9rem;
    color: #00ccff;
    font-weight: 500;
    margin-bottom: 5px;
}

.service-regular-price {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.service-period {
    font-size: 0.9rem;
    color: #aaa;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    padding: 8px 0;
    color: #ddd;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: #8667db;
    margin-right: 10px;
}

.service-learn-more {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #5c84d8, #8667db);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.service-learn-more:hover {
    background: linear-gradient(45deg, #8667db, #5c84d8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 103, 219, 0.3);
}

/* Mobile responsiveness for popular card */
@media (max-width: 768px) {
    .service-card.popular {
        margin-bottom: 30px;
    }
    
    .popular-tag {
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .service-card.popular:hover {
        transform: translateY(-10px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .service-card.popular::before {
        animation: none; /* Disable shimmer on very small screens for performance */
    }
    
    .popular-tag {
        font-size: 10px;
        padding: 5px 12px;
    }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-buttons .btn-main,
    .hero-buttons .btn-line {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .feature-box {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .features-section {
        padding: 2rem 0;
    }
    
    .hero-section::after {
        background-size: 100px 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* Comparison Table Styles */
.comparison-section {
    padding: 80px 0;
    background-color: #0a0e14;
}

.comparison-header {
    text-align: center;
    margin-bottom: 50px;
}

.comparison-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #4a9fff, #a78aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.comparison-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
}

/* Improved table styling */
.comparison-scroll {
    margin: 0 auto;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0;
}

.comparison-table {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(23, 25, 35, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comparison-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.comparison-table th {
    background-color: rgba(13, 17, 23, 0.7);
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.comparison-table th:first-child {
    text-align: left;
    padding-left: 30px;
}

.comparison-table td:first-child {
    text-align: left;
    padding-left: 30px;
    color: #ccc;
    font-weight: 500;
    width: 180px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight {
    background-color: rgba(134, 103, 219, 0.1);
}

.comparison-table .check {
    color: #8667db;
    font-size: 18px;
}

.comparison-table .cross {
    color: #ff5252;
    font-size: 18px;
}

.comparison-table .cta-button {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(45deg, #5c84d8, #8667db);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.comparison-table .cta-button:hover {
    background: linear-gradient(45deg, #8667db, #5c84d8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 103, 219, 0.3);
}

.comparison-table .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.comparison-table .recommended {
    background: linear-gradient(45deg, #5c84d8, #8667db);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        width: 140px;
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .comparison-scroll {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 800px;
        margin: 0 auto;
    }
}

/* SEO Enhancements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2a2a2a;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

body.keyboard-navigation :focus {
    outline: 3px solid #4e9af1 !important;
    outline-offset: 2px !important;
}

/* Image lazy loading animations */
img.loaded {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add image placeholders to reduce layout shift */
img:not([src]):not([srcset]) {
    visibility: hidden;
}

/* Improve accessibility for text contrast */
.hero-title, .hero-subtitle, h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hero-section .feature-box h4,
.hero-section .feature-box p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Improve page speed by optimizing animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Ensure proper text contrast ratios throughout the site */
.subtitle, p, li, a:not(.btn-main) {
    color: rgba(255, 255, 255, 0.9);
}

/* Font display swap to improve perceived load time */
@font-face {
    font-family: 'CustomFont';
    font-display: swap;
}

/* Ensure proper button sizes for mobile touch targets */
@media (max-width: 768px) {
    .btn-main, 
    .service-learn-more,
    .cta-button,
    .accordion-section-title {
        min-height: 44px;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-card {
        margin-bottom: 25px;
    }
}

/* Enhance feature box visibility */
.feature-box {
    transition: transform 0.3s ease;
    will-change: transform;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* Custom scrollbar for better UX */
.comparison-scroll::-webkit-scrollbar {
    height: 8px;
}

.comparison-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.comparison-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Print styles for SEO and accessibility */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .hero-section, 
    .services-section, 
    .comparison-section {
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
} 