@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Obviously — display font for the hero name */
@font-face {
    font-family: "Obviously";
    src: url("/resources/fonts/ObviouslyDemo-Extended.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Obviously";
    src: url("/resources/fonts/ObviouslyDemo-ExtendedBlackItalic.otf") format("opentype");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #1a1a1a;
    color: #e0e0e0;
    /* guard against horizontal scroll from the large skewed display text */
    overflow-x: hidden;
    width: 100%;
}

/* Top Navigation - Minimal */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease;
}

.top-nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
}

.top-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.top-nav a:hover,
.top-nav a.active {
    color: #ffffff;
}

.top-nav .admin-link {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-nav .admin-link:hover {
    color: #cccccc;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    opacity: 0.6;
    filter: brightness(1.2);
    pointer-events: none;
}

.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.85) 50%, rgba(10, 10, 10, 0.7) 100%),
        radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.9) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 107, 255, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1400px;
    padding: 0 2rem;
    padding-top: 8rem;
}

.brand-tag {
    font-size: 0.875rem;
    letter-spacing: 4px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 0.8s backwards;
}

.credit-label {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
}

.credit-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 0.5rem 1.5rem;
    border: 2px solid #ffffff;
    background: rgba(255, 107, 107, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.credit-brand:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.title-line {
    font-family: "Obviously", "Roboto", sans-serif;
    font-size: 11rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #ffffff;
    line-height: 1;
    text-transform: uppercase;
    animation: fadeInUp 1s ease backwards;
    font-style: italic;
    transform: skewX(-10deg);
}

.title-sub {
    display: flex;
    justify-content: center;
    /* huge gap between each letter for a clean, airy look */
    gap: 5.5em;
    margin-top: 2rem;
}

.sub-letter {
    display: inline-block;
    font-family: "Obviously", "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    /* each letter pops up from the bottom individually (delay set inline) */
    animation: fadeInUp 0.6s ease backwards;
}

/* Tagline variant — matches the hero header font (italic, skewed),
   no letter spacing, smaller; keeps the same per-letter pop-up animation */
.title-tagline {
    gap: 0;
    margin-top: 1rem;
    /* loads in as one block, same as the hero-nav (delay set inline) */
    animation: fadeIn 1s ease backwards;
}

.title-tagline .sub-letter {
    font-size: 1.4rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    transform: skewX(-10deg);
    /* preserve spaces inside the tagline (e.g. "ACTION, CAPTURED") */
    white-space: pre;
    /* no per-letter pop-up — the whole tagline fades in together */
    animation: none;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.title-line.slanted {
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0 2rem;
}

.hero-specialization {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
    animation: fadeIn 1s ease 1s backwards;
    perspective: 1000px;
}

.spec-item {
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: scale(1.1);
}

.spec-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3),
        3px 3px 0 rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
    transform: skewX(-15deg);
}

.spec-divider {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 900;
    font-style: italic;
    transform: skewX(-15deg);
}

/* Hero Navigation - Styled like specializations */
.hero-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 60px;
    margin-bottom: 5rem;
    /* loads in after the CREATIVE letters have finished popping up */
    animation: fadeIn 1s ease 2.6s backwards;
    perspective: 1000px;
}

.hero-nav a {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3),
        3px 3px 0 rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
    transform: skewX(-15deg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-nav a:hover {
    transform: skewX(-15deg) scale(1.1);
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 50px rgba(255, 255, 255, 0.5),
        3px 3px 0 rgba(0, 0, 0, 0.8);
}

.hero-nav a.admin-link {
    color: #ffffff;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 1s ease 1.2s backwards;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #666;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, #ffffff, transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) skewX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) skewX(-10deg);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(15px); }
}

/* Main Content */
main {
    margin-top: 0;
}

.section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section:nth-child(even) {
    background-color: #141414;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.container {
    max-width: 1400px;
    width: 100%;
}

.section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #ffffff;
}

.section p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #c0c0c0;
    max-width: 800px;
}



/* Services Section - Enhanced */
.services-section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #141414;
    overflow: hidden;
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 107, 255, 0.06) 0%, transparent 50%);
}

.services-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.services-container {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.services-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.services-line {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    text-transform: uppercase;
    font-style: italic;
    transform: skewX(-10deg);
    line-height: 1;
}

.services-highlight {
    color: #ffffff;
    font-size: 6rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffffff;
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 107, 107, 0.3);
    font-style: italic;
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-content p {
    font-size: 1.1rem;
    color: #999;
    line-height: 1.6;
}

.service-icon {
    font-size: 3rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    opacity: 1;
    transform: scale(1.2);
}

/* Portfolio Section - Enhanced */
.portfolio-section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0a0a0a;
    overflow: hidden;
}

.portfolio-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(107, 107, 255, 0.06) 0%, transparent 50%);
}

.portfolio-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.portfolio-container {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 5rem;
}

.portfolio-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.portfolio-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.portfolio-line {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    text-transform: uppercase;
    font-style: italic;
    transform: skewX(-10deg);
    line-height: 1;
}

.portfolio-highlight {
    color: #ffffff;
    font-size: 6rem;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

/* Trusted By Carousel */
.trusted-by-carousel {
    margin: 4rem 0 6rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    cursor: grab;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    scroll-behavior: auto; /* Prevent smooth scrolling for instant repositioning */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.trusted-by-carousel::-webkit-scrollbar {
    display: none;
}

.trusted-by-carousel:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 4rem;
    width: fit-content;
    will-change: transform;
}

.carousel-track.animating {
    animation: scroll 30s linear infinite;
}

.carousel-track.paused {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
}

.logo-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.logo-placeholder span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-placeholder.logo-image {
    padding: 1rem;
}

.logo-placeholder img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0.8) grayscale(0.3);
    transition: all 0.3s ease;
}

/* Work Showcase */
.work-showcase {
    margin-top: 4rem;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.showcase-tag {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-style: italic;
    transform: skewX(-5deg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.work-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
}

.work-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.work-video-wrapper .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.work-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.work-video-wrapper .video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.4s ease;
}

.work-video-wrapper .video-placeholder i.fa-play-circle {
    font-size: 4rem;
    color: rgba(255, 107, 107, 0.6);
    transition: all 0.3s ease;
}

.work-video-wrapper .placeholder-text {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.work-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 3rem;
    color: #ffffff;
}

.overlay-content span {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 3px;
}

.work-info {
    padding: 2rem;
}

.work-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-info p {
    font-size: 1rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.work-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 0.9rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: -70px;
    right: 0;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid rgba(255, 107, 107, 0.4);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-header .modal-close {
    position: static;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Section - Enhanced */
.contact-section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #141414;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
}

.contact-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.contact-container {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
    margin-top: -3rem;
    margin-bottom: 2rem;
}

.contact-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.contact-line {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    text-transform: uppercase;
    font-style: italic;
    transform: skewX(-10deg);
    line-height: 1;
}

/* outlined word inside the contact heading (e.g. CAPTURE) */
.contact-outline {
    color: #000000;
    -webkit-text-stroke: 8px #ffffff;
    /* paint the black fill ON TOP of the stroke so thin glyph parts
       don't fill white (removes the line artifacts) */
    paint-order: stroke fill;
    /* white glow around the word */
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 28px rgba(255, 255, 255, 0.45);
}

.contact-highlight {
    color: #ffffff;
    font-size: 6rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #999;
    max-width: 700px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-form-wrapper,
.contact-info-sidebar {
    flex: 0 1 500px;
    max-width: 500px;
}

.contact-content.justify-center {
    justify-content: center;
}

/* Simple contact list — Instagram / Instagram / Email rows */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.4rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-row:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 107, 107, 0.08);
    transform: translateX(8px);
}

.contact-row i {
    font-size: 1.6rem;
    width: 1.8rem;
    text-align: center;
}

.contact-row .contact-label {
    font-weight: 700;
    text-transform: uppercase;
}

.contact-row .contact-sep {
    opacity: 0.5;
}

.contact-row .contact-value {
    color: #cccccc;
}

.contact-row:hover .contact-value {
    color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

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

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: #000000;
    border: none;
    border-radius: 8px;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-family: "Roboto", sans-serif;
}

.submit-btn:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact Form Notification */
.contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 500px;
}

.contact-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.contact-notification.success {
    border: 2px solid rgba(52, 211, 153, 0.5);
}

.contact-notification.error {
    border: 2px solid rgba(255, 107, 107, 0.5);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.notification-content i {
    font-size: 1.5rem;
}

.contact-notification.success .notification-content i {
    color: #34d399;
}

.contact-notification.error .notification-content i {
    color: #ffffff;
}

.notification-content span {
    font-size: 1rem;
    line-height: 1.5;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 4rem;
}

.info-block {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-block:hover {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.info-block h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.info-block a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: #cccccc;
}

.info-block p {
    color: #999;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.3rem;
    color: #ffffff;
}

.social-link span {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #141414;
    padding: 2rem;
    text-align: center;
}

.site-footer p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    letter-spacing: 0.5px;
}

/* About Section - Enhanced */
.about-section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0a0a0a;
    overflow: hidden;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(107, 107, 255, 0.06) 0%, transparent 50%);
}

.about-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.about-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image-wrapper {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
}

.image-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.henry-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.image-frame:hover .henry-photo {
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid #ffffff;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
}

.about-title {
    margin: 0;
;
}

.about-name {
    font-size: 51px;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    text-transform: uppercase;
    font-style: italic;
    transform: skewX(-10deg);
    display: inline-block;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);

}

.about-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    font-style: italic;
}

.stat-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c0c0c0;
}

.about-highlight {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ffffff;
    border-radius: 8px;
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.about-highlight p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

.about-highlight strong {
    color: #ffffff;
    font-weight: 700;
}

/* Reversed About Section */
/* anchor text-only content near the top instead of vertically centering it */
.about-section-reversed {
    align-items: flex-start;
}

.about-section-reversed .about-container {
    grid-template-columns: 1fr;
    text-align: center;
}

.about-section-reversed .image-frame {
    transform: rotate(3deg);
}

.about-section-reversed .image-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-section-reversed .image-accent {
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .title-line {
        font-size: 7rem;
        letter-spacing: -3px;
    }

    .hero-specialization {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .spec-text {
        font-size: 1.5rem;
    }
    
    .spec-divider {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 2.5rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-section-reversed .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-name {
        font-size: 4rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-line {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }
    
    .services-highlight {
        font-size: 4.5rem;
    }
    
    .service-item {
        grid-template-columns: 80px 1fr 60px;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .service-number {
        font-size: 2.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .portfolio-line {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }

    
    
    .portfolio-highlight {
        font-size: 4.5rem;
    }
    
    .portfolio-video {
        grid-template-columns: 1fr;
    }
    
    .portfolio-video:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .portfolio-video:nth-child(even) .video-wrapper {
        order: 0;
    }
    
    .contact-line {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }

    .contact-outline {
        -webkit-text-stroke-width: 5px;
    }

    .contact-highlight {
        font-size: 4.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-section {
        padding: 4rem 2rem;
    }
    
    .contact-header {
        margin-bottom: 3rem;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    
    .contact-form-wrapper,
    .contact-info-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .contact-info-sidebar {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .top-nav {
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
    }
    
    .top-nav a {
        font-size: 0.65rem;
        letter-spacing: 1px;
        padding: 0.5rem 0.75rem;
    }
    
    .hero-nav {
        gap: 0.8rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
    }
    
    .hero-nav a {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .spec-divider {
        font-size: 1.5rem;
    }
    
    .brand-tag {
        font-size: 0.75rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
    }
    
    .title-line {
        font-size: 4.5rem;
        letter-spacing: -2px;
    }

    .title-sub {
        gap: 1.4em;
    }

    .sub-letter {
        font-size: 1.2rem;
    }

    .title-tagline .sub-letter {
        font-size: 1.05rem;
    }

    .hero-content {
        padding-top: 6rem;
    }

    .title-line.slanted {
        padding: 0 1rem;
    }
    
    .credit-label {
        font-size: 0.8rem;
    }
    
    .credit-brand {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-specialization {
        gap: 0.8rem;
    }
    
    .spec-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .spec-divider {
        font-size: 1.4rem;
    }
    
    .scroll-indicator span {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }
    
    .scroll-line {
        height: 40px;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .section h2::after {
        width: 60px;
        height: 3px;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-line {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .services-highlight {
        font-size: 3.5rem;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-number {
        font-size: 2rem;
    }
    
    .service-content h3 {
        font-size: 1.4rem;
    }
    
    .service-content p {
        font-size: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .portfolio-line {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .sub-portfolio-line {
        font-size: 40px;
        letter-spacing: 2px;
    }
    
    .portfolio-highlight {
        font-size: 3.5rem;
    }
    
    .portfolio-subtitle {
        font-size: 1rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
    
    .client-logo {
        width: 150px;
        height: 100px;
    }
    
    .carousel-track {
        gap: 2.5rem;
    }
    
    .work-info h4 {
        font-size: 1.3rem;
    }
    
    .work-info p {
        font-size: 0.95rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 0 1rem;
    }
    
    .modal-close {
        top: -70px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .contact-line {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .contact-highlight {
        font-size: 3.5rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 3rem 1.5rem;
    }
    
    .contact-header {
        margin-bottom: 2.5rem;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .contact-form-wrapper,
    .contact-info-sidebar {
        max-width: 100%;
        width: 100%;
    }

    .contact-info-list {
        gap: 1rem;
    }

    .contact-row {
        flex-wrap: wrap;
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        gap: 0.6rem;
    }

    .contact-row i {
        font-size: 1.3rem;
        width: 1.5rem;
    }

    .contact-row .contact-value {
        /* let long handles/emails wrap instead of forcing the row wider */
        word-break: break-word;
        min-width: 0;
    }

    /* tame the hover slide so wrapped rows don't push off-screen */
    .contact-row:hover {
        transform: none;
    }
    
    .form-group label {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }
    
    .info-block {
        padding: 1.5rem;
    }
    
    .info-icon {
        font-size: 2rem;
    }
    
    .info-block h3 {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .contact-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
        padding: 1rem 1.5rem;
    }
    
    .notification-content {
        gap: 0.8rem;
    }
    
    .notification-content i {
        font-size: 1.2rem;
    }
    
    .notification-content span {
        font-size: 0.9rem;
    }
    
    .about-name {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .about-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-divider {
        height: 40px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-highlight {
        padding: 1.2rem;
    }
    
    .highlight-icon {
        font-size: 1.5rem;
    }
    
    .contact-info {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .top-nav {
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }
    
    .top-nav a {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
        padding: 0.4rem 0.6rem;
    }
    
    .hero-nav {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-nav a {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .spec-divider {
        font-size: 1.1rem;
    }
    
    .title-line {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .title-sub {
        gap: 0.9em;
    }

    .sub-letter {
        font-size: 0.9rem;
    }

    .title-tagline .sub-letter {
        font-size: 0.85rem;
        letter-spacing: 0;
    }

    .hero-content {
        padding: 0 1rem;
        padding-top: 5rem;
    }
    
    .spec-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .credit-brand {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .services-line {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .services-highlight {
        font-size: 2.8rem;
    }
    
    .service-item {
        padding: 1.2rem;
    }
    
    .service-number {
        font-size: 1.8rem;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .about-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .image-frame {
        transform: rotate(-2deg);
    }
    
    .image-accent {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }
    
    .portfolio-line {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .portfolio-highlight {
        font-size: 2.8rem;
    }
    
    .showcase-title {
        font-size: 1.6rem;
    }
    
    .client-logo {
        width: 120px;
        height: 80px;
    }
    
    .carousel-track {
        gap: 2rem;
    }
    
    .logo-placeholder i {
        font-size: 1.8rem;
    }
    
    .logo-placeholder span {
        font-size: 0.75rem;
    }
    
    .work-info h4 {
        font-size: 1.2rem;
    }
    
    .work-info p {
        font-size: 0.9rem;
    }
    
    .modal-close {
        top: -60px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-video-container {
        border-radius: 8px;
    }
    
    .contact-line {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .contact-outline {
        -webkit-text-stroke-width: 3px;
    }

    .contact-highlight {
        font-size: 2.8rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-row {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .contact-row i {
        font-size: 1.15rem;
        width: 1.3rem;
    }

    .contact-row .contact-label {
        letter-spacing: 0.5px;
    }
    
    .form-group {
        gap: 0.6rem;
    }
    
    .form-group label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .info-block {
        padding: 1.2rem;
        border-radius: 8px;
    }
    
    .info-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .info-block h3 {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 0.6rem;
    }
    
    .info-block a {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .social-link {
        padding: 0.7rem 0.9rem;
        border-radius: 6px;
    }
    
    .social-link i {
        font-size: 1.1rem;
    }
    
    .social-link span {
        font-size: 0.9rem;
    }
    
    .contact-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 0.9rem 1.2rem;
    }
}

/* ===================================
   FLUID HERO SIZING
   Scales the hero headline / tagline / nav with the viewport so they
   never overflow on phones. Placed after the fixed breakpoints above
   so it supersedes them for any screen narrower than the desktop layout.
   =================================== */
@media (max-width: 900px) {
    .hero-content {
        padding: 0 1rem;
        padding-top: clamp(4rem, 14vw, 8rem);
    }

    .title-line {
        font-size: clamp(2.4rem, 14vw, 7rem);
        letter-spacing: -1px;
    }

    /* keep "CREATIVE" on one line but shrink the airy gap to fit */
    .title-sub {
        gap: clamp(0.35rem, 5vw, 3rem);
        max-width: 100%;
    }

    .sub-letter {
        font-size: clamp(0.7rem, 3vw, 1.4rem);
    }

    .title-tagline {
        max-width: 100%;
        /* the tagline shares the .title-sub class, so re-assert no gap —
           otherwise the fluid .title-sub gap spaces the letters off-screen */
        gap: 0;
    }

    .title-tagline .sub-letter {
        font-size: clamp(0.5rem, 2.4vw, 1rem);
        letter-spacing: -0.5px;
    }

    /* the nav wraps to multiple rows instead of running off-screen */
    .hero-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(0.4rem, 2vw, 1.5rem);
        margin-top: 2.5rem;
        margin-bottom: 3rem;
        max-width: 100%;
    }

    .hero-nav a {
        font-size: clamp(0.95rem, 4.2vw, 1.8rem);
        letter-spacing: 1px;
    }

    .hero-nav .spec-divider {
        font-size: clamp(0.95rem, 4.2vw, 1.8rem);
    }
}

/* On phones, lay the hero nav out as a 2x2 grid and drop the "/" dividers.
   The 4 public links fill the grid; the admin-only Dashboard link (when
   logged in) spans the full width below so it stays centred. */
@media (max-width: 768px) {
    .hero-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-nav .spec-divider {
        display: none;
    }

    .hero-nav a {
        font-size: clamp(1.1rem, 5.5vw, 1.7rem);
        text-align: center;
    }
}

/* ===================================
   LOGIN & DASHBOARD STYLES
   =================================== */

/* Login Section */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    padding: 6rem 2rem 2rem;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(107, 107, 255, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

.login-box {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 3rem;
    animation: fadeIn 0.8s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.title-line-small {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #ffffff;
    line-height: 1;
    text-transform: uppercase;
    font-style: normal;
    transform: none;
}

.title-line-small.slanted {
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    animation: slideInDown 0.5s ease;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ffffff;
}

.alert-success {
    background: rgba(107, 255, 107, 0.1);
    border: 1px solid rgba(107, 255, 107, 0.3);
    color: #6bff6b;
}

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

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2a2a2a, #000000);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    padding: 6rem 2rem 4rem;
}

.dashboard-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 107, 255, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.dashboard-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Navigation */
.dashboard-nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-nav .logout-link {
    color: #ffffff;
}

.dashboard-nav .logout-link:hover {
    color: #cccccc;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.dashboard-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.user-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    letter-spacing: 1px;
}

.user-welcome strong {
    color: #ffffff;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.dashboard-btn-primary {
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.dashboard-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.dashboard-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dashboard-btn-danger {
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: #ffffff;
}

.dashboard-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.stat-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 143, 143, 0.2));
    border-radius: 10px;
    font-size: 1.8rem;
    color: #ffffff;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    font-style: italic;
}

/* Section Header */
.section-header {
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-style: normal;
    transform: none;
    display: inline-block;
}

.header-line {
    height: 3px;
    background: linear-gradient(90deg, #ffffff, transparent);
    margin-top: 1rem;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 4rem;
}

.actions-grid {
    display: grid;
    /* flow cards to fit the row so any count stays balanced (no orphan gap) */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.8s ease 0.6s backwards;
}

.action-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.15);
}

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

.action-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 143, 143, 0.2));
    border-radius: 10px;
    font-size: 1.3rem;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-card:hover .action-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 143, 143, 0.3));
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.7);
    }
}

.action-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.action-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
}

.action-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* Recent Activity */
.recent-activity {
    animation: fadeIn 0.8s ease 0.8s backwards;
}

.activity-list {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.activity-item {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover:not(.empty) {
    background: rgba(255, 255, 255, 0.03);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    font-size: 1rem;
    color: #ffffff;
}

.activity-item.empty .activity-icon {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.activity-item.empty .activity-content p {
    color: rgba(255, 255, 255, 0.5);
}

.activity-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Login & Dashboard
   (.actions-grid uses auto-fit, so it reflows on its own down to mobile) */
@media (max-width: 768px) {
    .login-box {
        padding: 2rem;
    }
    
    .title-line-small {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card,
    .action-card {
        padding: 1.5rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-nav {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* ===================================
   MESSAGES PAGE STYLES
   =================================== */

.stats-bar {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-item i {
    color: #ffffff;
    font-size: 1.3rem;
}

.filter-bar {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.filter-select:hover {
    border-color: rgba(255, 107, 107, 0.3);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.message-card.unread {
    border-color: rgba(255, 107, 107, 0.3);
    opacity: 1;
}

.message-card:hover {
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateX(5px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.message-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.action-btn i {
    font-size: 1rem;
}

.action-btn span {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn-blue {
    color: #60a5fa;
}

.action-btn-blue:hover {
    background: rgba(96, 165, 250, 0.15);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.action-btn-green {
    color: #34d399;
}

.action-btn-green:hover {
    background: rgba(52, 211, 153, 0.15);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

.action-btn-red {
    color: #ffffff;
}

.action-btn-red:hover {
    background: rgba(255, 107, 107, 0.15);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.action-btn-purple {
    color: #a78bfa;
}

.action-btn-purple:hover {
    background: rgba(167, 139, 250, 0.15);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.action-btn-yellow {
    color: #fbbf24;
}

.action-btn-yellow:hover {
    background: rgba(251, 191, 36, 0.15);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.message-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-meta i {
    color: rgba(255, 107, 107, 0.8);
}

.message-preview {
    background: rgba(10, 10, 10, 0.6);
    padding: 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.modal-content-large {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.message-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.detail-row strong {
    color: rgba(255, 107, 107, 0.9);
    min-width: 80px;
}

.detail-row span {
    color: rgba(255, 255, 255, 0.8);
}

.message-full-text {
    background: rgba(10, 10, 10, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.1);
    color: #ffffff;
}

.page-link.active {
    background: linear-gradient(135deg, #2a2a2a, #000000);
    border-color: transparent;
    color: #ffffff;
}

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

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

.alert-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ffffff;
}

@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        width: 100%;
        min-width: auto;
    }
    
    .message-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .message-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   PROJECT MANAGEMENT STYLES
   =================================== */

.form-container,
.projects-list {
    margin-bottom: 3rem;
}

.list-actions {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.project-form {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
}

.project-form .form-group {
    margin-bottom: 1.5rem;
}

.project-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.project-form input,
.project-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.project-form input:focus,
.project-form textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.project-form textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
}

.project-card.inactive {
    opacity: 0.6;
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(107, 255, 107, 0.2);
    color: #6bff6b;
    border: 1px solid rgba(107, 255, 107, 0.3);
}

.status-badge.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    transform: translateY(-2px);
}

.btn-edit:hover {
    background: rgba(107, 107, 255, 0.2);
    border-color: rgba(107, 107, 255, 0.5);
    color: #6b6bff;
}

.btn-toggle:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.btn-delete:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ffffff;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.empty-state i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .list-actions {
        justify-content: center;
    }
    
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* ===================================
   CLIENT MANAGEMENT STYLES
   =================================== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
}

.client-card.inactive {
    opacity: 0.6;
}

.client-logo-display {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.client-logo-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-info {
    padding: 1.5rem;
}

.client-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.file-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(10, 10, 10, 0.95);
}

/* the embedded "Choose file" button — styled for both Chrome/Safari and Firefox */
.file-input::-webkit-file-upload-button,
.file-input::file-selector-button {
    margin-right: 1rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.file-input::-webkit-file-upload-button:hover,
.file-input::file-selector-button:hover {
    background: linear-gradient(135deg, #3a3a3a, #111111);
}

/* Settings Page Collapsible Cards */
.settings-card {
    transition: all 0.3s ease;
}

.settings-card-header {
    background: transparent;
    border: none;
    text-align: left;
}

.settings-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.settings-card-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/* Users Table Styles */
.users-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.users-table thead {
    background: rgba(255, 107, 107, 0.1);
}

.users-table thead th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
}

.users-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.users-table tbody tr:last-child {
    border-bottom: none;
}

.users-table tbody td {
    padding: 1.2rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-info i {
    font-size: 1.5rem;
    color: rgba(255, 107, 107, 0.7);
}

.user-info strong {
    color: rgba(255, 255, 255, 0.9);
}

.badge-current {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: white;
    text-transform: uppercase;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .users-table {
        font-size: 0.85rem;
    }
    
    .users-table thead th,
    .users-table tbody td {
        padding: 0.8rem 1rem;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* Logs Page Styles */
.logs-filters {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
}

.filter-form {
    margin-top: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-actions .dashboard-btn {
    flex: 1;
    min-width: 120px;
}

.logs-list {
    margin-top: 2rem;
}

.logs-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.logs-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.logs-table thead {
    background: rgba(255, 107, 107, 0.1);
}

.logs-table thead th {
    padding: 1rem 1.2rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
    white-space: nowrap;
}

.logs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.logs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.logs-table tbody tr:last-child {
    border-bottom: none;
}

.logs-table tbody td {
    padding: 1rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.log-timestamp {
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.log-timestamp i {
    margin-right: 0.5rem;
    color: rgba(255, 107, 107, 0.7);
}

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-info {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge-primary {
    background: rgba(156, 39, 176, 0.2);
    color: #ba68c8;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.badge-default {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.log-details {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-ip code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.log-user-agent {
    max-width: 250px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.log-user-agent span {
    cursor: help;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
    color: white;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .logs-table {
        font-size: 0.8rem;
    }
    
    .logs-table thead th,
    .logs-table tbody td {
        padding: 0.8rem;
    }
    
    .log-details,
    .log-user-agent {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .logs-table thead th,
    .logs-table tbody td {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .log-user-agent {
        display: none;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* View More Button Styles */
.truncated-text {
    display: inline-block;
    margin-right: 0.5rem;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 107, 107, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.view-more-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-1px);
}

.view-more-btn i {
    font-size: 0.7rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 107, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 1px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.modal-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-action-btn:hover::before {
    opacity: 1;
}

.modal-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-action-btn:active {
    transform: translateY(-1px);
}

.modal-action-btn i {
    font-size: 1.1rem;
}

.modal-btn-blue {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.15));
    color: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.modal-btn-blue:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.25));
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.modal-btn-purple {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.15));
    color: #a78bfa;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

.modal-btn-purple:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(139, 92, 246, 0.25));
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.3);
}

.modal-btn-yellow {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.modal-btn-yellow:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.25));
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.modal-btn-green {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.15));
    color: #34d399;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2);
}

.modal-btn-green:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(16, 185, 129, 0.25));
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.3);
}

.modal-info-group {
    margin-bottom: 1.5rem;
}

.modal-info-group:last-child {
    margin-bottom: 0;
}

.modal-info-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 107, 107, 0.8);
    margin-bottom: 0.5rem;
}

.modal-info-group span {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 0.25rem;
}

.modal-content-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.7);
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-content-text {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
}

/* Service Modals */
.spec-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.spec-item.clickable:hover {
    transform: translateY(-2px);
    color: #cccccc;
}

.spec-item.clickable:hover .spec-text {
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Clickable service items in services section */
.service-item.clickable-service {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-item.clickable-service::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.service-item.clickable-service:hover {
    transform: translateX(10px);
    background: rgba(255, 107, 107, 0.05);
}

.service-item.clickable-service:hover::before {
    border-color: rgba(255, 107, 107, 0.3);
}

.service-item.clickable-service:hover .service-number {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.service-item.clickable-service:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-item.clickable-service:active {
    transform: translateX(5px);
}

.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

.service-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.3s ease;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 107, 0.1);
}

.service-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.service-modal-close:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
    color: white;
    transform: rotate(90deg);
}

.service-modal-body {
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

.service-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.service-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.service-description {
    padding: 2rem;
}

.service-description p {
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.service-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-modal {
        padding: 1rem;
    }
    
    .service-modal-content {
        max-height: 90vh;
    }
    
    .service-modal-header {
        padding: 1.5rem;
    }
    
    .service-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .service-modal-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* Settings Page Styles */
.settings-form-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-group-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-group-card:hover {
    border-color: rgba(255, 107, 107, 0.3);
}

.settings-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-group-header:hover {
    background: rgba(255, 107, 107, 0.05);
}

.settings-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-group-title i {
    font-size: 1.5rem;
    color: #ffffff;
}

.settings-group-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.settings-chevron {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.settings-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.settings-group-content.active {
    max-height: 5000px;
    padding: 0 2rem 2rem 2rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(10, 10, 10, 0.95);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-checkbox:checked {
    background: linear-gradient(135deg, #2a2a2a, #000000);
    border-color: #ffffff;
}

.checkbox-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.settings-save-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    margin-top: 1rem;
}

.settings-save-section .dashboard-btn {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .settings-group-header {
        padding: 1.5rem;
    }
    
    .settings-group-content.active {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .settings-group-title h2 {
        font-size: 1.3rem;
    }
}
/* ============================================
   Services Management Page Styles
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #cccccc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

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

.service-card.inactive {
    opacity: 0.5;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 2.5rem;
}

.service-order {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.badge-inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #bdbdbd;
}

.badge-info {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.service-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn-edit:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.5);
    color: #64b5f6;
}

.action-btn-toggle {
    flex: 0 0 auto;
    padding: 0.7rem;
}

.action-btn-toggle:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffd54f;
}

.action-btn-delete {
    flex: 0 0 auto;
    padding: 0.7rem;
}

.action-btn-delete:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
    color: #e57373;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.empty-state i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 4px;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.editor-btn {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editor-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ffffff;
}

.rich-editor {
    border-radius: 0 0 8px 8px;
    border-top: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1 1 calc(50% - 0.25rem);
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .modal-dialog {
        max-width: 100%;
        margin: 1rem;
    }
}

/* ============================================
   Image Library Styles
   ============================================ */

.image-library {
    position: sticky;
    top: 0;
}

.image-library h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.image-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
    margin: 0 -0.5rem;
}

.image-list::-webkit-scrollbar {
    width: 6px;
}

.image-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.image-list::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 3px;
}

.image-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.image-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
}

.image-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.image-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 107, 107, 0.8);
    background: rgba(255, 107, 107, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.remove-image-btn {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #e57373;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.remove-image-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
    transform: scale(1.1);
}

.image-preview {
    min-height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.image-preview:empty::after {
    content: 'Image preview';
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.insert-image-btn {
    width: 100%;
    padding: 0.6rem;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #64b5f6;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.insert-image-btn:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.5);
    transform: translateX(-2px);
}

.insert-image-btn i {
    transition: transform 0.3s ease;
}

.insert-image-btn:hover i {
    transform: translateX(-3px);
}

@media (max-width: 968px) {
    .modal-body {
        flex-direction: column !important;
    }
    
    .image-library {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0 !important;
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .image-list {
        max-height: 300px;
    }
}

/* ============================================
   Layout Templates Styles
   ============================================ */

.layout-templates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.layout-template-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.layout-template-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.layout-template-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.template-preview {
    width: 100%;
    height: 50px;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.preview-block {
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.preview-lines {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
}

.preview-lines div {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.preview-lines div:first-child {
    width: 80%;
}

.preview-lines div:last-child {
    width: 60%;
}

/* Update image library spacing */
.image-library > div {
    padding-bottom: 1rem;
}

.image-library > div:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 968px) {
    .layout-templates {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BBCode Editor Enhancements
   ============================================ */

.rich-editor {
    font-family: 'Courier New', 'Monaco', monospace;
    line-height: 1.6;
}

.rich-editor::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.editor-toolbar {
    background: rgba(33, 150, 243, 0.05);
}

.editor-btn[title] {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Help text styling */
.form-group small strong {
    color: rgba(255, 193, 7, 0.9);
}

/* ============================================
   Checkbox Styling for Feature Toggles
   ============================================ */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
}

.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.form-checkbox::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.form-checkbox:checked {
    background: linear-gradient(135deg, #2a2a2a, #000000);
    border-color: #ffffff;
}

.form-checkbox:checked::before {
    left: 24px;
    background: #ffffff;
}

.checkbox-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-label:hover .checkbox-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Make checkbox labels work better in grid */
.form-group .checkbox-label {
    margin: 0;
}

/* Fix checkbox layout issues */
.form-group .checkbox-label {
    width: fit-content;
    max-width: 100%;
    min-width: 250px;
}

.settings-grid .form-group:has(.checkbox-label) {
    grid-column: span 1;
}

/* Ensure proper grid layout */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Make toggles smaller and more compact */
.form-checkbox {
    width: 44px !important;
    height: 24px !important;
    border-radius: 12px !important;
}

.form-checkbox::before {
    width: 18px !important;
    height: 18px !important;
    top: 1px !important;
    left: 1px !important;
}

.form-checkbox:checked::before {
    left: 21px !important;
}

.checkbox-label {
    padding: 0.75rem 1rem !important;
}

/* Convert to checkbox with tick instead of toggle */
.form-checkbox {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.form-checkbox::before {
    content: '✓' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.form-checkbox:checked {
    background: linear-gradient(135deg, #2a2a2a, #000000) !important;
    border-color: #ffffff !important;
}

.form-checkbox:checked::before {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Fix checkbox alignment */
.checkbox-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.form-checkbox {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.checkbox-text {
    display: flex !important;
    align-items: center !important;
}

/* Perfect center alignment for checkmark */
.form-checkbox::before {
    line-height: 1 !important;
    padding-top: 1px !important;
}
