/*
 * Theme Name: TbilisiWeb Theme
 * Theme URI: https://tbilisiweb.com/
 * Author: TbilisiWeb
 * Author URI: https://tbilisiweb.com/
 * Description: A custom theme built for TbilisiWeb based on static HTML files.
 * Version: 1.0.7
 * License: GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: tbilisiweb-theme
 */

/* ==========================================================================
   TABLE OF CONTENTS / სარჩევი
   ==========================================================================

   1.  FONTS / ფონტები
       - FiraGo Font Faces
   2.  GLOBAL STYLES / გლობალური სტილები
       - CSS Variables (Root)
       - Global Reset
       - Body & Typography
       - Container
   3.  PRELOADER / საწყისი ჩატვირთვა
   4.  HEADER / ჰედერი
       - Main Header Styles
       - Navigation Links
       - Sub Menu Styles
       - Theme Toggle
       - Language Switcher
   5.  MOBILE NAVIGATION / მობილური ნავიგაცია
       - Hamburger Icon
       - Mobile Menu Panel
   6.  SECTIONS / სექციები
       - Hero Section
       - Common Section Styles

       - Services Section
       - Packages (Pricing) Section
       - Portfolio Section
       - Process Section
       - Maintenance Section
       - Contact Section
   7.  COMPONENTS / კომპონენტები
       - Cards
       - Buttons
       - Hero CTA Button
       - Forms
       - Modal
       - Floating Action Button
   8.  UTILITIES / დამხმარე კლასები
   9.  FOOTER / ფუტერი

========================================================================== */


/* ==========================================================================
   1. FONTS / ფონტები
   ========================================================================== */

/* --- FiraGo Font Faces --- */
@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-Thin.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-Light.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-Regular.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-Medium.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-SemiBold.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-Bold.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-ExtraBold.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FiraGo';
    src: url('assets/fonts/firago/FiraGO-Heavy.woff2') format('woff2'),
        url('assets/fonts/firago/FiraGO-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   2. GLOBAL STYLES / გლობალური სტილები
   ========================================================================== */

/* --- CSS Variables (Root) --- */
:root {
    /* Light Mode */
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --text-dark: #292524;
    --bg-light: #F5F5F4;
    --stone-subtle: #fafaf9;
    --fab-bg: #FFFFFF;
    --fab-border: rgba(0, 0, 0, 0.1);
    --fab-text: #1F2937;
    --fab-icon: #4F46E5;
    --fab-shadow: rgba(0, 0, 0, 0.1);
    --fab-gradient-start: #8B5CF6;
    --fab-gradient-end: #3B82F6;

    /* Dark theme colors */
    --bg-dark: #111827;
    --card-dark: #1f2937;
    --border-dark: #374151;
    --text-light: #e5e7eb;
}

html.dark {
    /* Dark Mode */
    --fab-bg: #111827;
    --fab-border: rgba(255, 255, 255, 0.2);
    --fab-text: #F9FAFB;
    --fab-icon: #A78BFA;
    --fab-shadow: rgba(167, 139, 250, 0.2);
    --fab-gradient-start: #a78bfa;
    --fab-gradient-end: #7c3aed;
}


/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

html.dark {
    color-scheme: dark;
}

/* --- Body & Typography --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html.dark body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

body.menu-open {
    overflow: hidden;
}

main {
    flex: 1 0 auto;
}

body,
section,
header,
footer,
.card,
.modal-content,
.wizard-container,
.glass-effect {
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    letter-spacing: normal;
    font-feature-settings: "case" on;
    overflow-wrap: break-word;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}


/* ==========================================================================
   3. PRELOADER / საწყისი ჩატვირთვა
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: var(--stone-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

html.dark #preloader {
    background-color: var(--bg-dark);
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#preloader .logo-container {
    font-size: 2.5rem;
}

.loading-bar-container {
    width: 150px;
    height: 4px;
    background-color: #e7e5e4;
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

html.dark .loading-bar-container {
    background-color: var(--border-dark);
}

.loading-bar {
    width: 50%;
    height: 100%;
    background-color: var(--purple);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    animation: loading-bar-anim 2s infinite ease-in-out;
}

html.dark .loading-bar {
    background-color: var(--purple-light);
}

@keyframes loading-bar-anim {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(200%);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* ==========================================================================
   4. HEADER / ჰედერი
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header.menu-open-header {
    z-index: 1002;
}

.glass-effect {
    background: rgba(245, 245, 244, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(211 211 211);
}

html.dark .glass-effect {
    background: rgba(17, 24, 39, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-right-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- Logo --- */
.logo-container {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--purple);
}

html.dark .logo-container {
    color: var(--purple-light);
}

.logo-container a {
    text-decoration: none;
    color: inherit;
}

.logo-container span {
    background: var(--purple);
    color: #ffffff;
    border-radius: 0px 20px;
    margin-left: 2px;
    padding: 0px 8px;
}

html.dark .logo-container span {
    background: var(--purple-light);
    color: var(--bg-dark);
}

/* --- Navigation Links --- */
.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
        margin-right: 1.2rem;
    }
}

.nav-links a {
    text-decoration: none;
    color: #44403c;
    transition: color 0.2s ease;
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-feature-settings: "case" on;
    font-size: 0.9rem;
}

html.dark .nav-links a {
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--purple);
}

html.dark .nav-links a:hover {
    color: var(--purple-light);
}

/* --- Sub Menu Styles --- */
.nav-links ul,
.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links>ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a,
.mobile-nav-links a {
    text-decoration: none;
    display: block;
    position: relative;
}

.nav-links>ul>li {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 140px;
    padding: 8px;
    z-index: 1000;
    border-radius: 14px;
    background: rgba(28, 36, 51, 0.918);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s 0.3s;
}

.nav-links li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s 0s;
}

.nav-links .sub-menu li {
    padding: 0;
}

.nav-links .sub-menu a {
    color: #e5e7eb;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links .sub-menu a:hover {
    background-color: var(--purple);
    color: #ffffff !important;
}

.nav-links .menu-item-has-children>a::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links li:hover>a::after {
    transform: translateY(-30%) rotate(225deg);
}


/* --- Theme Toggle --- */
#theme-toggle {
    background-color: #e7e5e4;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.dark #theme-toggle {
    background-color: var(--border-dark);
}

#theme-toggle:hover {
    border-color: var(--purple);
}

html.dark #theme-toggle:hover {
    border-color: var(--purple-light);
}

#theme-toggle svg {
    width: 1.5rem;
    height: 1.3rem;
    color: #57534e;
    transition: color 0.2s ease-in-out;
}

html.dark #theme-toggle svg {
    color: #d1d5db;
}

#theme-toggle:hover svg {
    color: var(--purple);
}

html.dark #theme-toggle:hover svg {
    color: var(--purple-light);
}

/* --- Language Switcher / ენის გადამრთველი --- */
.language-switch {
    position: relative;
    z-index: 10;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e7e5e4;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-weight: 500;
    color: #57534e;
}

html.dark .language-toggle {
    background-color: var(--border-dark);
    color: #d1d5db;
}

.language-toggle:hover {
    border-color: var(--purple);
    color: var(--purple);
}

html.dark .language-toggle:hover {
    border-color: var(--purple-light);
    color: var(--purple-light);
}

.language-toggle img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.language-list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

html.dark .language-list {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
}

.language-switch.open .language-list {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-list li {
    margin: 0;
}

.language-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 8px;
    color: var(--text-dark) !important;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    white-space: nowrap;
    font-size: 1rem;
}

html.dark .language-list li a {
    color: var(--text-light) !important;
}

.language-list li a:hover {
    background-color: var(--bg-light);
    color: var(--purple) !important;
}

html.dark .language-list li a:hover {
    background-color: var(--border-dark);
    color: var(--purple-light) !important;
}

.language-list li.active a {
    font-weight: 600;
    background: none;
    color: var(--purple) !important;
}

html.dark .language-list li.active a {
    color: var(--purple-light) !important;
}

/* --- Language Switcher Visibility --- */
@media (max-width: 1023px) {
    .header-actions .language-switch {
        display: none;
    }
}

@media (min-width: 1024px) {
    .header-actions .language-switch {
        display: block;
    }
}


/* ==========================================================================
   5. MOBILE NAVIGATION / მობილური ნავიგაცია
   ========================================================================== */

/* --- Hamburger Icon --- */
#mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

@media (min-width: 1024px) {
    #mobile-menu-button {
        display: none;
    }
}

.hamburger-icon {
    width: 30px;
    height: 22px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 4px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

html.dark .hamburger-icon span {
    background: var(--text-light);
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

#mobile-menu-button.is-active .hamburger-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

#mobile-menu-button.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#mobile-menu-button.is-active .hamburger-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* --- Mobile Menu Panel --- */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
    z-index: 1000;
}

html.dark #mobile-menu {
    background-color: rgba(17, 24, 39, 0.95);
}

#mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#mobile-menu .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

#mobile-menu .mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    padding: 1rem;
    opacity: 0;
    transition: color 0.2s ease, opacity 0.3s ease, transform 0.2s ease;
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-feature-settings: "case" on;
}

#mobile-menu.is-open .mobile-nav-links a {
    opacity: 1;
}

html.dark #mobile-menu .mobile-nav-links a {
    color: var(--text-light);
}

#mobile-menu .mobile-nav-links a:hover {
    color: var(--purple);
    transform: scale(1.1);
}

html.dark #mobile-menu .mobile-nav-links a:hover {
    color: var(--purple-light);
}

/* --- Mobile Sub Menu --- */
.mobile-nav-links .sub-menu {
    padding-left: 20px;
    display: none;
}

.mobile-nav-links .sub-menu a {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-nav-links .menu-item-has-children>.sub-menu {
    display: none;
}

.mobile-nav-links .menu-item-has-children.open>.sub-menu {
    display: block;
}

.mobile-nav-links .menu-item-has-children>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-links .menu-item-has-children>a::after {
    content: '❯';
    font-size: 14px;
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.mobile-nav-links .menu-item-has-children.open>a::after {
    transform: rotate(90deg);
}

/* --- Mobile Language Switcher --- */
.mobile-language-switcher {
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #d6d3d1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease 0.2s;
    display: flex;
    justify-content: center;
}

html.dark .mobile-language-switcher {
    border-top-color: var(--border-dark);
}

#mobile-menu.is-open .mobile-language-switcher {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-language-switcher .language-toggle {
    display: none;
}

.mobile-language-switcher .language-list {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-language-switcher .language-list li a {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    background-color: #e7e5e4;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
}

html.dark .mobile-language-switcher .language-list li a {
    background-color: var(--border-dark);
}

.mobile-language-switcher .language-list li a.active,
.mobile-language-switcher .language-list li a:hover {
    background-color: var(--purple);
    color: white !important;
    transform: translateY(-3px) scale(1.05);
}

html.dark .mobile-language-switcher .language-list li a.active,
html.dark .mobile-language-switcher .language-list li a:hover {
    background-color: var(--purple-light);
    color: var(--text-dark) !important;
}

@media (min-width: 1024px) {
    .mobile-language-switcher {
        display: none !important;
    }
}


/* ==========================================================================
   6. SECTIONS / სექციები
   ========================================================================== */

/* --- Hero Section / მთავარი სექცია --- */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 80px 0;
    color: var(--text-dark);
    overflow: hidden;
    background-color: var(--stone-subtle);
}

html.dark #hero {
    color: var(--text-light);
    background-color: var(--bg-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.angled-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 80%;
    background-color: var(--purple);
    transform: skewY(-8deg);
    opacity: 0.1;
    transition: background-color 0.3s ease;
}

html.dark .angled-bg {
    opacity: 0.1;
}

.brand-strap {
    position: absolute;
    bottom: 10%;
    left: 1%;
    width: 82%;
    font-size: 5rem;
    font-weight: 900;
    color: var(--purple);
    opacity: 0.05;
    white-space: nowrap;
    transform: rotate(-12deg);
    user-select: none;
    transition: color 0.3s ease;
}

html.dark .brand-strap {
    color: var(--purple-light);
}

.hero-content-grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    #hero {
        min-height: 100vh;
    }

    .hero-content-grid {
        grid-template-columns: 1fr 0.9fr;
        gap: 4rem;
    }
}

.hero-text-content {
    text-align: center;
    order: 2;
}

@media (min-width: 768px) {
    .hero-text-content {
        text-align: left;
        order: 1;
    }
}

#hero h1 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: normal;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 640px) {
    #hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    #hero h1 {
        font-size: 2.75rem;
    }
}

#hero h1 span {
    color: var(--purple);
}

html.dark #hero h1 span {
    color: var(--purple-light);
}

#hero p {
    max-width: 42rem;
    margin: 0 auto 2rem auto;
    font-size: 1.125rem;
    color: #57534e;
}

html.dark #hero p {
    color: #a1a1aa;
}

@media (min-width: 768px) {
    #hero p {
        margin-left: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image-content {
    display: flex;
    justify-content: center;
    position: relative;
    order: 1;
}

@media (min-width: 768px) {
    .hero-image-content {
        align-items: center;
        order: 2;
    }
}

.hero-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 1.5rem 5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 4px solid white;
}

html.dark .hero-image {
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    border-color: var(--border-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* --- Common Section Styles / სექციების საერთო სტილი --- */
section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
}

.section-subtitle {
    max-width: 42rem;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: #57534e;
}

html.dark .section-subtitle {
    color: #a1a1aa;
}

.grid-container-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-container-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.grid-container-4-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .grid-container-4-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-container-4-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-container-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-container-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Section Backgrounds */
#services,
#tech-approach,
#portfolio {
    background-color: #ffffff;
}

html.dark #services,
html.dark #tech-approach,
html.dark #portfolio,
html.dark {
    background-color: var(--card-dark);
}

.portfolio-archive-page #portfolio {
    background-color: var(--bg-light);
}

html.dark .portfolio-archive-page #portfolio {
    background-color: var(--bg-dark);
}

#packages,
#process,
#maintenance {
    background-color: var(--stone-subtle);
}

html.dark #packages,
html.dark #process,
html.dark #maintenance {
    background-color: var(--bg-dark);
}


/* --- Tech Approach Section --- */
#tech-approach .grid-container-2 {
    align-items: stretch;
}

#tech-approach .card {
    display: flex;
    flex-direction: column;
}

#tech-approach .card .icon {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tech-approach .card .tech-icon {
    max-height: 40px;
    width: auto;
    max-width: 120px;
}

#tech-approach .card .card-content-tech {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-content-tech h3 {
    text-align: center;
}

#tech-approach .tech-icon[alt="Code Icon"] {
    filter: invert(34%) sepia(98%) saturate(3020%) hue-rotate(251deg) brightness(92%) contrast(92%);
}


/* --- Packages Section / ფასები --- */
.package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--purple) !important;
}

html.dark .package-card {
    border-color: var(--purple-light);
}

.package-card h3 {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-card .card-description {
    min-height: 93px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 0.9rem;
}

.package-card .price {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: aliceblue;
    border-radius: 1rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--purple);
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

html.dark .package-card .price {
    background-color: var(--bg-dark);
    color: var(--purple-light);
}

.price-line {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.local-price {
    font-size: 0.7rem;
    text-decoration: underline;
    color: black;
    padding: 0.2rem 1rem;
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-feature-settings: "case" on;
}

html.dark .local-price {
    color: #a1a1aa;
}

html.dark .price {
    color: var(--purple-light);
}

.price .from {
    font-size: 1rem;
    color: #57534e;
    font-weight: 400;
}

html.dark .price .from {
    color: #a1a1aa;
}

.price .gel {
    font-size: 2.5rem;
}

.package-card .features-list {
    flex-grow: 1;
}

.features-list {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #57534e;
    margin: 0.5rem 0;
    border-top: 1px solid #e7e5e4;
    padding-top: 1.25rem;
}

html.dark .features-list {
    color: var(--text-light);
    border-top-color: var(--border-dark);
}

.features-list h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e7e5e4;
    padding-bottom: 0.25rem;
}

html.dark .features-list h4 {
    color: var(--text-light);
    border-bottom-color: var(--border-dark);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.features-list .check,
.features-list .cross {
    margin-right: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.features-list .check {
    color: #16a34a;
}

.features-list .cross {
    color: #a1a1aa;
}

html.dark .features-list .cross {
    color: #71717a;
}


/* --- Portfolio Section / პორტფოლიო --- */
.portfolio-section {
    padding-block: 5rem;
}

.home .portfolio-section {
    background-color: var(--bg-light);
}

html.dark .home .portfolio-section {
    background-color: var(--card-dark);
}

.portfolio-section .portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.portfolio-section .portfolio-grid,
.portfolio-section #portfolio-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.section-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* --- Process Section / პროცესი --- */
.process-timeline {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding-left: 4rem;
    padding-bottom: 3rem;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 2.5rem;
    bottom: -1.5rem;
    width: 2px;
    background-color: #e7e5e4;
}

html.dark .process-step::before {
    background-color: var(--border-dark);
}

.process-step:last-child::before {
    display: none;
}

.step-circle {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background-color: var(--purple);
    color: white;
    transform: scale(1.1);
}

html.dark .step-circle {
    background-color: var(--purple-light);
    color: var(--text-dark);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    min-height: auto;
}


/* --- Maintenance Section / საიტის მხარდაჭერა --- */
.maintenance-wrapper {
    background: linear-gradient(145deg, var(--purple), #6d28d9);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    color: white;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .maintenance-wrapper {
        grid-template-columns: 2fr 1fr;
        padding: 4rem;
    }
}

.maintenance-features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .maintenance-features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item-icon {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item-icon img {
    width: 2rem;
    height: 2rem;
    filter: brightness(0) invert(1);
}

.feature-item-text h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-item-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.maintenance-cta {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
}

.maintenance-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.maintenance-cta p {
    margin-bottom: 1.5rem;
}

.maintenance-cta .maintenance-price {
    margin-bottom: 1rem;
    color: white;
}

.maintenance-cta .price-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.maintenance-cta .gel {
    font-size: 2.5rem;
    font-weight: 700;
}

.maintenance-cta .from {
    font-size: 1rem;
    opacity: 0.8;
}

.maintenance-cta .local-price {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
}


/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    gap: 2rem;
    align-items: flex-start;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #57534e;
    margin-bottom: 2rem;
}

html.dark .contact-info p {
    color: #a1a1aa;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info li svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--purple);
    flex-shrink: 0;
}

html.dark .contact-info li svg {
    color: var(--purple-light);
}

.contact-info li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 1.125rem;
}

html.dark .contact-info li a {
    color: var(--text-light);
}

.contact-info li a:hover {
    color: var(--purple);
}

html.dark .contact-info li a:hover {
    color: var(--purple-light);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid #e7e5e4;
    padding-top: 2rem;
}

html.dark .social-links {
    border-top-color: var(--border-dark);
}

.social-links a {
    color: #57534e;
    transition: color 0.2s ease, transform 0.2s ease;
}

html.dark .social-links a {
    color: #a1a1aa;
}

.social-links a:hover {
    color: var(--purple);
    transform: translateY(-2px);
}

html.dark .social-links a:hover {
    color: var(--purple-light);
}

.social-links a svg {
    width: 1.75rem;
    height: 1.75rem;
}


/* ==========================================================================
   7. COMPONENTS / კომპონენტები
   ========================================================================== */

/* --- Cards --- */
.card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .card {
        padding: 2rem;
    }
}

.card.text-left {
    text-align: left;
}

html.dark .card {
    background-color: var(--card-dark);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2);
    border-color: var(--border-dark);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--purple);
    text-align: center;
}

html.dark .card .icon {
    color: var(--purple-light);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .card h3 {
        font-size: 1.5rem;
    }
}

.card p {
    color: #57534e;
}

html.dark .card p {
    color: #a1a1aa;
}

/* --- Portfolio Project Card (MODIFIED) --- */
.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.link-icon {
    width: 23px;
    height: 23px;
    color: initial;
}

html.dark .project-card {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
    box-shadow: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    color: inherit;
}

html.dark .project-card:hover {
    border-color: var(--purple-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

a.card-header,
a.card-header:visited {
    color: inherit;
    text-decoration: none;
}

html.dark .card-header {
    background-color: #2a3547;
    border-color: var(--border-dark);
}

.window-dots {
    display: flex;
    gap: 0.4rem;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dot.red {
    background-color: #f87171;
}

.window-dot.yellow {
    background-color: #fbbd23;
}

.window-dot.green {
    background-color: #34d399;
}

.domain-display {
    flex-grow: 1;
    text-align: center;
    color: #78716c;
    font-size: 0.8rem;
    font-weight: 500;
}

html.dark .domain-display {
    color: #a1a1aa;
}

.card-image-container {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f4;
}

.card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 8s ease-in-out;
}

/* Scrolling effect on hover */
.project-card:hover .card-image {
    transform: translateY(calc(-100% + 220px));
}


.card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
    color: var(--text-dark);
}

html.dark .card-content h3 {
    color: var(--text-light);
}

.card-content p {
    font-size: 0.9rem;
    color: #78716c;
    line-height: 1.5;
    margin: 0;
}

html.dark .card-content p {
    color: #a1a1aa;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f5f5f4;
    flex-shrink: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
}

html.dark .card-footer {
    border-color: #374151;
}

.card-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tech-tag {
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
}

html.dark .card-tech-tag {
    background-color: #4b5563;
    color: #d1d5db;
}

/* Google Business Profile Link Styles */
.google-business-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #57534e;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.google-business-link:hover {
    color: var(--purple);
    background-color: #f5f5f4;
}

html.dark .google-business-link {
    color: #a1a1aa;
}

html.dark .google-business-link:hover {
    color: var(--purple-light);
    background-color: var(--border-dark);
}

.google-business-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* --- Hero CTA Button --- */
#hero .btn-primary {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--purple);
    border: none;
    color: white;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
}

#hero .btn-primary::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
}

#hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    color: white;
}

#hero .btn-primary:hover::before {
    left: 150%;
}

#hero .btn-primary::after {
    content: '→';
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

#hero .btn-primary:hover::after {
    transform: translateX(5px);
}

html.dark #hero .btn-primary {
    background-color: var(--purple-light);
    color: var(--bg-dark);
}

html.dark #hero .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
    color: var(--bg-dark);
}

/* --- Buttons --- */

.hero-buttons a,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {

    .hero-buttons a,
    .btn {
        width: auto;
    }
}

.hero-buttons a:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--purple);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 14px 0 rgb(0 0 0 / 10%);
    padding: 0.5rem;
    border-radius: 1rem;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #6d28d9;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}

html.dark .btn-secondary {
    border-color: var(--purple-light);
    color: var(--purple);
}

.btn-secondary:hover {
    background-color: var(--purple);
    color: white;
}

html.dark .btn-secondary:hover {
    background-color: var(--purple-light);
    color: var(--text-dark);
}

.btn-primary svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.package-card .btn-primary {
    margin-top: 1rem;
    width: 100%;
}

.maintenance-cta .btn-secondary {
    background-color: white;
    color: var(--purple);
    font-weight: 700;
    border: none;
    width: 100%;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}

.maintenance-cta .btn-secondary:hover {
    background-color: #f1f5f9;
    color: var(--purple);
}


/* --- Portfolio CTA Button --- */
#front-page-portfolio .section-cta .btn.btn-primary {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--purple);
    border: none;
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
}

#front-page-portfolio .section-cta .btn.btn-primary::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
}

#front-page-portfolio .section-cta .btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    color: white;
}

#front-page-portfolio .section-cta .btn.btn-primary:hover::before {
    left: 150%;
}

#front-page-portfolio .section-cta .btn.btn-primary::after {
    content: '→';
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

#front-page-portfolio .section-cta .btn.btn-primary:hover::after {
    transform: translateX(5px);
}

html.dark #front-page-portfolio .section-cta .btn.btn-primary {
    background-color: var(--purple-light);
    color: var(--bg-dark);
}

html.dark #front-page-portfolio .section-cta .btn.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
    color: var(--bg-dark);
}

/* --- Filter Buttons --- */
.portfolio-section .filter-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #d6d3d1;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

html.dark .portfolio-section .filter-btn {
    color: var(--text-light);
    border-color: var(--border-dark);
}

.portfolio-section .filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--purple);
}

.portfolio-section .filter-btn.active {
    background-color: var(--purple);
    color: white !important;
    border-color: var(--purple);
}

html.dark .portfolio-section .filter-btn:hover {
    border-color: var(--purple-light);
}

html.dark .portfolio-section .filter-btn.active {
    background-color: var(--purple-light);
    color: var(--text-dark) !important;
    border-color: var(--purple-light);
}

/* --- Forms --- */
#contact-form.card {
    padding: 1.1rem;
}

@media (min-width: 640px) {
    #contact-form.card {
        padding: 2rem;
    }
}

#contact-form .form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    #contact-form .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #d6d3d1;
    font-family: 'Inter', sans-serif;
    background-color: var(--stone-subtle);
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 16px
}

.form-input::placeholder,
#contact-form textarea::placeholder {
    color: #a1a1aa;
}

.form-input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

html.dark .form-input,
html.dark #contact-form textarea {
    background-color: var(--border-dark);
    border-color: #4b5563;
    color: var(--text-light);
}

html.dark .form-input::placeholder,
html.dark #contact-form textarea::placeholder {
    color: #9ca3af;
}

html.dark .form-input:focus,
html.dark #contact-form textarea:focus {
    border-color: var(--purple-light);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

html.dark select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

select.form-input option {
    background-color: white;
    color: var(--text-dark);
}

html.dark select.form-input option {
    background-color: var(--card-dark);
    color: var(--text-light);
}

#generate-message-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    border: 1px solid #d6d3d1;
    background-color: #f3f4f6;
    color: #57534e;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#generate-message-btn:hover {
    background-color: #e5e7eb;
    transform: scale(1.1);
}

html.dark #generate-message-btn {
    background-color: #4b5563;
    color: var(--text-light);
    border-color: #6b7280;
}

html.dark #generate-message-btn:hover {
    background-color: #6b7280;
}

#generate-message-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#generate-message-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 1.25rem;
    height: 1.25rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    background-color: var(--text-dark);
    color: white;
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

html.dark .ai-tooltip {
    background-color: var(--card-dark);
    color: var(--text-light);
}

html.dark .ai-tooltip::after {
    border-color: var(--card-dark) transparent transparent transparent;
}

.form-group:hover .ai-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#contact .submit-btn {
    background-color: var(--purple);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

@media (min-width: 640px) {
    #contact .submit-btn {
        width: auto;
    }
}

#contact .submit-btn:hover {
    background-color: #6d28d9;
    transform: scale(1.05);
}


/* --- Modal / მოდალი --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

html.dark .modal-content {
    background-color: var(--card-dark);
}

#close-modal-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    color: #a1a1aa;
    padding: 0.5rem;
}

#close-modal-btn:hover {
    color: #1c1917;
}

html.dark #close-modal-btn:hover {
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-body img {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.modal-body h2 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #57534e;
}

html.dark .modal-body p {
    color: #a1a1aa;
}

.modal-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    min-height: auto;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background-color: #ede9fe;
    color: #5b21b6;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
}

html.dark .tech-tag {
    background-color: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
}

/* --- Floating Action Button --- */
.custom-floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 100px;
    color: var(--fab-text);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 20px var(--fab-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease-in-out;
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-feature-settings: "case" on;
}

.custom-floating-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--fab-gradient-start), var(--fab-gradient-end), var(--fab-gradient-start));
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-floating-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--fab-bg);
    border-radius: inherit;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.custom-floating-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--fab-shadow);
}

.custom-floating-button .cfb-icon {
    width: 22px;
    height: 22px;
    color: var(--fab-icon);
    transition: transform 0.3s ease-in-out, color 0.3s ease;
}

.custom-floating-button:hover .cfb-icon {
    transform: rotate(-5deg);
}

@media (max-width: 768px) {
    .custom-floating-button {
        width: 60px;
        height: 60px;
        padding: 0;
        gap: 0;
    }

    .custom-floating-button span {
        display: none;
    }

    .custom-floating-button .cfb-icon {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   8. UTILITIES / დამხმარე კლასები
   ========================================================================== */
.hidden {
    display: none !important;
}


/* ==========================================================================
   9. FOOTER / ფუტერი
   ========================================================================== */
footer {
    background-color: #292524;
    color: #d6d3d1;
    padding: 2rem 0;
    text-align: center;
    flex-shrink: 0;
}

html.dark footer {
    background-color: #0c0a09;
}

.footer-copyright {
    font-size: 0.875rem;

}

@media (max-width: 768px) {
    .footer-copyright {
        font-size: 14px;
        max-width: 200px;
        margin: auto;
    }
}



/* ==========================================================================
   10. BLOG STYLES (FINAL VERSION) / ბლოგის სტილები (საბოლოო ვერსია)
   ========================================================================== */

.blog-section {
    padding: 80px 0;
}

html.dark .home .blog-section {


    background-color: var(--card-dark);
}

.home .blog-section {
    background-color: #ffffff;


}


#contact {

    background-color: var(--stone-subtle);
}


html.dark #contact {
    background-color: var(--bg-dark);
}


/* --- Breadcrumbs --- */
.breadcrumbs {
    margin-bottom: 40px;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
}

.breadcrumbs-list .breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-list a {
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

html.dark .breadcrumbs-list a {
    color: #9ca3af;
}

.breadcrumbs-list a:hover {
    color: var(--purple);
}

.breadcrumbs-list .home-icon {
    width: 16px;
    height: 16px;
}

.breadcrumbs-list .active-crumb {
    color: var(--text-dark);
    font-weight: 600;
}

html.dark .breadcrumbs-list .active-crumb {
    color: var(--text-light);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '›';
    margin-right: 8px;
    color: #d1d5db;
}

html.dark .breadcrumb-item+.breadcrumb-item::before {
    color: #4b5563;
}

/* --- Page Header --- */
.page-header {
    border-bottom: 1px solid var(--fab-border);
    padding-bottom: 30px;
    margin-bottom: 50px;
}

.page-header .page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

html.dark .page-header .page-title {
    color: var(--text-light);
}

/* --- Posts Grid --- */
.posts-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 1.8rem;

    }
}

@media (min-width: 1024px) {

    #front-page .posts-grid,
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card.is-featured {
    @media (min-width: 768px) {
        grid-column: 1 / -1;
    }
}

/* --- Post Card --- */
.post-card {
    background-color: var(--fab-bg);
    border: 1px solid var(--fab-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--fab-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

html.dark .post-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.post-card .post-thumbnail a {
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-section .post-card .post-thumbnail img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-decoration: none;
}

html.dark .post-card .post-badge {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
}

.post-card .post-content {
    padding: 25px;
}

.post-card .post-meta {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}

html.dark .post-card .post-meta {
    color: #9ca3af;
}

.post-card .post-meta a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

.post-card .post-meta .meta-separator {
    margin: 0 8px;
}

.post-card .post-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.post-card .post-title a {
    color: var(--text-dark);
    background-image: linear-gradient(var(--purple), var(--purple));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
    text-decoration: none;
}

html.dark .post-card .post-title a {
    color: var(--text-light);
}

.post-card:hover .post-title a {
    background-size: 100% 2px;
}

.post-card.is-featured {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .post-card.is-featured {
        flex-direction: row;
        align-items: stretch;
    }

    .post-card.is-featured .post-thumbnail {
        flex: 1 1 55%;
    }

    .post-card.is-featured .post-thumbnail img {
        height: 320px !important;
        transform: scale(1.1);
    }

    .post-card.is-featured .post-content {
        flex: 1 1 45%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .post-card.is-featured .post-title {
        font-size: 1.3rem;
    }
}

/* --- Single Post Page --- */
.single-post-hero {
    text-align: center;
    /* max-width: 800px; */
    margin: 0 auto 50px auto;
}

.single-post-hero .entry-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .single-post-hero .entry-title {
        font-size: 1.23rem;

    }

}

.single-post-hero .entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    color: #6b7280;
    font-size: 0.9rem;
}

html.dark .single-post-hero .entry-meta {
    color: #9ca3af;
}

.entry-meta .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.entry-meta .author-name {
    font-weight: 600;
    color: var(--text-dark);
}

html.dark .entry-meta .author-name {
    color: var(--text-light);
}

.entry-meta .meta-separator {
    font-size: 1.2rem;
    line-height: 1;
}

.single-post-thumbnail {
    position: relative;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* max-height: 550px;
    object-fit: cover; */
    margin-bottom: 50px;
}

.single-post-thumbnail .post-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--purple);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.single-post-thumbnail .post-badge:hover {
    background-color: var(--purple-light);
}

.entry-content-wrapper {
    /* max-width: 800px; */
    margin: 0 auto;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

html.dark .entry-content {
    color: #d1d5db;
}

.entry-content>*+* {
    padding: 0.5rem;
}

.entry-content ul {
    margin: 1rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    font-size: 1.1rem;
}

html.dark .entry-content h2,
html.dark .entry-content h3 {
    color: var(--text-light);
}

.entry-content blockquote {
    padding-left: 1.5em;
    border-left: 3px solid var(--purple);
    font-style: italic;
    color: #6b7280;
}

html.dark .entry-content blockquote {
    color: #9ca3af;
}

/* --- Single Post Footer (Tags & Share) --- */
.single-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--fab-border);
    background: none;
}

@media (max-width:768px) {
    .single-footer {
        justify-content: center;

    }
}


html.dark .single-footer {
    background: none;
}

/* .post-tags {
    flex-grow: 1;
} */

.post-tags .tags-title {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-dark);
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-feature-settings: "case" on;
}

html.dark .post-tags .tags-title {
    color: var(--text-light);
}

.post-tags a {
    display: inline-block;
    background-color: var(--bg-light);
    border: 1px solid var(--fab-border);
    color: #6b7280;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 5px 5px 5px 0;
    transition: all 0.2s ease;
}

html.dark .post-tags a {
    background-color: var(--card-dark);
    color: #9ca3af;
}

.post-tags a:hover {
    background-color: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share .share-title {
    font-weight: 600;
    color: var(--text-dark);
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-feature-settings: "case" on;
}

html.dark .social-share .share-title {
    color: var(--text-light);
}

.social-share .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fab-border);
    border-radius: 50%;
    color: #6b7280;
    transition: all 0.2s ease;
}

html.dark .social-share .social-icon {
    color: #9ca3af;
}

.social-share .social-icon:hover {
    color: #fff;
}

.social-share .social-icon.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-share .social-icon.twitter:hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

.social-share .social-icon.linkedin:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
}

/* --- Post Navigation & Pagination --- */
.navigation.post-navigation,
.navigation.pagination {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--fab-border);
}

.navigation.post-navigation {
    max-width: 100%;
}

.navigation.pagination {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.navigation.post-navigation .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation.pagination .nav-links {
    justify-content: center;
    gap: 8px;
}

.page-numbers {
    padding: 10px 15px;
    border: 1px solid var(--fab-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

html.dark .page-numbers {
    color: var(--text-light);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.navigation.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .navigation.post-navigation .nav-links {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

.navigation.post-navigation a {
    display: block;
    padding: 25px;
    border: 1px solid var(--fab-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.navigation.post-navigation a:hover {
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

html.dark .navigation.post-navigation a:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.navigation.post-navigation .nav-title {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease;
    display: block;
    margin-top: 5px;
}

html.dark .navigation.post-navigation .nav-title {
    color: var(--text-light);
}

.navigation.post-navigation a:hover .nav-title {
    color: var(--purple);
}

.navigation.post-navigation .nav-previous {
    text-align: left;
}

.navigation.post-navigation .nav-next {
    text-align: right;
}

.navigation.post-navigation span:not(.nav-title) {
    font-size: 0.9rem;
    color: #6b7280;
}

html.dark .navigation.post-navigation span:not(.nav-title) {
    color: #9ca3af;
}


/* --- Blog Section "View All" Button --- */
.blog-section .view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.blog-section .btn.btn-primary {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--purple);
    border: none;
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
}



.blog-section .btn.btn-primary::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
}

.blog-section .btn.btn-primary::after {
    content: '→';
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.blog-section .btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    color: white;
}

.blog-section .btn.btn-primary:hover::before {
    left: 150%;
}

html.dark .blog-section .btn.btn-primary {
    background-color: var(--purple-light);
    color: var(--bg-dark);
}

html.dark .blog-section .btn.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
    color: var(--bg-dark);
}

/* ==========================================================================
           CTA Glass Section
           ========================================================================== */
.cta-glass-section {
    width: 100%;
    /* max-width: 950px; */
    /* background: rgb(17 24 39); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin: 80px auto;
    overflow: hidden;
}

.cta-glass-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 24px;
    z-index: -1;

    background: conic-gradient(from 0deg,
            rgba(124, 58, 237, 0) 0%,
            #fbbf24 10%,
            #10b981 25%,
            #3b82f6 50%,
            #a78bfa 75%,
            #7c3aed 90%,
            rgba(124, 58, 237, 0) 100%);

    filter: blur(50px);
    animation: neon-rotation 10s linear infinite;
}

.cta-glass-section::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 21px;
    z-index: -1;
    box-shadow: inset 0 0 15px rgba(124, 58, 237, 0.2);
}

@keyframes neon-rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

html.dark .cta-glass-section {
    background: rgba(31, 41, 55, 0.8);
}

html.dark .cta-glass-section::after {
    background: rgba(31, 41, 55, 0.8);
}

.cta-glass-content {
    flex: 1.5;
}

.cta-glass-content h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.3;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-glass-content p {
    font-size: 1.1rem;
    color: #e5e7eb;
    margin: 0 0 30px;
    max-width: 500px;
    line-height: 1.7;
}

.cta-glass-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    font-family: "FiraGO", 'Poppins', 'sans-serif';
    font-feature-settings: "case" on;
}

.cta-glass-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6);
}

.cta-glass-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    min-height: 250px;
}

.tech-icon-2 {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.tech-icon-2 svg {
    position: relative;
    z-index: 2;
    width: 150px;
    height: 150px;
    color: var(--purple-light);
    filter: drop-shadow(0 0 15px var(--purple-light));
}

.tech-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, rgba(167, 139, 250, 0) 65%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    from {
        transform: scale(0.9);
        opacity: 0.7;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

@media (max-width: 850px) {
    .cta-glass-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 40px;
        margin: 60px auto;
    }

    .cta-glass-visual {
        min-height: 220px;
    }

    .tech-icon {
        transform: scale(0.9);
    }

    .cta-glass-content h2 {
        font-size: 1.3rem;
    }

    .cta-glass-content p {
        max-width: 100%;
        font-size: 1rem;
    }

    .cta-glass-button {
        font-size: 1rem;
    }
}