/* Home Hero Section */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    animation: morphingGradient 8s ease-in-out infinite;
}

@keyframes morphingGradient {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: scale(1.1) rotate(1deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05) rotate(-1deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.15) rotate(0.5deg);
        opacity: 0.7;
    }
}

.home-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(14, 165, 233, 0.3), transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(16, 185, 129, 0.3), transparent),
                      radial-gradient(1px 1px at 90px 40px, rgba(6, 182, 212, 0.3), transparent),
                      radial-gradient(1px 1px at 130px 80px, rgba(14, 165, 233, 0.3), transparent),
                      radial-gradient(2px 2px at 160px 30px, rgba(16, 185, 129, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-15px) translateX(3px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.home-hero-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff, #0ea5e9, #10b981, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: gradientShift 4s ease-in-out infinite, textGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.home-hero-text p {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.stat {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: numberGlow 3s ease-in-out infinite;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.stat:hover .stat-label {
    color: #e2e8f0;
}

/* Services Section */
.services {
    padding: 60px 0 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.05) 50%, transparent 100%);
    position: relative;
    overflow: visible;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #0ea5e9;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
    text-decoration: none;
    color: inherit;
}

.service-card:visited {
    color: inherit;
    text-decoration: none;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.service-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Calculator Card Animation */
.calculator-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14,165,233,0.2);
}

.calculator-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: width 0.8s ease-in-out 0.2s;
}

.calculator-card.animate-in::after {
    width: 100%;
}

.calculator-card.animate-in {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.6s ease-in-out 0.2s;
    opacity: 1;
}

.card-wrapper {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.6s ease-in-out;
}

.card-wrapper.animate-out {
    pointer-events: none;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 800;
}

.step h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.step p {
    color: #94a3b8;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.1));
    text-align: center;
}

.cta-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards/Tips Section */
.cards-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%);
    position: relative;
}

.cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.tip-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tip-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #0ea5e9;
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.25),
                0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.tip-card:hover .card-image img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.2);
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tip-card:hover .card-image::after {
    opacity: 1;
}

.card-content {
    padding: 32px;
    background: rgba(30, 41, 59, 0.9);
    position: relative;
}

.card-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.tip-card:hover .card-content h4 {
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.card-content p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.tip-card:hover .card-content p {
    color: #cbd5e1;
}

.card-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    color: #10b981;
    transform: translateX(8px);
}

.card-link::before {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.card-link:hover::before {
    transform: translateX(4px) scale(1.1);
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: width 0.4s ease;
}

.card-link:hover::after {
    width: calc(100% - 32px);
}

/* Particles Animation */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(14, 165, 233, 0.9);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    animation: particle-burst 0.8s ease-out forwards;
}

@keyframes particle-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    80% {
        opacity: 0.6;
        transform: translate(var(--dx), var(--dy)) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0.3);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }

    .home-hero-text h2 {
        margin-top: 20px;
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

/* SERVICE PAGE STYLES */

/* Service Hero Section */
.service-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.1));
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: morphingGradient 8s ease-in-out infinite;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 2;
    position: relative;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-green);
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #0ea5e9, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: gradientShift 4s ease-in-out infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Service Content */
.service-content {
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Section Base Styles */
.content-section {
    margin-bottom: 80px;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -50px;
    right: -50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
}

.content-section:first-child::before {
    display: none;
}

/* Section Headers */
.section-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Lists */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-card);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item h3::before {
    content: '✓';
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Advantages List */
.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.advantage-item {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition-base);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.advantage-item:hover {
    border-color: var(--primary-green);
    background: rgba(30, 41, 59, 0.5);
    transform: translateX(5px);
}

.advantage-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.advantage-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.step-item {
    text-align: center;
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: var(--transition-base);
}

.step-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-card);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.step-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.step-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-blue);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.6);
    transition: var(--transition-base);
}

.faq-question:hover {
    background: rgba(30, 41, 59, 0.8);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Conditions Table */
.conditions-table {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

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

.condition-item {
    text-align: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    transition: var(--transition-base);
}

.condition-item:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.7);
}

.condition-value {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

.condition-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Service Mobile Responsiveness */
@media (max-width: 768px) {
    .service-hero {
        padding-top: 100px;
        min-height: 60vh;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .service-hero h1 {
        font-size: 2.2rem;
    }

    .service-content {
        padding: 60px 0;
    }

    .content-section {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantages-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}