/* =========================================
   Youssef Ahmed - Portfolio Stylesheet
   ========================================= */

/* --- Variables --- */
:root {
    /* Fonts */
    --font-primary: 'Inter', sans-serif;

    /* Light Theme Colors */
    --color-bg-light: #f8fafc;
    --color-bg-alt-light: #f1f5f9;
    --color-surface-light: rgba(255, 255, 255, 0.7);
    --color-text-light: #0f172a;
    --color-text-muted-light: #475569;
    --color-border-light: rgba(226, 232, 240, 0.6);
    
    /* Primary brand colors */
    --color-primary: #00f2fe;
    --color-primary-hover: #4facfe;
    --color-secondary: #4facfe;

    /* Default Theme (Dark Mode) */
    --color-bg: #0a0a10;
    --color-bg-alt: #12121a;
    --color-surface: rgba(30, 41, 59, 0.6);
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(51, 65, 85, 0.5);
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Smooth Edges */
    --border-radius-sm: 16px;
    --border-radius-md: 24px;
    --border-radius-lg: 32px;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --color-bg: var(--color-bg-light);
    --color-bg-alt: var(--color-bg-alt-light);
    --color-surface: var(--color-surface-light);
    --color-text: var(--color-text-light);
    --color-text-muted: var(--color-text-muted-light);
    --color-border: var(--color-border-light);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Dark mode: logo appears pure WHITE */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .footer-logo .logo-img {
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

/* Light mode: logo appears pure BLACK */
[data-theme="light"] .logo-img,
[data-theme="light"] .footer-logo .logo-img {
    filter: brightness(0);
    transition: filter 0.4s ease;
}


/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    /* Dynamic navbar offset — kept as CSS var so JS can read it too */
    --navbar-height: 80px;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    /* Ambient glows live on the body — never clipped by any section boundary */
    background-image:
        radial-gradient(ellipse 700px 600px at 92% 12%, rgba(0, 242, 254, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 600px 500px at 12% 22%, rgba(79, 172, 254, 0.07) 0%, transparent 65%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* --- Layout Utility --- */
.section {
    padding: 100px max(5%, calc((100% - 1280px) / 2));
    width: 100%;
    /* scroll-margin-top ensures anchor jumps AND JS scrollIntoView land below the fixed navbar.
       Must match --navbar-height. Updated in JS for actual measured navbar height. */
    scroll-margin-top: 80px;
}

/* NOTE: content-visibility: auto was removed — it causes sections to report wrong offsetTop
   before they enter the viewport, which breaks first-click scroll position on mobile. */

.bg-alt {
    background: linear-gradient(
        to bottom,
        var(--color-bg) 0%,
        var(--color-bg-alt) 7%,
        var(--color-bg-alt) 93%,
        var(--color-bg) 100%
    );
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

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

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

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 16, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    /* No hard border — bottom fades via box-shadow */
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 120px; /* Adjusted to fit the calligraphic logo */
    height: 50px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Dark mode: pure white calligraphy */
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.04);
}

.logo:hover .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--color-primary));
}

/* Light mode: pure BLACK calligraphy */
[data-theme="light"] .logo-img {
    filter: brightness(0);
}

[data-theme="light"] .logo:hover .logo-img {
    filter: brightness(0) drop-shadow(0 0 6px rgba(0, 0, 0, 0.2));
}

/* Footer logo to match */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 110px;
    height: 45px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.footer-logo .logo-img {
    /* Dark mode: pure white */
    filter: brightness(0) invert(1);
}

.footer-logo:hover {
    transform: scale(1.04);
}

.footer-logo:hover .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--color-primary));
}

/* Light mode: pure BLACK */
[data-theme="light"] .footer-logo .logo-img {
    filter: brightness(0);
}

[data-theme="light"] .footer-logo:hover .logo-img {
    filter: brightness(0) drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
}

#theme-toggle:hover {
    color: var(--color-primary);
}

/* --- Language Toggle Button --- */
#lang-toggle {
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    font-family: var(--font-primary);
}

#lang-toggle:hover {
    background: var(--color-primary);
    color: #0a0a10;
}

/* ===========================================
   RTL / Arabic Language Support
   =========================================== */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

[dir="rtl"] .nav-container,
[dir="rtl"] .nav-links,
[dir="rtl"] .hero-cta,
[dir="rtl"] .stats-grid,
[dir="rtl"] .skills-grid,
[dir="rtl"] .services-container,
[dir="rtl"] .contact-container,
[dir="rtl"] .footer-content,
[dir="rtl"] .dashboard-content,
[dir="rtl"] .auth-switch-links {
    direction: rtl;
}

[dir="rtl"] .about-container {
    direction: rtl;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 20px;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 60px;
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: 11px;
}

[dir="rtl"] .timeline-content ul {
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .section-header .line {
    margin: 0 auto;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .skill-list li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .mobile-nav {
    text-align: right;
}

[dir="rtl"] .stat-label,
[dir="rtl"] .stat-number {
    text-align: center;
}

[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .back-to-top {
    margin-left: 0;
}

[dir="rtl"] .auth-switch-links {
    flex-direction: row-reverse;
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 15px 0;
    font-weight: 500;
    /* Soft separator using box-shadow instead of border */
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.mobile-nav a:last-child {
    box-shadow: none;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    /* No overflow:hidden — ambient glows now live on the body, no clipping needed */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.greeting {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.intro {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Hero Image Section */
.hero {
    justify-content: space-between;
    gap: 40px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    max-width: 480px;
    padding: 40px 20px;
}

/* ── Profile Showcase ───────────────────────────────── */
.profile-showcase {
    position: relative;
    width: 340px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glowing animated gradient ring */
.profile-ring {
    position: relative;
    width: 300px;
    height: 380px;
    border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), #a78bfa, var(--color-primary));
    background-size: 300% 300%;
    animation: ringGradient 6s ease infinite;
    padding: 3px;
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.25),
                0 0 80px rgba(0, 242, 254, 0.10);
    transition: box-shadow 0.5s ease;
}

.profile-ring:hover {
    box-shadow: 0 0 55px rgba(0, 242, 254, 0.40),
                0 0 110px rgba(0, 242, 254, 0.18);
}

@keyframes ringGradient {
    0%   { background-position: 0% 50%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
    33%  { background-position: 100% 50%; border-radius: 55% 45% 45% 55% / 45% 60% 40% 55%; }
    66%  { background-position: 50% 0%; border-radius: 48% 52% 60% 40% / 52% 48% 55% 45%; }
    100% { background-position: 0% 50%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
}

.profile-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.95) contrast(1.05);
    transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.profile-ring:hover .hero-profile-img {
    filter: brightness(1.05) contrast(1.08);
    transform: scale(1.04);
}

/* ── Decorative Geometric Corner Accents ────────────── */
.geo-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: var(--color-primary);
    border-style: solid;
    opacity: 0.45;
    pointer-events: none;
}

.geo-accent-tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
    animation: accentPulse 3s ease-in-out infinite;
}

.geo-accent-br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
    animation: accentPulse 3s ease-in-out infinite 1.5s;
}

@keyframes accentPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%       { opacity: 0.75; transform: scale(1.08); }
}

/* ── Status Badge ───────────────────────────────────── */
.status-badge {
    position: absolute;
    bottom: -12px;
    left: -10px;
    background: rgba(10, 10, 16, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    z-index: 10;
    transition: var(--transition);
}

[data-theme="light"] .status-badge {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #25d366;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px #25d366;
    animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── Floating Skill Chip ────────────────────────────── */
.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    white-space: nowrap;
    transition: var(--transition);
}

.float-chip-top {
    top: -10px;
    right: -10px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.30);
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.12);
    animation: floatChip 4s ease-in-out infinite;
}

[data-theme="light"] .float-chip-top {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

.float-chip i {
    font-size: 0.7rem;
}

@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Hide legacy shapes */
.shape,
.shape-1,
.shape-2 {
    display: none;
}



/* --- About Section --- */
.about {
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    /* Soft glowing outline instead of a hard border */
    border-radius: calc(var(--border-radius-lg) + 6px);
    background: transparent;
    box-shadow: 0 0 0 1.5px rgba(0, 242, 254, 0.25), 0 0 40px rgba(0, 242, 254, 0.12);
    z-index: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(0,242,254,0.3), var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
}

.skill-category-card {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), var(--shadow-sm);
    transition: var(--transition);
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(0,242,254,0.2), var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.skill-category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.skill-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-muted);
}

.skill-list li i {
    color: var(--color-primary);
    margin-top: 4px;
    font-size: 0.9rem;
}

.skill-list li.note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
    margin-top: -8px;
    margin-left: 24px;
}

/* --- Services Section --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 0 1px rgba(0,242,254,0.3), var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.design-style-card {
    background: linear-gradient(145deg, var(--color-surface), rgba(0,242,254,0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), var(--shadow-md);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.design-style-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

/* --- Projects Section --- */
.projects-grid {
    column-count: 3;
    column-gap: 30px;
}

@media screen and (max-width: 992px) {
    .projects-grid {
        column-count: 2;
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        column-count: 1;
        column-gap: 20px;
    }
}

.project-card {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    display: inline-flex;
    flex-direction: column;
    break-inside: avoid;
    margin-bottom: 30px;
    width: 100%;
    /* PERF: scope paint to card boundary so hover repaints don't cascade */
    contain: layout style;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 0 1px rgba(0,242,254,0.25), var(--shadow-lg), var(--shadow-glow);
}

img.project-img {
    height: auto;
    width: 100%;
    object-fit: cover;
    display: block;
    /* box-shadow removed — painting it during scroll caused jank */
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background-color: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* --- Experience Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    /* Gradient vertical line — fades at top and bottom */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 242, 254, 0.2) 10%,
        rgba(0, 242, 254, 0.2) 90%,
        transparent 100%
    );
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border: 4px solid var(--color-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-content {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 0 0 1px rgba(0,242,254,0.2), var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-company {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.timeline-content li {
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* --- Objective Section --- */
.objective-card {
    background: linear-gradient(135deg, var(--color-surface), rgba(0, 242, 254, 0.04));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(0,242,254,0.15), var(--shadow-glow);
}

.objective-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.objective-card h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.objective-card p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1), 0 0 0 1px rgba(0, 242, 254, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user i {
    font-size: 2.5rem;
    color: var(--color-primary);
    opacity: 0.8;
}

.review-user h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.review-user span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.review-stars {
    color: #ffb400; /* Gold */
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 20px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: right;
}


/* --- Contact Section --- */
.contact-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-text);
    overflow-wrap: anywhere; /* Allows long text like emails to break and prevent horizontal scroll */
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.contact-item:hover {
    color: var(--color-primary);
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: transparent;
}

.social-icon.fb:hover { background-color: #1877F2; }
.social-icon.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.tg:hover { background-color: #0088cc; }
.social-icon.wa:hover { background-color: #25D366; }
.social-icon.pi:hover { background-color: #E60023; }

.contact-form-container {
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* --- Footer --- */
footer {
    background: linear-gradient(
        to bottom,
        var(--color-bg) 0%,
        var(--color-surface) 15%,
        var(--color-surface) 100%
    );
    padding: 30px 5%;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}



.footer-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background-color: var(--color-primary-hover);
}

/* --- Animations --- */
/* PERF: only animating compositor-friendly properties (opacity + transform).
   will-change is applied via JS while element is animating, then removed. */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: transform, opacity; /* set upfront; JS removes after visible */
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Projects grid: all cards reveal instantly together — no stagger */
.projects-grid.fade-up,
.projects-grid.fade-up.delay-1 {
    transition-delay: 0s;
}

/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .image-frame {
        max-width: 350px;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 80px 5%;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding-top: 100px;
        min-height: auto;
    }
    
    .hero-content {
        margin: 0 auto;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
        max-width: 420px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Responsive adjustment for profile showcase on tablets */
    .profile-showcase {
        width: 280px;
        height: 350px;
    }
    
    .profile-ring {
        width: 250px;
        height: 315px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce card paddings on mobile to prevent content overflow */
    .contact-info,
    .contact-form-container,
    .service-card,
    .skill-category-card,
    .timeline-content {
        padding: 25px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -9px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 60px 5%;
    }

    .name {
        font-size: 2.2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    /* Small screens profile showcase adjustments */
    .profile-showcase {
        width: 230px;
        height: 290px;
    }
    
    .profile-ring {
        width: 200px;
        height: 255px;
    }
    
    .float-chip-top {
        font-size: 0.62rem;
        padding: 5px 10px;
    }
    
    .status-badge {
        bottom: 12px;
        left: 12px;
        padding: 4px 10px;
        font-size: 0.65rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .objective-card {
        padding: 30px 20px;
    }

    /* Adjust contact item gaps on very small screens */
    .contact-item {
        gap: 10px;
    }
}

/* --- Google Sign-In Button & "or" Divider --- */
.google-signin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 4px 0 8px;
}

/* Make the Google-rendered iframe fill the wrapper */
.google-signin-wrapper > div {
    width: 100% !important;
}


/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* --- Client Portal Modal --- */
.client-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 16, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.client-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.client-modal-overlay.active .client-modal-content {
    transform: translateY(0);
}


.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--color-primary);
}

/* Auth Modal Content Box - wider for sign-up form */
.client-modal-content {
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 242, 254, 0.06);
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.client-modal-overlay.active .client-modal-content {
    transform: translateY(0);
}

.client-modal-content h3 {
    margin-bottom: 6px;
    font-size: 1.6rem;
    color: var(--color-text);
}

.auth-modal-logo {
    width: 110px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.auth-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Dark mode: pure white logo */
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
    transition: filter 0.3s ease;
}

/* Light mode: pure black logo */
[data-theme="light"] .auth-modal-logo img {
    filter: brightness(0);
}




.auth-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 24px !important;
}

/* Compact variant for the Google-Sign-In-only modal */
.client-modal-compact {
    max-width: 380px;
    padding: 36px 32px;
}

/* --- Client Dashboard Section --- */
.client-dashboard-section {
    display: none; /* Hidden by default */
    padding: 100px 5%;
    width: 100%;
    background: linear-gradient(
        to bottom,
        var(--color-bg) 0%,
        var(--color-bg-alt) 7%,
        var(--color-bg-alt) 93%,
        var(--color-bg) 100%
    );
}

.client-dashboard-section.active {
    display: block;
}

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

.dashboard-header h2 {
    font-size: 2rem;
    color: var(--color-primary);
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

/* client-jobs-card and job-item CSS removed — fake job history removed */

.client-feedback-card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.client-feedback-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image {
        justify-content: center;
    }
}
/* --- Showcase Slider for Latest Masterpieces --- */
.showcase-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 40px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.showcase-slider::-webkit-scrollbar {
    display: none;
}
.showcase-item {
    flex: 0 0 85%;
    max-width: 900px;
    scroll-snap-align: center;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2);
}
.showcase-item img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    background-color: var(--color-surface);
    display: block;
}
.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10,10,16,0.95) 0%, rgba(10,10,16,0.8) 40%, transparent 100%);
    padding: 40px 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.showcase-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 8px;
}
.showcase-text p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}
.showcase-badge {
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
}
@media screen and (min-width: 768px) {
    .showcase-item {
        flex: 0 0 60%;
    }
}
@media screen and (min-width: 1200px) {
    .showcase-item {
        flex: 0 0 45%;
    }
}

/* --- Google Identity Services button wrapper ---
   GIS renders its own <iframe> button inside this container.
   We just center it and add the same bottom margin the old custom button had. */
.gis-btn-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

/* --- Project Image Hover (clickable to lightbox) --- */
/* PERF: only transform + filter — both handled by the compositor */
img.project-img[data-lightbox] {
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease;
    will-change: transform; /* permanent OK here — every card is hover-able */
}
img.project-img[data-lightbox]:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* --- Fullscreen Project Lightbox --- */
.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.project-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 92vh;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.project-lightbox.active .lightbox-content img {
    transform: scale(1);
}
.lightbox-caption {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
    padding: 8px 24px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    max-width: 80vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-close:hover {
    background: rgba(255,80,80,0.3);
    border-color: rgba(255,80,80,0.5);
    transform: rotate(90deg);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-nav:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media screen and (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    .lightbox-caption {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
}

/* google-auth-popup styles removed — replaced by real Google Identity Services */

/* --- View Project Button Style --- */
.view-project-btn {
    gap: 6px;
}
.view-project-btn i {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.view-project-btn:hover i {
    opacity: 1;
    transform: scale(1.2);
}
