/* Hero Video */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* ზემოდან დაუმატე */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* ვიდეო უკან */
}

/* Video Overlay for better text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.7);
    z-index: -1; /* overlay ვიდეოსა და ტექსტს შორის */
}

/* Hero Content - ტექსტი ვიდეოს ზემოთ */
.hero-content {
    position: relative;
    z-index: 10; /* ტექსტი წინ */
    text-align: center;
    width: 100%;
    padding: 0 20px;
    margin-top: -30px; /* ტექსტი ოდნავ ზემოთ */
}

/* ძირითადი ტექსტის სტილები */
.hero-content h1 {
    font-size: 3.5rem;
    margin: 0 0 15px 0;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero-ს სტილებში დაამატე: */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin: 0 0 20px 0; /* ზემოდან მოაშორე margin */
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

/* CTA ღილაკი */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00d9ff, #9d4edd);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.4);
}

/* Floating elements between video and text */
.floating-viz {
    position: absolute;
    z-index: 0; /* ვიდეოსა და ტექსტს შორის */
}

/* მობილურისთვის */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        align-items: flex-start; /* მობილურზე ტექსტი ზემოდან */
    }
    
    .hero-content {
        margin-top: 0;
        padding-top: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding: 0 20px;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* პატარა მობილურებისთვის */
@media (max-width: 576px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-content {
        padding-top: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* ძალიან პატარა ეკრანებისთვის */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-tagline {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Modern Services Section */
.services-section {
    background: var(--dark-bg);
    padding: 100px 0;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card-modern::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.7s;
}

.service-card-modern:hover::before {
    left: 100%;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--service-color, #00d9ff);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(var(--service-color-rgb), 0.3),
        0 0 40px rgba(var(--service-color-rgb), 0.2);
}

.service-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Font Awesome აიქონების სტილიზაცია */
.service-icon-modern i,
.result-icon-modern i {
    font-size: 60px; /* ზომა იგივე, რაც SVG-ს ჰქონდა */
    color: var(--service-color, #00d9ff);
    filter: drop-shadow(0 0 10px rgba(var(--service-color-rgb), 0.5));
    transition: all 0.3s ease;
}

/* Results-ში სტილიზაცია */
.result-icon-modern i {
    color: var(--result-color, #00d9ff);
    filter: drop-shadow(0 0 10px rgba(var(--result-color-rgb), 0.5));
}

.service-card-modern:hover .service-icon-modern i,
.result-card-modern:hover .result-icon-modern i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(var(--service-color-rgb), 0.8));
}

.result-card-modern:hover .result-icon-modern i {
    filter: drop-shadow(0 0 20px rgba(var(--result-color-rgb), 0.8));
}

.service-card-modern h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.service-card-modern p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}

.service-link {
    color: var(--service-color, #00d9ff);
    text-decoration: none;
    font-weight: 600;
    display: block;
    text-align: center;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(var(--service-color-rgb), 0.5);
}

/* Lifecycle Section */
.lifecycle-section {
    background: linear-gradient(135deg, var(--darker-blue) 0%, var(--dark-blue) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.lifecycle-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        #00d9ff,
        #9d4edd,
        #00f5d4,
        #ff6b6b,
        transparent
    );
}

.lifecycle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lifecycle-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.lifecycle-visual {
    width: 400px;
    height: 400px;
    position: relative;
    flex-shrink: 0;
}

.lifecycle-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    animation: rotateLifecycle 30s linear infinite;
}

@keyframes rotateLifecycle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lifecycle-step {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lifecycle-step:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px currentColor;
}

.lifecycle-step:nth-child(1) { top: 50%; left: 0; transform: translateY(-50%); color: #00d9ff; border-color: #00d9ff; }
.lifecycle-step:nth-child(2) { top: 15%; left: 15%; color: #9d4edd; border-color: #9d4edd; }
.lifecycle-step:nth-child(3) { top: 15%; right: 15%; color: #00f5d4; border-color: #00f5d4; }
.lifecycle-step:nth-child(4) { top: 50%; right: 0; transform: translateY(-50%); color: #ff6b6b; border-color: #ff6b6b; }
.lifecycle-step:nth-child(5) { bottom: 15%; right: 15%; color: #ffd166; border-color: #ffd166; }
.lifecycle-step:nth-child(6) { bottom: 15%; left: 15%; color: #06d6a0; border-color: #06d6a0; }

.lifecycle-step i {
    font-size: 1.5rem;
}

.lifecycle-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.lifecycle-content h3 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 20px;
}

/* Results Section */
.results-section {
    background: rgba(5, 5, 16, 0.7);
    padding: 80px 0;
}

.results-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* დესკტოპზე 4 ბარათი */
    gap: 30px;
    margin-top: 60px;
}

.result-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%; /* ერთნაირი სიმაღლე */
    display: flex;
    flex-direction: column;
}

.result-card-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-card-modern::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.7s;
}

.result-card-modern:hover::before {
    left: 100%;
}

.result-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--result-color, #00d9ff);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(var(--result-color-rgb), 0.3),
        0 0 40px rgba(var(--result-color-rgb), 0.2);
}

.result-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card-modern h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.result-card-modern p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}

.result-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.result-features li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    text-align: left;
}

.result-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--result-color, #00d9ff);
    font-weight: bold;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0,217,255,0.1) 0%, rgba(157,78,221,0.1) 100%);
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip for lifecycle steps */
.lifecycle-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 200px;
    text-align: center;
    pointer-events: none;
}

/* Responsive */

/* ტაბლეტისთვის: 1200px-დან 769px-მდე */
@media (max-width: 1200px) and (min-width: 769px) {
    .lifecycle-container {
        flex-direction: column;
        text-align: center;
    }
    .lifecycle-visual {
        width: 300px;
        height: 300px;
    }
    
    /* ტაბლეტზე 2 ბარათი */
    .services-grid-modern,
    .results-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
}

/* მობილურისთვის: 768px-მდე */
@media (max-width: 768px) {
    .services-grid-modern,
    .results-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .lifecycle-step {
        width: 60px;
        height: 60px;
    }
    
    .lifecycle-step i {
        font-size: 1.2rem;
    }
    
    /* Font Awesome აიქონების ზომა მობილურზე */
    .service-icon-modern i,
    .result-icon-modern i {
        font-size: 50px;
    }
    
    /* შედეგების ბარათების გასწორება მობილურზე */
    .result-card-modern {
        padding: 30px 25px !important;
        margin-bottom: 15px;
    }
    
    .result-card-modern h3 {
        min-height: auto !important;
        font-size: 1.3rem !important;
        margin-bottom: 15px;
    }
    
    .result-features li {
        margin-bottom: 12px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* პატარა მობილურებისთვის: 576px-მდე */
@media (max-width: 576px) {
    .lifecycle-visual {
        width: 250px;
        height: 250px;
    }
    
    .lifecycle-step {
        width: 50px;
        height: 50px;
    }
    
    .lifecycle-step i {
        font-size: 1rem;
    }
    
    .service-card-modern,
    .result-card-modern {
        padding: 25px 20px !important;
    }
    
    /* Font Awesome აიქონების ზომა პატარა ეკრანებზე */
    .service-icon-modern i,
    .result-icon-modern i {
        font-size: 45px;
    }
    
    .result-card-modern h3 {
        font-size: 1.2rem !important;
    }
    
    .result-icon-modern {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
    }
    
    .result-icon-modern i {
        font-size: 50px !important;
    }
    
    .result-features li {
        font-size: 0.9rem;
        padding-left: 22px;
        margin-bottom: 10px;
    }
}
/* Responsive */

/* დესკტოპისთვის: 1201px-დან ზემოთ - არაფრის გამოცვლა არ სჭირდება */

/* ტაბლეტისთვის: 1200px-დან 769px-მდე */
@media (max-width: 1200px) and (min-width: 769px) {
    .lifecycle-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .lifecycle-visual {
        width: 300px;
        height: 300px;
    }
    
    .lifecycle-step {
        width: 60px;
        height: 60px;
    }
    
    .lifecycle-step i {
        font-size: 1.2rem;
    }
    
    /* ტაბლეტზე 2 ბარათი */
    .services-grid-modern,
    .results-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
}

/* მობილურისთვის: 768px-მდე */
@media (max-width: 768px) {
    /* Lifecycle-ის სტილები */
    .lifecycle-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .lifecycle-visual {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .lifecycle-step {
        width: 50px;
        height: 50px;
    }
    
    .lifecycle-step i {
        font-size: 1rem;
    }
    
    .lifecycle-connector {
        width: 220px;
        height: 220px;
    }
    
    .lifecycle-content h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .lifecycle-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Grid-ების სტილები */
    .services-grid-modern,
    .results-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    /* Font Awesome აიქონების ზომა მობილურზე */
    .service-icon-modern i,
    .result-icon-modern i {
        font-size: 50px;
    }
    
    /* შედეგების ბარათების გასწორება მობილურზე */
    .result-card-modern {
        padding: 30px 25px !important;
        margin-bottom: 15px;
    }
    
    .result-card-modern h3 {
        min-height: auto !important;
        font-size: 1.3rem !important;
        margin-bottom: 15px;
        display: block; /* flex-ის მაგივრად */
        text-align: center;
    }
    
    .result-features li {
        margin-bottom: 12px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* პატარა მობილურებისთვის: 576px-მდე */
@media (max-width: 576px) {
    .lifecycle-section {
        padding: 60px 0;
    }
    
    .lifecycle-visual {
        width: 240px;
        height: 240px;
    }
    
    .lifecycle-step {
        width: 45px;
        height: 45px;
    }
    
    .lifecycle-step i {
        font-size: 0.9rem;
    }
    
    .lifecycle-connector {
        width: 190px;
        height: 190px;
    }
    
    .lifecycle-content h3 {
        font-size: 1.6rem;
    }
    
    .lifecycle-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-card-modern,
    .result-card-modern {
        padding: 25px 20px !important;
    }
    
    /* Font Awesome აიქონების ზომა პატარა ეკრანებზე */
    .service-icon-modern i,
    .result-icon-modern i {
        font-size: 45px;
    }
    
    .result-card-modern h3 {
        font-size: 1.2rem !important;
    }
    
    .result-icon-modern {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
    }
    
    .result-icon-modern i {
        font-size: 50px !important;
    }
    
    .result-features li {
        font-size: 0.9rem;
        padding-left: 22px;
        margin-bottom: 10px;
    }
}

/* ძალიან პატარა ეკრანებისთვის: 400px-მდე */
@media (max-width: 400px) {
    .lifecycle-visual {
        width: 220px;
        height: 220px;
    }
    
    .lifecycle-step {
        width: 40px;
        height: 40px;
    }
    
    .lifecycle-step i {
        font-size: 0.8rem;
    }
    
    .lifecycle-connector {
        width: 170px;
        height: 170px;
    }
    
    .lifecycle-content h3 {
        font-size: 1.4rem;
    }
    
    .service-card-modern,
    .result-card-modern {
        padding: 20px 15px !important;
    }
    
    .service-card-modern h3,
    .result-card-modern h3 {
        font-size: 1.1rem !important;
    }
    
    .service-card-modern p,
    .result-card-modern p {
        font-size: 0.9rem;
    }
}