/* ==================== CSS VARIABLES ==================== */
:root {
    /* 🔵 PRIMARY BLUE SCALE */
    --primary: #2563eb;
    /* main blue */
    --primary-dark: #1d4ed8;
    /* darker */
    --primary-light: #60a5fa;
    /* lighter */

    /* 🔵 SECONDARY BLUES */
    --secondary: #0ea5e9;
    /* sky blue */
    --accent: #3b82f6;
    /* soft blue accent */

    /* 🟢 keep semantic colors minimal */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    /* 🌞 LIGHT BACKGROUNDS */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e0ecff;
    /* light blue tint */
    --bg-card: #ffffff;
    --bg-card-hover: #eff6ff;
    /* subtle blue hover */

    /* 🔤 TEXT COLORS */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    /* 🔲 BORDERS */
    --border: #dbeafe;
    /* light blue border */
    --border-light: #bfdbfe;

    /* 🔵 GRADIENTS (BLUE FAMILY) */
    --gradient-1: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-2: linear-gradient(135deg, #0ea5e9, #38bdf8);
    --gradient-3: linear-gradient(135deg, #3b82f6, #60a5fa);
    --gradient-4: linear-gradient(135deg, #1d4ed8, #2563eb);

    --gradient-hero: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #38bdf8 100%);

    /* 🌞 SHADOWS (slightly bluish) */
    --shadow-sm: 0 1px 2px rgba(37, 99, 235, 0.05);
    --shadow-md: 0 4px 10px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 8px 24px rgba(37, 99, 235, 0.1);
    --shadow-xl: 0 16px 40px rgba(37, 99, 235, 0.12);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --navbar-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 85px;
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    margin-top: 10px;
}


.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    top: 60px;
    background: #f8fafc;
    padding: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    color: #0037b8;
    margin-top: 46px;
}

.logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-top: 13px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0px 24px;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-top: 70px;
    min-height: 100vh;
    padding-bottom: 60px;
}

.page-section {
    min-height: calc(100vh - 70px);
    padding: 60px 20px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(23px, 3vw, 0.5rem);
    margin-bottom: 12px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    color: var(--text-secondary);
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    margin-top: 50px;
    color: #003d00;
}

/* ==================== GALLERY ==================== */
.gallery-container {
    position: relative;
}

.gallery {
    column-count: 4;
    column-gap: 20px;
}

@media (max-width: 1024px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery {
        column-count: 1;
    }
}

.gallery-item {
    position: relative;
    /* ADD THIS */
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* important */
    display: block;
}


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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    font-size: 2.5rem;
    color: white;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* DEFAULT (logos, icons, etc.) */
.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 900px;

    max-height: 95vh;
    overflow: hidden;
    /* ✅ NO scroll */
}

.lightbox.web-design-mode .lightbox-content {
    height: 80vh;
    overflow-y: auto;
    align-items: flex-start;
}

/* default image */
.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
}

/* website designs image */
.lightbox.web-design-mode .lightbox-image {
    max-height: none;
    width: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-image.zoomed {
    cursor: grab;
    transition: none;
    /* disable transition while dragging */
}

.lightbox-image.dragging {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.lightbox-close:hover {
    color: var(--primary-light);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    z-index: 2;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ==================== NOTIFICATIONS ==================== */
#notificationContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .main-content {
        margin-top: 60px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        gap: 0;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        padding: 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: var(--bg-tertiary);
    }

    .page-section {
        padding: 40px 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .gallery {
        column-count: 2;
        column-gap: 12px;
    }

    #notificationContainer {
        bottom: 20px;
        right: 20px;
    }

    .notification {
        min-width: calc(100vw - 40px);
    }
}

.gallery-item img {
    border-radius: var(--radius-md);
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo i {
        font-size: 1.2rem;
    }

    .section-header h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .page-section {
        padding: 30px 12px;
    }


    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ================= LOGIN SCREEN ================= */
/* ================= LOGIN SCREEN ================= */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    font-family: 'Inter', sans-serif;
}

/* ================= CARD ================= */
.login-card {
    background: #fff;
    padding: 40px;
    width: 100%;
    max-width: 349px;
    overflow: hidden;
}

/* ================= ANIMATION ================= */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= HEADER ================= */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-icon {
    font-size: 2.5rem;
    color: #2563eb;
    transition: transform 0.3s;
}

.login-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

.login-title {
    margin: 10px 0 4px;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

/* ================= ERROR ================= */
.login-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    animation: shake 0.3s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ================= INPUT ================= */
.login-group {
    position: relative;
    margin-bottom: 20px;
}

.login-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    background: transparent;
}

.login-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Floating labels */
.login-group label {
    position: absolute;
    left: 14px;
    top: 12px;
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
    transition: all 0.2s;
}

.login-group input:focus+label,
.login-group input:not(:placeholder-shown)+label {
    top: -8px;
    left: 10px;
    font-size: 0.7rem;
    background: #fff;
    padding: 0 4px;
    color: #2563eb;
}

/* ================= BUTTON ================= */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #e0eeff;
    color: #1d4ed8;
    border: 1px solid #0073c5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: background 0.3s, transform 0.2s;
}

img.login-icon {
    width: 191px;
    height: 114px;
    ;
}

.login-btn span {
    position: relative;
    z-index: 2;
}

.login-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.login-btn:hover {
    background: #dde6ff;
    transform: translateY(-2px);
}

.login-btn:active::after {
    width: 200%;
    height: 500%;
    transition: 0s;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 420px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

[data-page="websitedesigns"] .gallery {
    column-count: 3;
    column-gap: 20px;
}

[data-page="websitedesigns"] .gallery-item {
    aspect-ratio: 1 / 1;
    /* ✅ square */
    overflow: hidden;
}

[data-page="websitedesigns"] .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;

}

/* ONLY for website designs */
[data-page="websitedesigns"] .lightbox-content {
    align-items: flex-start;
    /* start from top */
    height: 80vh;
    overflow-y: auto;
    /* ✅ scroll only here */
}

[data-page="websitedesigns"] .lightbox-image {
    width: 100%;
    height: auto;
    max-height: none;
    /* ✅ allow full height */
}