/* ============================================
   Portfolio - Modern Premium Design
   ============================================ */
   
         
   @font-face {
  font-family: 'b1';
  src: url(../../fonts/font-1.ttf);
}

@font-face {
  font-family: 'abrama';
  src: url(../../fonts/abrama.ttf);
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #020617;
    --accent: #22d3ee;
    --accent-2: #38bdf8;
    --bg: #020617;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-elevated: #0f172a;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(56, 189, 248, 0.12);
    --success: #34d399;
    --error: #fb7185;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --font: 'abrama', 'Noto Sans Georgian', system-ui, sans-serif;
    --header-h: 72px;
    --glass: blur(18px) saturate(1.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    max-width: 100%;
    overflow-x: hidden;
}
img, video, iframe, svg, table {
    max-width: 100%;
}
input, select, textarea, button {
    font-size: 16px;
    max-width: 100%;
}

html { scroll-behavior: smooth; }

/* Custom Scrollbar — blue / cyan */
html {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0f172a;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #22d3ee);
    border-radius: 999px;
    border: 2px solid #020617;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa, #22d3ee);
}


body {
    font-family: var(--font);
    background:
        radial-gradient(1000px 500px at 15% -5%, rgba(37, 99, 235, 0.22), transparent 55%),
        radial-gradient(800px 450px at 90% 5%, rgba(34, 211, 238, 0.12), transparent 50%),
        radial-gradient(700px 400px at 50% 100%, rgba(59, 130, 246, 0.1), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(11, 15, 26, 0.95);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(59, 130, 246, 0.15);
}

.nav-link i { font-size: 0.85rem; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-btn:hover { border-color: var(--primary); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    overflow: hidden;
    z-index: 100;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.lang-option:hover,
.lang-option.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Side Menu (Off-Canvas) ========== */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
}

.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg-card);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

.side-menu.open { transform: translateX(0); }

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.side-logo {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.side-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--transition);
}

.side-close:hover { background: var(--primary); }

.side-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: all var(--transition);
}

.side-nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.side-nav-item:hover,
.side-nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text);
}

.side-nav-item.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(34,211,238,0.1));
    color: var(--primary-light);
}

.side-lang {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.side-lang-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-lang-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-lang-btn {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    transition: all var(--transition);
}

.side-lang-btn:hover,
.side-lang-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text);
}

/* ========== Main Content ========== */
.main-content {
    padding-top: var(--header-h);
    min-height: 100vh;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 45%, #22d3ee 140%);
    background-size: 160% 160%;
    color: #fff;
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.4);
    animation: btnGradient 6s ease infinite;
}

@keyframes btnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.btn-white {
    background: #fff;
    color: var(--secondary);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ========== Hero — Developer Premium ========== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: floatGlow 12s ease-in-out infinite;
}

.hero-glow-1 {
    width: 420px;
    height: 420px;
    background: rgba(59, 130, 246, 0.5);
    top: -10%;
    left: 15%;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 320px;
    height: 320px;
    background: rgba(34, 211, 238, 0.35);
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

.hero-glow-3 {
    width: 240px;
    height: 240px;
    background: rgba(168, 85, 247, 0.3);
    top: 40%;
    left: 55%;
    animation-delay: -7s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.08); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.floating-code {
    position: absolute;
    inset: 0;
}

.code-chip {
    position: absolute;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.75rem;
    padding: 8px 14px;
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    color: #93c5fd;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    opacity: 0;
    animation: chipFloat 14s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.code-chip:nth-child(1) { top: 18%; left: 8%; }
.code-chip:nth-child(2) { top: 28%; right: 10%; }
.code-chip:nth-child(3) { bottom: 30%; left: 6%; }
.code-chip:nth-child(4) { bottom: 22%; right: 8%; }
.code-chip:nth-child(5) { top: 55%; left: 12%; }
.code-chip:nth-child(6) { top: 45%; right: 14%; }

@keyframes chipFloat {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 0.85; transform: translateY(0); }
    50% { opacity: 0.85; transform: translateY(-12px); }
    90% { opacity: 0.4; transform: translateY(-24px); }
    100% { opacity: 0; transform: translateY(-30px); }
}

@media (max-width: 768px) {
    .code-chip { display: none; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #34d399;
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.1rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.title-line {
    background: linear-gradient(135deg, #fff 0%, #bfdbfe 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmerText 6s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}

.hero-tech span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all var(--transition);
}

.hero-tech span:hover {
    color: var(--primary-light);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
    animation: glowShift 4s ease infinite;
}

@keyframes glowShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-hint {
    display: flex;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    justify-content: center;
    padding-top: 8px;
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 4px;
    animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.4; }
}

/* Entrance animations */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--i, 0) * 0.08s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Sections ========== */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header.center {
    flex-direction: column;
    text-align: center;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, #93c5fd 60%, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 8px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.section-link:hover { gap: 12px; }

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========== Project Cards ========== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.project-card {
    background: linear-gradient(180deg, rgba(22, 30, 48, 0.9), rgba(12, 17, 28, 0.95));
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18), var(--shadow-lg);
    border-color: rgba(96, 165, 250, 0.35);
}

.project-card-link { display: block; }

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-elevated);
}

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

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}

.project-placeholder.large { min-height: 320px; }

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.project-body { padding: 20px; }

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
        width: max-content;

    padding: 4px 10px;
  background: rgb(72 147 174);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 500;
}

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card {
    background: linear-gradient(160deg, rgba(24, 32, 52, 0.95), rgba(12, 16, 28, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.12), transparent 50%, rgba(34,211,238,0.08));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
}

.service-card > * { position: relative; z-index: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(34,211,238,0.1));
    border-radius: 14px;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta-section { padding: 60px 0; }

.cta-box {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(59,130,246,0.25), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(34,211,238,0.15), transparent 50%),
        linear-gradient(135deg, rgba(22,30,48,0.95), rgba(12,17,28,0.98));
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: var(--radius);
    padding: 56px 32px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.cta-box h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ========== Page Header ========== */
.page-header {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, rgba(59,130,246,0.08), transparent);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a:hover { color: var(--primary-light); }

.project-category-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========== Project Detail ========== */
.project-detail-grid {
    display: grid;
    gap: 40px;
}

.project-main-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.project-main-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-gallery h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.project-content h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.content-text {
    color: var(--text-muted);
    line-height: 1.8;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.meta-item {
    margin-bottom: 20px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.meta-value {
    font-weight: 500;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* ========== Filters ========== */
.projects-filters {
    margin-bottom: 32px;
}

.search-form { margin-bottom: 20px; }

.search-input-wrap {
    position: relative;
    max-width: 360px;
}

.search-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
}

.search-input:focus { border-color: var(--primary); }

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ========== About ========== */
.about-grid {
    display: grid;
    gap: 40px;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-skills,
.about-experience,
.about-achievements {
    margin-bottom: 28px;
}

.about-skills h3,
.about-experience h3,
.about-achievements h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    gap: 40px;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.contact-details li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-details i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-form-wrap {
    background: linear-gradient(180deg, rgba(22, 30, 48, 0.9), rgba(12, 17, 28, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.form-control:focus { border-color: var(--primary); }

textarea.form-control { resize: vertical; min-height: 120px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========== Footer ========== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--primary-light); }

.footer-links li,
.footer-contact li { margin-bottom: 10px; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== Utilities ========== */
.no-data, .no-data-full {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    grid-column: 1 / -1;
}

.no-data-full i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* ========== Responsive ========== */
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
    
    .desktop-nav { display: flex; }
    
    .about-grid {
        grid-template-columns: 320px 1fr;
        align-items: start;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .project-detail-grid {
        grid-template-columns: 1fr 320px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .services-grid.large {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid.large .service-card {
        padding: 40px;
    }
}

/* ========== Tablet polish ========== */
@media (min-width: 768px) and (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding: 64px 24px 90px; }
    .section { padding: 64px 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 280px 1fr; }
    .project-detail-grid { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Page header glow */
.page-header {
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(640px, 90%);
    height: 180px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.2), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }

.page-title {
    background: linear-gradient(135deg, #fff 20%, #93c5fd 70%, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(34,211,238,0.12));
    box-shadow: 0 0 0 1px rgba(96,165,250,0.35);
}

.site-footer {
    background: linear-gradient(180deg, transparent, rgba(10,14,24,0.9));
}

.form-control:focus {
    border-color: rgba(96,165,250,0.55);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Hero buttons — no heavy glow on mobile */
@media (max-width: 768px) {
    .btn-glow::after { display: none !important; }
    .btn-primary {
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
        animation: none !important;
    }
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}


/* Logo image */
.logo-img {
    display: block;
    max-height: 40px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.side-logo .logo-img { max-height: 32px; }

/* Account layout + responsive table */
.account-layout {
    display: grid;
    gap: 28px;
}
@media (min-width: 900px) {
    .account-layout {
        grid-template-columns: 320px 1fr;
        align-items: start;
    }
}
.account-heading {
    margin-bottom: 16px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.account-field { margin-bottom: 14px; }
.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.account-product-link { color: var(--primary-light); }
.account-product-link:hover { text-decoration: underline; }

.account-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.account-table {
    width: 100%;
    border-collapse: collapse;
}
.account-table th {
    padding: 12px 14px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(0,0,0,0.2);
}
.account-table td {
    padding: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .account-table thead { display: none; }
    .account-table,
    .account-table tbody,
    .account-table tr,
    .account-table td {
        display: block;
        width: 100%;
    }
    .account-table tr {
        padding: 14px 16px;
        border-top: 1px solid var(--border);
    }
    .account-table tr:first-child { border-top: none; }
    .account-table td {
        padding: 6px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
    }
    .account-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.78rem;
        font-weight: 600;
        flex-shrink: 0;
    }
    .account-table td:last-child {
        padding-top: 10px;
        margin-top: 6px;
        border-top: 1px dashed var(--border);
    }
}

/* Admin tables mobile scroll already exists; improve a bit */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
