/* ძირითადი პარამეტრები და ფერები */
:root {
    --bg-dark: #050e1d;
    --bg-light: #f4f7fa;
    --text-dark: #e0e6ed;
    --text-light: #1f2937;

    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);

    --card-bg-dark: rgba(255, 255, 255, 0.05);
    --card-bg-light: rgba(255, 255, 255, 0.6);

    --card-bg: var(--card-bg-dark);

    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-backdrop: blur(12px);

    --accent-orange: #ff7b00;
    --accent-glow: rgba(255, 123, 0, 0.4);
}

body.light-mode {
    --bg-color: var(--bg-light);
    --text-color: var(--text-light);
    --card-bg: var(--card-bg-light);
}

/* Specific Light Mode Overrides */
body.light-mode {
    background-image: linear-gradient(to bottom, #f4f7fa, #dfe6f0);
}

body.light-mode .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a {
    color: var(--text-color);
}

body.light-mode .nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .hamburger span {
    background-color: var(--text-color);
}

body.light-mode .service-card,
body.light-mode .info-item,
body.light-mode .features-list li,
body.light-mode .contact-form {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.light-mode .card-text h2 {
    color: var(--text-color);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: #ffffff;
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .checkbox-container,
body.light-mode .radio-container {
    color: var(--text-color);
}

body.light-mode .checkmark,
body.light-mode .radio-mark {
    background-color: #eee;
    border: 1px solid #ccc;
}

body.light-mode .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%);
    color: var(--text-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body.light-mode .modal p,
body.light-mode .modal-form label {
    color: #555;
}

body.light-mode .modal-content th {
    background-color: var(--accent-orange);
    color: white;
}

body.light-mode .modal-content td {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-content tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Theme Toggle Button Style */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    /* Space between btn and hamburger */
    transition: transform 0.3s;
    padding: 5px;
}

.theme-btn:hover {
    transform: rotate(20deg);
    color: var(--accent-orange);
}

@media(max-width: 768px) {
    .theme-btn {
        margin-right: 20px;
    }
}


html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: linear-gradient(to bottom, #050e1d, #020710);
    /* გრადიენტი სიღრმისთვის - Default Dark */
}

/* ნავიგაცია */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 2001;
    background-color: rgba(5, 14, 29, 0.25);
    /* Very transparent for glass effect */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

/* Lightning Animation Keyframes */
.logo-img {
    height: 60px;
    /* Increased by 3x (35px * 3) */
    width: auto;
    object-fit: contain;
}

.highlight {
    color: var(--accent-orange);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    /* removed text-transform: uppercase to keep it looking nice with icons */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-links a i {
    font-size: 20px;
    color: var(--accent-orange);
}

.nav-links a span {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease;
    /* Slower and smoother */
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover span {
    max-width: 150px;
    /* Adjust based on text length */
    opacity: 1;
}

/* ღილაკების სტილი */
.btn-primary {
    background-color: var(--accent-orange);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary.glow {
    box-shadow: 0 0 15px var(--accent-glow);
    /* ნათების ეფექტი */
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* Navigation Menu */
.hamburger {
    display: none;
    /* Hidden on desktop */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hero სექცია */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 5%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    /* Background image removed in favor of video */
    scroll-snap-align: start;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 14, 29, 0.7);
    /* Dark overlay */
    z-index: 1;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    width: 50%;
    position: relative;
    z-index: 2;
    /* Ensure content is on top of overlay */
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}



/* სერვისების ბარათები */
.services {
    padding: 50px 5%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(41, 128, 185, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Animation Initial State */
    opacity: 0;
    transform: translateY(100px);
    /* Slide up from further down */
    transition: all 1.2s ease-out;
    /* Slow and smooth transition */
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reverse {
    flex-direction: row-reverse;
    /* მეორე ბარათის შებრუნება */
}



.card-image img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.card-text h2 {
    color: white;
    margin-bottom: 10px;
}

.text-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 15px 5%;
        /* Ensure specific spacing */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        transition: 0.3s;
    }

    /* Transform hamburger to X when active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5, 14, 29, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 20px;

        /* Animation Logic */
        display: flex;
        /* Always display flex but hide via heights */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        /* Remove padding when closed to avoid jumpiness */

        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        /* Smooth and slow easing */
        border-bottom: 1px solid rgba(255, 255, 255, 0);
        /* Fade border too */
    }

    .nav-menu.active {
        max-height: 500px;
        /* Large enough to fit content */
        opacity: 1;
        padding: 30px 0;
        /* Add padding back when active */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links {
        flex-direction: row;
        /* Horizontal icons */
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        min-height: 80vh;
    }

    .hero-content {
        width: 100%;
        padding-top: 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .service-card.reverse {
        flex-direction: column;
    }

    .card-image img {
        width: 100%;
        height: auto;
    }
}

/* --- საერთო სექციების სტილი --- */
section {
    min-height: 100vh;
    /* მთელ ეკრანზე გაშლა */
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    /* სქროლის გაჩერება სექციის თავში */
    padding: 80px 5%;
    box-sizing: border-box;
}

.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* --- ჩვენ შესახებ (About) --- */
.about-section {
    background: linear-gradient(135deg, #020710 0%, #0a1525 100%);
    position: relative;
    overflow: hidden;
}

/* Background blob for visual interest */
.about-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: var(--glass-border);
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: rgba(255, 123, 0, 0.2);
}

/* --- კონტაქტი (Contact) --- */
.contact-section {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: var(--glass-border);
    transition: 0.3s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.info-item i {
    font-size: 28px;
    color: var(--accent-orange);
    background: rgba(255, 123, 0, 0.1);
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 25px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter background for inputs */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.15);
}

/* ანიმაციის კლასები */
.hidden-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.5, 0, 0, 1), transform 1s cubic-bezier(0.5, 0, 0, 1);
}

.hidden-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* მობილური ადაპტაცია ახალი სექციებისთვის */
@media (max-width: 900px) {

    .about-section .container,
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    /* Mobile: Image becomes background */
    .about-section {
        background: linear-gradient(rgba(2, 7, 16, 0.85), rgba(2, 7, 16, 0.9)), url('ახალი საქაღალდე/about-image.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .about-image {
        display: none;
    }

    .contact-form {
        padding: 30px;
        width: 100%;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
}

footer {
    text-align: center;
    padding: 30px 20px;
    background: #01040a;
    color: #666;
    font-size: 14px;
    scroll-snap-align: end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    /* დამალულია საწყის ეტაპზე */
    position: fixed;
    z-index: 9999;
    /* ნავიგაციაზე და ყველაფერზე ზემოთ */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* ჩამუქებული უკანა ფონი */
    backdrop-filter: blur(10px);
    /* ძლიერი ბლარ ეფექტი */
    overflow-y: auto;
    /* სქროლი თუ ეკრანზე ვერ ეტევა */
    display: flex;
    /* Kept flex for centering logic, but 'display: none' overrides in css if not 'show' */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    /* Slower animation */

    /* Ensure padding so it doesn't touch edges, especially top for navbar */
    padding: 100px 20px 20px 20px;
    box-sizing: border-box;
}

/* Fix for animation: Always flex, but hidden */
.modal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    /* other props */
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: rgba(5, 14, 29, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: auto;
    /* centered via flex but ensuring margin */
    padding: 40px;
    border: var(--glass-border);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    transform: scale(0.8);
    transition: transform 1s ease;
    /* Slower animation */
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 15px;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--accent-orange);
}

.modal h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 10px;
}

.modal p {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

/* ფორმის ელემენტები მოდალში */
.modal-form label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group-row .form-group {
    flex: 1;
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

/* Custom Checkbox & Radio Styles */
.group-label {
    margin-bottom: 15px !important;
    color: var(--accent-orange) !important;
    font-weight: bold;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-container,
.radio-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
    color: #e0e6ed;
}

/* დამალული ორიგინალი input */
.checkbox-container input,
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkmark Box */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* Checkmark Icon */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Custom Radio Circle */
.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.radio-container input:checked~.radio-mark {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-container input:checked~.radio-mark:after {
    display: block;
}

/* Mobile responsive for modal */
@media (max-width: 600px) {
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-content {
        margin: 10px;
        padding: 25px;
        width: auto;
    }
}

/* --- Scroll Reveal Animations (Text Highlight) --- */
.scroll-reveal {
    opacity: 0.2;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, color 0.5s ease;
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom highlight for headers - gradient fill effect */
h1.scroll-reveal,
h2.scroll-reveal {
    /* Create a gradient text effect that reveals */
    background: linear-gradient(to right, white 50%, rgba(255, 255, 255, 0.2) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback controlled by opacity above, but this overrides for gradient */
    transition: background-position 1s ease-out, transform 0.8s ease-out, opacity 0.8s ease-out;
}

h1.scroll-reveal.active,
h2.scroll-reveal.active {
    background-position: 0 0;
}