@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Self-hosted font (optional): place the files in /fonts and the site will prefer local assets */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Global main background to prevent white gaps */
main {
    background-color: var(--bg-color);
}

:root {
    /* Palette inspired by the logo image */
    --bg-color: #0e2a47;      /* Deep navy background */
    --primary-color: #1976d2; /* Blue */
    --secondary-color: #0d47a1; /* Darker blue */
    --accent-color: #26c6da;  /* Cyan/teal */
    --accent-strong: #00acc1; /* Stronger cyan */
    --gradient-accent: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    --text-color: #333;
    --light-bg: #e3f2fd;  /* Lighter blue background */
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background-color: var(--bg-color);
}

body {
    line-height: 1.6;
    color: var(--white);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    color: var(--white);
    background: rgba(14, 42, 71, 0.55);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 300ms ease, box-shadow 300ms ease, transform 200ms ease;
}

/* Hide-on-scroll state */
header.hide { transform: translateY(-100%); }

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    transition: padding 200ms ease;
}

header.scrolled {
    background: rgba(14, 42, 71, 0.72);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

header.scrolled .container { padding: 10px 0; }

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo img { transition: transform 200ms ease, filter 200ms ease; }
.logo:hover img { transform: scale(1.04); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)); }

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    position: relative;
    color: var(--white);
    text-decoration: none;
    padding: 10px 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: color 200ms ease, background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
    background-color: rgba(38,198,218,0.12);
    box-shadow: inset 0 0 0 1px rgba(38,198,218,0.35);
}

/* Remove underline effect; use pill highlight instead */

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--accent-color);
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.lang-btn.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
}

.lang-btn:hover {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
}

/* Hero Section */
.hero {
    padding: 150px 0 110px;
    text-align: center;
    background: radial-gradient(60% 80% at 50% 10%, rgba(38,198,218,0.18) 0%, rgba(38,198,218,0) 60%),
                linear-gradient(135deg, #0b2e5a 0%, var(--primary-color) 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 34px;
    color: #cfe8ff;
}

/* Hero decorative animated orbs */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    will-change: transform;
}
.hero-orb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.35;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%),
                radial-gradient(circle at 60% 60%, rgba(38,198,218,0.35), rgba(38,198,218,0) 55%);
    animation: float 8s ease-in-out infinite;
}

.orb-1 { top: -40px; left: -60px; }
.orb-1::after { animation-delay: 0s; }
.orb-2 { bottom: -60px; right: -40px; }
.orb-2::after { animation-delay: 2s; }
.orb-3 { top: 20%; right: 10%; width: 160px; height: 160px; }
.orb-3::after { opacity: 0.28; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-12px) translateX(8px); }
}

/* Scroll cue at bottom of hero */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 14px;
    transform: translateX(-50%);
    opacity: 0.7;
    transition: opacity 260ms ease, transform 260ms ease;
}
.scroll-cue::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
    0% { transform: translate(-50%, 0); opacity: 1; }
    70% { transform: translate(-50%, 12px); opacity: 0.2; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

.scroll-cue.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none !important; }
}

/* Reveal on scroll */
.reveal { 
    opacity: 0; 
    transform: translateY(16px);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms ease, transform 600ms ease;
}

/* Secondary CTA */
.hero-ctas { display: inline-flex; gap: 12px; }
.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}
.cta-button.small { padding: 8px 18px; border-radius: 20px; font-weight: 600; }
.cta-button.secondary:hover {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
}

/* Features/Services Section */
.features {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Typography */
.about-text h2 {
    color: transparent;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    margin: 60px 0 25px;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 3px;
}

.about-text p {
    color: #d0e4ff;
    margin-bottom: 28px;
    line-height: 1.9;
    font-size: 1.15rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(38, 198, 218, 0.3);
    transition: all 0.3s ease;
}

.about-text p:hover {
    border-left-color: var(--accent-color);
    padding-left: 25px;
}

/* Image Styling */
.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 420px; /* Adjusted max-width for About image */
    margin: 0 auto; /* Center the image */
    height: auto;
    align-self: center; /* Align vertically in the grid */
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(14, 42, 71, 0.6), rgba(25, 118, 210, 0.3));
    mix-blend-mode: overlay;
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border-radius: 14px; /* Match parent border radius */
}

.about-image:hover::before {
    opacity: 0.4;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    aspect-ratio: 4/5;
    max-height: 600px; /* Limit maximum height */
}

.about-image:hover img {
    transform: scale(1.03); /* Slightly reduced scale on hover */
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 35px 0;
    display: grid;
    gap: 10px;
}

.features-list li {
    position: relative;
    padding: 16px 20px 16px 50px;
    margin: 0;
    color: #f0f6ff;
    font-size: 1.08rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.features-list li:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(8px);
    border-color: rgba(38, 198, 218, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.3em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(38, 198, 218, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(38, 198, 218, 0.2);
    transition: all 0.3s ease;
}

.features-list li:hover::before {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 0 4px rgba(38, 198, 218, 0.15);
}

/* ... */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.value-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
    border-color: rgba(38,198,218,0.28);
    background: rgba(255,255,255,0.08);
}

/* Shine sweep */
.value-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    transform: rotate(25deg) translateX(-120%);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transition: transform 700ms ease;
    pointer-events: none;
}
.value-card:hover::after {
    transform: rotate(25deg) translateX(140%);
}

.value-icon {
    font-size: 32px;
    margin-bottom: 10px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Values heading style */
.values .container > h2 {
    text-align: center;
    margin: 12px 0 26px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 180ms ease, box-shadow 200ms ease, filter 200ms ease, background 200ms ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* for ripple */
}

.cta-button:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }
.cta-button:active { transform: translateY(0) scale(0.98); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.cta-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(38,198,218,0.55), 0 10px 25px rgba(0, 0, 0, 0.2); }

/* Ripple element (created via JS) */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255,255,255,0.35);
    pointer-events: none;
    filter: blur(0.2px);
    animation: btn-ripple 600ms ease-out forwards;
    mix-blend-mode: screen;
}

@keyframes btn-ripple {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Language buttons get same polish */
.lang-btn { position: relative; overflow: hidden; }
.lang-btn:active { transform: scale(0.98); }
.lang-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(38,198,218,0.55); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-button,
  .lang-btn,
  .btn-ripple { transition: none !important; animation: none !important; }
}

/* Footer */
footer {
    background: var(--gradient-accent);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Page Header (inner pages) */
.page-header {
    padding: 140px 0 60px;
    background: radial-gradient(60% 80% at 50% 20%, rgba(25, 118, 210, 0.35) 0%, rgba(13, 71, 161, 0) 60%),
                linear-gradient(135deg, #0b2e5a 0%, var(--primary-color) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: var(--white);
}

.page-header p {
    color: #cfe8ff;
}

/* Services Detail */
.services-detail { 
    padding: 60px 0; 
}

.services-detail .service {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 50px 0;
    position: relative;
}

.services-detail .service-image {
    display: flex;
    justify-content: center;
}

.services-detail .service-image img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

/* Alternate layout for every other service */
.services-detail .service.alt .service-content { order: 2; }
.services-detail .service.alt .service-image { order: 1; }

/* Title row with icon */
.services-detail .service-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.services-detail .icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.services-detail .icon-chip svg { width: 22px; height: 22px; }

/* Number badge */
.services-detail .service-content { position: relative; }
.services-detail .service-badge {
    position: absolute;
    top: -16px;
    left: -16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #cfe8ff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* Feature chips */
.services-detail .service-features {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.services-detail .service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #e4f2ff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.services-detail .service-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.services-detail .service-features li:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(38,198,218,0.25);
}

/* Decorative media card */
.services-detail .media-card {
    position: relative;
    border-radius: 16px;
    padding: 10px;
    background: radial-gradient(60% 100% at 30% 20%, rgba(38,198,218,0.14) 0%, rgba(38,198,218,0) 60%),
                linear-gradient(135deg, rgba(13,71,161,0.6) 0%, rgba(25,118,210,0.35) 100%);
    box-shadow: 0 22px 48px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-4deg);
    transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .3s ease;
}
.services-detail .media-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(38,198,218,0.35), rgba(25,118,210,0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
.services-detail .media-card:hover {
    transform: perspective(1000px) rotateY(0) translateY(-4px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.34);
}
.services-detail .media-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Metrics (cards with gradient numerals) */
.metrics { padding: 20px 0 10px; }
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.metric {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.metric:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(38,198,218,0.25);
    box-shadow: 0 16px 34px rgba(0,0,0,0.26);
}
.metric-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.metric-label { margin-top: 6px; color: #d0e4ff; letter-spacing: .2px; }

/* Process timeline */
.process { padding: 20px 0 10px; }
.process-title {
    text-align: center;
    margin: 6px 0 22px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 22px;
    width: 2px;
    background: linear-gradient(180deg, rgba(38,198,218,0.2), rgba(25,118,210,0.45));
}
.step { position: relative; padding-left: 70px; margin-bottom: 22px; }
.step-number {
    position: absolute;
    left: 0; top: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
.step-content {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.16);
    transition: transform .2s ease, border-color .25s ease, background .25s ease;
}
.step-content:hover { transform: translateY(-2px); border-color: rgba(38,198,218,0.25); }
.step-content h3 { color: var(--accent-color); margin-bottom: 6px; }
.step-content p { color: #cfe8ff; }

/* Contact Section */
.contact-section {
    padding: 60px 0 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.06);
}

.contact-info h2 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.contact-info p {
    color: #d0e4ff;
}

.contact-method { 
    margin-top: 20px; 
    padding-top: 15px; 
    border-top: 1px dashed rgba(255,255,255,0.15); 
}

.contact-method h3 { 
    color: var(--primary-color); 
    margin-bottom: 6px; 
}

.social-links { 
    display: flex; 
    gap: 12px; 
    margin-top: 20px; 
}

.social-icon { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    color: white; 
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); 
    box-shadow: 0 6px 14px rgba(0,0,0,0.18); 
    transition: transform .2s ease, filter .2s ease; 
}

/* Ensure inline SVG icons fit nicely inside circular buttons */
.social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.social-icon:hover { 
    transform: translateY(-3px); 
    filter: brightness(1.1); 
}

.contact-form { 
    background: rgba(255,255,255,0.08); 
    border-radius: 12px; 
    padding: 30px; 
    border: 1px solid rgba(255,255,255,0.08); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); 
}

.contact-form h2 { 
    margin-bottom: 10px; 
}

.form-group { 
    margin-bottom: 16px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 6px; 
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 12px 14px; 
    border-radius: 10px; 
    border: 1px solid rgba(255,255,255,0.18); 
    background: rgba(255,255,255,0.06); 
    color: var(--white); 
    outline: none; 
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; 
}

.form-group input::placeholder, 
.form-group textarea::placeholder { 
    color: #b7d1ff; 
}

.form-group input:focus, 
.form-group textarea:focus { 
    border-color: var(--accent-color); 
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.18); 
    background: rgba(255,255,255,0.1); 
}

.checkbox-group { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
}

.checkbox-group input[type="checkbox"] { 
    margin-top: 4px; 
    transform: scale(1.1); 
}

.consent-label { 
    color: #d0e4ff; 
}

.success-message { 
    margin-top: 16px; 
    padding: 12px 14px; 
    border-radius: 8px; 
    background: rgba(0, 200, 83, 0.12); 
    color: #b9ffcf; 
    border: 1px solid rgba(0, 200, 83, 0.35); 
}

.error-message { 
    margin-top: 6px; 
    color: #ffb3b3; 
    font-size: 0.9rem; 
}

/* Map */
.map-container { 
    width: 100%; 
    height: 450px; 
    margin-top: 30px; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.18); 
}

.map-container iframe { 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

/* Mobile Menu */
.mobile-menu {
    display: none; /* hidden by default (desktop/tablet) */
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    place-items: center;
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 200ms ease, transform 150ms ease;
}
.mobile-menu:hover { background: rgba(255,255,255,0.1); }

/* Animated hamburger -> X */
.mobile-menu .bar,
.mobile-menu .bar::before,
.mobile-menu .bar::after {
    display: block;
    position: relative;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 300ms ease, opacity 200ms ease, background 200ms ease;
}
.mobile-menu .bar::before,
.mobile-menu .bar::after {
    content: '';
    position: absolute;
    left: 0;
}
.mobile-menu .bar::before { top: -6px; }
.mobile-menu .bar::after { top: 6px; }

.mobile-menu.active .bar { transform: rotate(45deg); }
.mobile-menu.active .bar::before { transform: rotate(-90deg) translateX(0); top: 0; }
.mobile-menu.active .bar::after { opacity: 0; transform: translateY(0); }

/* Slide-in mobile panel already defined; add glass effect */
@media (max-width: 768px) {
  nav { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* Overlay behind the slide-in nav */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    z-index: 900; /* below header(1000) but above content */
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* Prevent background scroll when menu is open */
body.menu-open { overflow: hidden; }

/* Header CTA placement */
.header-cta { display: none; margin-left: 12px; }
@media (min-width: 769px) {
  .header-cta { display: inline-block; }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1200;
    box-shadow: 0 0 8px rgba(38,198,218,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu { display: grid; }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        transition: transform 300ms ease, left 300ms ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 20px;
        gap: 14px;
        text-align: center;
    }

    nav ul li {
        margin: 6px 0;
    }

    nav ul li a {
        font-size: 1.5rem;
        padding: 12px 18px;
        border-radius: 14px;
        position: relative;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 400ms ease, transform 400ms ease, color 200ms ease, background-color 200ms ease;
    }

    nav.active ul li a { opacity: 1; transform: translateY(0); }
    nav.active ul li:nth-child(1) a { transition-delay: 60ms; }
    nav.active ul li:nth-child(2) a { transition-delay: 140ms; }
    nav.active ul li:nth-child(3) a { transition-delay: 220ms; }
    nav.active ul li:nth-child(4) a { transition-delay: 300ms; }

    nav ul li a::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
        border-radius: 2px;
        transform: translateX(-50%);
        transition: width 220ms ease;
        opacity: 0.9;
    }
    nav ul li a:hover::after,
    nav ul li a:focus-visible::after,
    nav ul li a.active::after { width: 60%; }

    nav ul li a:hover,
    nav ul li a:focus-visible { transform: translateY(-2px); }

    @media (prefers-reduced-motion: reduce) {
        nav ul li a { transition: none !important; transform: none !important; }
        nav ul li a::after { transition: none !important; }
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }
    /* Increase selector specificity so it overrides the desktop grid on mobile */
    .services-detail .service {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
    }
    
    /* Remove alternating layout on mobile - always content first, then image */
    .services-detail .service.alt .service-content { order: 1; }
    .services-detail .service.alt .service-image { order: 2; }
    
    /* Ensure the media image spans full width when stacked */
    .services-detail .service-image { width: 100%; }
    
    /* Adjust badge position for mobile */
    .services-detail .service-badge {
        top: -12px;
        left: -12px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    /* Make feature list single column on mobile */
    .services-detail .service-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Adjust service content padding for mobile */
    .services-detail .service-content {
        padding: 0 5px;
    }
    
    /* Make images smaller on mobile for better fit */
    .services-detail .service-image img {
        max-width: 100%;
        max-height: 250px;
        object-fit: cover;
    }
    
    /* Reduce media card padding on mobile */
    .services-detail .media-card {
        padding: 8px;
    }
    
    /* Adjust service title for mobile */
    .services-detail .service-title {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .services-detail .icon-chip {
        width: 32px;
        height: 32px;
    }
    .services-detail .icon-chip svg { width: 18px; height: 18px; }

    .timeline::before {
        left: 12px;
    }

    .step {
        padding-left: 50px;
    }

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

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

    .page-header { 
        padding: 120px 0 40px; 
    }
}

/* Portfolio Section */
.portfolio-section {
    padding: 60px 0 80px;
}

.portfolio-section h2 {
    text-align: center;
    margin: 0 0 15px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 800;
}

.portfolio-intro {
    text-align: center;
    color: #cfe8ff;
    margin-bottom: 40px;
    font-size: 1.15rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Horizontally Scrollable Container */
.portfolio-scroll-container {
    position: relative;
    margin-bottom: 30px;
}

.portfolio-tabs {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.portfolio-tabs::-webkit-scrollbar {
    height: 8px;
}

.portfolio-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.portfolio-tabs::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.portfolio-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--accent-strong);
}

/* Project Cards */
.project-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(38, 198, 218, 0.3);
}

/* Project Image */
.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 42, 71, 0.8) 0%, rgba(25, 118, 210, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    padding: 12px 28px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Project Info */
.project-info {
    padding: 22px;
}

.project-info h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.project-info p {
    color: #d0e4ff;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: rgba(38, 198, 218, 0.15);
    border: 1px solid rgba(38, 198, 218, 0.3);
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tag:hover {
    background: rgba(38, 198, 218, 0.25);
    border-color: rgba(38, 198, 218, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    color: #b7d1ff;
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(60% 80% at 50% 50%, rgba(25, 118, 210, 0.3) 0%, rgba(13, 71, 161, 0) 60%);
}

.cta-section h2 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.cta-section p {
    color: #cfe8ff;
    margin-bottom: 30px;
    font-size: 1.15rem;
}

/* Mobile Responsive for Portfolio */
@media (max-width: 768px) {
    .portfolio-section h2 {
        font-size: 2rem;
    }
    
    .portfolio-intro {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .project-card {
        flex: 0 0 280px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-info {
        padding: 18px;
    }
    
    .project-info h3 {
        font-size: 1.15rem;
    }
    
    .project-info p {
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* ============================================
   PREMIUM SERVICES SECTION - Glassmorphic Grid
   ============================================ */

/* Section Container */
.services-premium {
    padding: 80px 0 60px;
    position: relative;
    background: radial-gradient(60% 80% at 50% 30%, rgba(25, 118, 210, 0.15) 0%, rgba(13, 71, 161, 0) 60%);
}

/* Premium Typography Hierarchy */
.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-subheadline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(38, 198, 218, 0.4);
}

.services-title-gradient {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    /* Premium text gradient: white to muted silver/slate */
    background: linear-gradient(135deg, #FFFFFF 0%, #cfe8ff 50%, #a0c4e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.services-intro {
    font-size: 1.1rem;
    color: #cfe8ff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Modern CSS Grid Layout - Equal Width Cards */
.services-grid-premium {
    display: grid;
    /* Force all 3 cards to have exactly equal width */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Ensure all cards stretch to same bottom baseline */
    align-items: stretch;
}

/* Glassmorphic Service Cards */
.service-card {
    background: rgba(14, 42, 71, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    /* Glassmorphism: backdrop-filter blur */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Hardware-accelerated transitions */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-color 0.4s ease,
                background 0.4s ease;
    will-change: transform, box-shadow;
    /* Remove any featured/secondary span classes - all cards equal */
}

/* Card Inner Container */
.service-card-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* SVG Icon Wrapper with Neon Glow */
.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    /* Soft, semi-transparent neon blue background accent */
    background: rgba(38, 198, 218, 0.12);
    border: 1px solid rgba(38, 198, 218, 0.25);
    /* Subtle glow effect */
    box-shadow: 0 0 20px rgba(38, 198, 218, 0.15),
                inset 0 0 20px rgba(38, 198, 218, 0.05);
    transition: all 0.3s ease;
}

.service-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    stroke-width: 1.5;
}

/* Card Title */
.service-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 14px;
    line-height: 1.4;
    /* Georgian font fallback setup */
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Georgian', 'BPG Glaho', sans-serif;
    /* Ensure text flows naturally without breaking */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Card Description */
.service-card-desc {
    font-size: 0.95rem;
    color: #cfe8ff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
    /* Ensure text flows naturally without breaking */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Card Features List */
.service-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.service-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #d0e4ff;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
    /* Ensure text flows naturally */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card-features li::before {
    content: '→';
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1em;
    /* Align arrow with first line of text */
    flex-shrink: 0;
    line-height: 1.5;
}

/* Desktop Micro-Interactions - Hover Effects */
.service-card:hover {
    /* Subtle lift up */
    transform: translateY(-8px);
    /* Soft, high-tech neon blue glow on border and box-shadow */
    border-color: rgba(38, 198, 218, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35),
                0 0 30px rgba(38, 198, 218, 0.2),
                inset 0 0 30px rgba(38, 198, 218, 0.05);
    background: rgba(14, 42, 71, 0.55);
}

.service-card:hover .service-icon-wrapper {
    /* Icon wrapper glows more intensely on hover */
    background: rgba(38, 198, 218, 0.18);
    border-color: rgba(38, 198, 218, 0.4);
    box-shadow: 0 0 30px rgba(38, 198, 218, 0.25),
                inset 0 0 30px rgba(38, 198, 218, 0.1);
    transform: scale(1.05);
}

/* Tablet Responsive (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .services-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* On tablet, first card spans full width, others stack */
    .service-card:first-child {
        grid-column: span 2;
    }

    .service-card:not(:first-child) {
        grid-column: span 1;
    }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
    .services-premium {
        padding: 50px 0 40px;
    }

    .services-header {
        margin-bottom: 35px;
    }

    .services-subheadline {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 12px;
    }

    .services-title-gradient {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .services-intro {
        font-size: 1rem;
        padding: 0 15px;
        line-height: 1.6;
    }

    /* Grid collapses to single-column vertical stack */
    .services-grid-premium {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* All cards span full width on mobile */
    .service-card {
        grid-column: span 1;
    }

    /* Thumb-friendly: Increased padding for better touch targets */
    .service-card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    /* Slightly smaller icon wrapper on mobile */
    .service-icon-wrapper {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .service-icon {
        width: 28px;
        height: 28px;
    }

    /* Adjusted typography for mobile */
    .service-card-title {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .service-card-desc {
        font-size: 0.95rem;
        margin-bottom: 16px;
        line-height: 1.6;
    }

    .service-card-features li {
        font-size: 0.9rem;
    }

    /* Reduced hover lift on mobile for better UX */
    .service-card:hover {
        transform: translateY(-4px);
    }

    /* Ensure no horizontal scroll overflow */
    .service-card-inner {
        width: 100%;
        max-width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
