/* Import Georgian Font - BPG Nino Mtavruli Bold for ALL text as requested */
@import url("//cdn.web-fonts.ge/fonts/bpg-nino-mtavruli-bold/css/bpg-nino-mtavruli-bold.min.css");

:root {
    --black: #020104;
    --dark-bg: #0D0B14;
    --dark-card: #110E1B;
    --accent-purple: #9333ea; /* A strong, vibrant purple */
    --light-purple: #a855f7;
    --glow-purple: rgba(147, 51, 234, 0.7);
    --slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #ffffff;
    --font-primary: 'GilroyGEO-Heavy', cursive; /* Primary font for ALL text */
    --font-brand: 'Orbitron', sans-serif; /* ONLY for brand name (Cyberon.ge) */
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes animated-gradient-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0px var(--glow-purple); }
    50% { box-shadow: 0 0 10px var(--glow-purple); }
    100% { box-shadow: 0 0 0px var(--glow-purple); }
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- GENERAL & BASE STYLES --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary); /* ALL text uses Georgian font */
    background-color: var(--black);
    color: var(--slate);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px), /* Very subtle grid */
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 30px 30px; /* Back to slightly smaller grid */
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Ensure ALL text elements inherit the primary font */
h1, h2, h3, h4, h5, h6, p, a, li, span, div, button, small, strong, em {
    font-family: var(--font-primary);
}

::selection {
    background-color: var(--accent-purple);
    color: var(--white);
}

.text-gradient-purple {
    background: linear-gradient(90deg, var(--light-purple), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVIGATION BAR --- */
.navbar {
    background-color: rgba(2, 1, 4, 0.9); /* Slightly less opaque */
    backdrop-filter: blur(8px); /* Original blur */
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    transition: top 0.4s ease-in-out;
    padding: 0.8rem 0; /* Original padding */
}

.navbar-brand {
    font-family: var(--font-brand); /* Orbitron for brand only */
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem; /* Original size */
    text-shadow: 0 0 8px var(--glow-purple);
    transition: text-shadow 0.3s ease;
}
.navbar-brand:hover {
    color: var(--white);
    text-shadow: 0 0 15px var(--glow-purple);
}

.nav-link {
    color: var(--slate);
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0.5rem 1rem; /* Original padding */
    font-size: 1rem; /* Original size */
    position: relative;
}

.nav-link:hover {
    color: var(--white);
    text-shadow: 0 0 4px var(--glow-purple);
}

.nav-link.active {
    color: var(--white) !important;
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-purple);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: 2px solid var(--accent-purple);
    box-shadow: none; /* Remove extra glow for subtle feel */
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(147, 51, 234, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: radial-gradient(ellipse at 50% -20%, var(--dark-bg), var(--black) 70%);
    overflow: hidden;
    position: relative;
}
/* Subtle background glow/pulse behind hero */
#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 60%);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    animation: pulseGlow 10s infinite ease-in-out;
    z-index: 0;
}
.hero-content { 
    animation: fadeInSlideUp 1s ease-out forwards;
    position: relative; /* Ensure content is above the pseudo-element */
    z-index: 1;
}
.hero-content .subtitle {
    color: var(--accent-purple);
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 700;
}
.hero-content h1 {
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 6rem);
    margin: 1.5rem 0;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.3); /* Subtle white glow for heading */
}
.hero-content p {
    max-width: 650px;
    font-size: 1.15rem;
    margin: 0 auto;
    color: var(--lightest-slate);
}

/* --- BUTTON (GLOBAL BRAND STYLE) --- */
.btn-brand {
    font-weight: 700;
    background: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 8px;
    transition: all 0.4s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Softer initial shadow */
}
.btn-brand::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-purple), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}
.btn-brand:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--glow-purple);
    border-color: var(--light-purple); /* Border color change on hover */
}
.btn-brand:hover::before {
    left: 100%;
}
.btn-brand .bi {
    margin-right: 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* --- SECTION STYLING --- */
section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
#advantages, #testimonials, #portfolio { background-color: var(--dark-bg); }

.section-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 70px;
    font-size: clamp(2.2rem, 5vw, 3rem);
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}
.section-title span {
    color: var(--accent-purple);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-purple);
    animation: fadeInSlideUp 1s forwards; /* Reverted to simpler animation */
    animation-timeline: view();
    animation-range-start: entry 20%;
    animation-range-end: entry 80%;
}

/* --- LINEAR CARD STYLE --- */
.linear-card {
    background-color: var(--dark-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Lighter initial shadow */
}
.linear-card::before, .linear-card::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    border-color: var(--accent-purple); /* Keep original accent for corners */
}
.linear-card::before {
    top: 20px; left: 20px;
    border-top: 2px solid;
    border-left: 2px solid;
}
.linear-card::after {
    bottom: 20px; right: 20px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}
.linear-card:hover {
    transform: translateY(-10px);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background-color: var(--dark-card); /* Keep same background on hover for subtle change */
}
.linear-card:hover::before, .linear-card:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* --- ADVANTAGES SECTION --- */
.advantage-box { text-align: center; }
.advantage-icon {
    font-size: 4rem;
    color: var(--accent-purple);
    margin-bottom: 25px;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
    display: inline-block;
}
.linear-card:hover .advantage-icon {
    transform: scale(1.1) rotate(0deg); /* Removed the subtle rotate */
    text-shadow: 0 0 15px var(--glow-purple);
    animation: bounceIcon 0.8s ease-out; /* New: subtle bounce on hover */
}
.linear-card h4 {
    color: var(--lightest-slate);
    font-size: 1.4rem;
    font-weight: 700;
}

/* --- SERVICES SECTION --- */
.service-box { text-align: center; }
.service-icon-wrapper {
    width: 100px; height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    border: 2px solid rgba(147, 51, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    background-color: transparent; /* Keep transparent */
    position: relative; /* For the new radial gradient effect */
    overflow: hidden;
}

/* New radial gradient pulse on hover */
.service-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--light-purple) 0%, transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
    z-index: 0;
}
.linear-card:hover .service-icon-wrapper::before {
    width: 150px; /* Expands to create a pulse */
    height: 150px;
    opacity: 0.3;
}

.service-icon-wrapper .bi {
    font-size: 3.5rem;
    color: var(--accent-purple);
    transition: all 0.4s ease;
    position: relative; /* Ensure icon is above pseudo-element */
    z-index: 1;
}
.linear-card:hover .service-icon-wrapper {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px var(--glow-purple);
}
.linear-card:hover .service-icon-wrapper .bi {
    transform: scale(1.1);
    color: var(--white); /* White icon on purple pulse */
}

/* --- TESTIMONIALS SECTION --- */
#testimonials { background-color: var(--dark-bg); }
.testimonial-card { 
    text-align: center; 
    padding-top: 40px; /* Adjusted padding */
}
.testimonial-card .bi-quote {
    font-size: 5rem;
    color: var(--accent-purple);
    opacity: 0.1;
    position: absolute;
    top: 20px; left: 20px;
    z-index: 0;
}
.testimonial-item {
    position: relative;
    z-index: 1;
}
.testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-purple);
    margin: 0 auto 20px;
    padding: 4px;
    background-color: var(--dark-card);
    transition: transform 0.3s ease;
}
.testimonial-img:hover {
    transform: scale(1.05); /* Slight scale on image hover */
}
.testimonial-item h4 {
    font-size: 1.2rem;
    margin: 10px 0 5px 0;
    color: var(--white);
    font-weight: 700;
}
.testimonial-item h5 {
    font-size: 1rem;
    color: var(--accent-purple);
    font-weight: 700;
}
.testimonial-item p {
    font-size: 1rem; /* Original size */
    line-height: 1.7;
}
/* Hide carousel indicators and controls when only one item exists */
#testimonialCarousel:not(.slide) .carousel-indicators,
#testimonialCarousel:not(.slide) .carousel-control-prev,
#testimonialCarousel:not(.slide) .carousel-control-next {
    display: none !important;
}
.carousel-indicators { bottom: -30px; }
.carousel-indicators [data-bs-target] {
    background-color: var(--dark-card);
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1px solid var(--accent-purple);
    margin: 0 8px;
    transition: all 0.3s ease;
}
.carousel-indicators .active {
    background-color: var(--accent-purple);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--glow-purple);
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: drop-shadow(0 0 5px var(--glow-purple)); /* Subtle glow for arrows */
}
.carousel-control-prev, .carousel-control-next {
    width: 5%; /* Make arrows closer to content */
}

/* --- PRICING PACKS SECTION --- */
.pack-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pack-card.popular {
    position: relative;
    z-index: 1;
    border: none; /* Removed default border */
}
.pack-card.popular::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -2px; /* Smaller inset */
    border-radius: 14px; /* (card radius + border width) */
    background: conic-gradient(from var(--angle), var(--black), var(--accent-purple), var(--black) 25%, var(--accent-purple), var(--black) 75%);
    animation: animated-gradient-border 8s linear infinite;
    --angle: 0deg;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
/* Restore original border for non-popular cards */
.pack-card:not(.popular) {
    border: 1px solid rgba(147, 51, 234, 0.2);
}
.pack-card:not(.popular):hover {
    border-color: rgba(147, 51, 234, 0.5);
}

/* NEW BADGE STYLE */
.pack-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    background: var(--accent-purple);
    border-radius: 20px;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--glow-purple);
    text-transform: uppercase;
}

.pack-card h3 {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem; /* Slightly reduced margin */
}
.pack-card .price {
    color: var(--accent-purple);
    font-size: 1.6rem;
    font-weight: 900;
    margin: 1rem 0;
    text-align: center;
}
.pack-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
}
.pack-card ul li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}
.pack-card ul li .bi {
    color: var(--accent-purple);
    margin-right: 15px;
    font-size: 1.5rem;
}
.pack-card .btn-brand { margin-top: auto; text-align: center; display: block; width: auto; /* Allow auto width */ margin-left: 0; margin-right: 0; /* Reset margins for flex center */ }

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-purple), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--glow-purple);
    z-index: 1000;
    transition: all 0.3s ease;
}
.whatsapp-fab .bi {
    font-size: 2.2rem;
    color: var(--white);
}
.whatsapp-fab:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px var(--glow-purple);
}

/* --- FOOTER --- */
footer {
    background-color: var(--black);
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}
.footer-socials a {
    color: var(--slate);
    font-size: 2rem;
    margin: 0 20px;
    transition: all 0.4s;
    display: inline-block;
}
.footer-socials a:hover {
    color: var(--accent-purple);
    transform: translateY(-10px) scale(1.1);
    text-shadow: 0 0 15px var(--glow-purple);
}
.footer-links a {
    color: var(--slate);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent-purple);
}
.footer-copy {
    margin-top: 40px;
    font-size: 1rem;
    color: var(--slate);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 991.98px) {
    .pack-card { margin-bottom: 30px; }
    .pack-card.popular::before { animation-play-state: paused; }
    .navbar-collapse {
        background-color: rgba(13, 11, 20, 0.9);
        border-top: 1px solid rgba(147, 51, 234, 0.2);
        padding: 15px;
    }
    .nav-link {
        text-align: center;
        padding: 10px 0;
    }
    .nav-link::after {
        bottom: 0;
    }
}
@media (max-width: 767.98px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    section { padding: 80px 0; }
    .linear-card { padding: 30px; }
    .advantage-icon { font-size: 3.5rem; margin-bottom: 20px; }
    .linear-card h4 { font-size: 1.2rem; }
    .service-icon-wrapper { width: 80px; height: 80px; margin-bottom: 25px; }
    .service-icon-wrapper::before {
        width: 120px;
        height: 120px;
    }
    .service-icon-wrapper .bi { font-size: 3rem; }
    .testimonial-img { width: 80px; height: 80px; }
    .testimonial-item p { font-size: 0.9rem; }
    .pack-card h3 { font-size: 1.6rem; }
    .pack-card .price { font-size: 1.4rem; }
    .pack-card ul li { font-size: 0.95rem; }
    .pack-card ul li .bi { font-size: 1.3rem; margin-right: 10px; }
    .btn-brand { padding: 14px 30px; font-size: 0.95rem; }
    .whatsapp-fab { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-fab .bi { font-size: 2rem; }
    .footer-socials a { font-size: 1.8rem; margin: 0 15px; }
    .footer-copy { font-size: 0.85rem; }
    .carousel-control-prev, .carousel-control-next {
        width: 10%;
    }
}
/* --- FAQ PAGE STYLES --- */
#faq {
    padding-top: 150px;
    padding-bottom: 120px;
    background-color: var(--black);
}

#faq .section-title {
    margin-bottom: 20px; /* Reduced margin for page title */
}
#faq .section-title::after {
    display: none; /* Hide the underline for page title */
}

.accordion-item {
    background-color: var(--dark-card);
    border: 1px solid rgba(147, 51, 234, 0.2);
    margin-bottom: 15px;
    border-radius: 12px !important; /* Force radius */
    overflow: hidden; /* Ensure content respects the radius */
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    font-family: var(--font-primary);
    background-color: var(--dark-card);
    color: var(--lightest-slate);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 25px 30px;
    border: none;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--dark-bg);
    color: var(--accent-purple);
    box-shadow: inset 0 -2px 0 var(--accent-purple);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0); /* Remove focus border */
}

.accordion-body {
    padding: 20px 30px 30px 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--slate);
}

/* Custom Accordion Icon */
.accordion-button::after {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a8b2d1'%3e%3cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.5rem;
    transition: transform 0.3s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239333ea'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8z'/%3e%3c/svg%3e");
    transform: rotate(0deg);
}
/* --- PROJECTS PAGE STYLES --- */
#projects-gallery {
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: var(--black);
}

#projects-gallery .section-title {
    margin-bottom: 20px;
    padding-bottom: 0;
}
#projects-gallery .section-title::after {
    display: none;
}

.project-card {
    background-color: var(--dark-card);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 16px;
    margin-bottom: 80px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.project-image {
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 40px;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.project-description {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 30px;
}

.tech-tags span {
    display: inline-block;
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--accent-purple);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.tech-tags span .bi {
    margin-right: 8px;
}

@media (max-width: 991.98px) {
    .project-details {
        padding: 40px 30px;
    }
    .project-card {
        margin-bottom: 60px;
    }
}