:root {
    --bg-color: #050505;
    --surface-color: #0f0f0f;
    --surface-hover: #1a1a1a;
    --border-color: #262626;
    --text-primary: #ededed;
    --text-secondary: #9ca3af;
    --accent: #d90429;
    --accent-dark: #8d0018;
    --accent-glow: rgba(217, 4, 41, 0.35);
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --container-padding: 6%;
    --radius-sm: 4px;
    --radius-md: 12px;
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-base: 0.4s var(--ease-out);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}
::selection {
    background-color: var(--accent);
    color: white;
}
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s var(--ease-out);
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.8) 0%, transparent 100%);
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px var(--container-padding);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}
.search-container { position: relative; }
.search-container i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}
.search-container input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px 10px 42px;
    color: white;
    border-radius: 100px;
    outline: none;
    width: 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: width 0.5s var(--ease-out), background 0.3s, border-color 0.3s;
    cursor: pointer;
    color: transparent;
}
.search-container input:focus,
.search-container:hover input {
    width: 240px;
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
    cursor: text;
    color: white;
}
.search-container:hover i { color: white; }
.hero {
    min-height: 85vh;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px var(--container-padding) 60px;
    margin-bottom: 0 !important;
    border-bottom: none;
    background-color: #050505;
    background-image: url("imagens/heroteste.jpg");
    background-size: cover;     
    background-position: center;
    background-repeat: no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.2) 0%, #050505 100%);
    z-index: 1;
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 250px;
    background: linear-gradient(to bottom, transparent 0%, #050505 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, var(--bg-color) 120%),
        linear-gradient(to top, var(--bg-color) 5%, transparent 40%),
        linear-gradient(to right, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-top: 60px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: white;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-block;
}
.hero p {
    font-size: 1.15rem;
    color: #d4d4d4;
    max-width: 800px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.85;
}
.hero-floating-icons {
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}
.hero-icon {
    position: absolute;
    height: auto;
    opacity: 0.85;
    filter: blur(1px) drop-shadow(0 10px 20px rgba(0,0,0,0.4));
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: floatAnimation 7s ease-in-out infinite alternate;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .hero-icon:hover {
        animation-play-state: paused;
        filter: blur(0px) drop-shadow(0 0 10px rgba(229, 9, 20, 0.7));
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
        z-index: 15;
    }
}
.hero-icon:active {
    animation-play-state: paused;
    filter: blur(0px) drop-shadow(0 0 15px var(--accent));
    opacity: 1;
    transform: scale(1.2) rotate(5deg);
    z-index: 20;
    transition: transform 0.1s;
}
@keyframes floatAnimation {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(3deg); }
}
.icon-pr { top: 18%; left: 35%; width: clamp(90px, 11vw, 160px); z-index: 6; animation-delay: 0s; filter: blur(1.5px) drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.icon-dv { top: 50%; left: 60%; width: clamp(80px, 10vw, 150px); z-index: 5; animation-delay: 1.5s; filter: blur(1.5px) drop-shadow(0 10px 20px rgba(0,0,0,0.4)); }
.icon-ae { top: 25%; left: 80%; width: clamp(70px, 9vw, 120px); z-index: 4; animation-delay: 2.5s; filter: blur(1.5px) drop-shadow(0 10px 20px rgba(0,0,0,0.4)); }
.icon-ps { top: 70%; left: 25%; width: clamp(60px, 7vw, 100px); z-index: 3; animation-delay: 1s; filter: blur(1.5px) drop-shadow(0 10px 20px rgba(0,0,0,0.4)); }
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.5s;
}
@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
    }
    .btn-primary:hover::before { left: 100%; }
}
.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}
.btn-primary:active::before {
    transition: 0s;
    left: 100%;
}
.highlight-text {
    background-image: linear-gradient(to right, rgba(220, 20, 60, 0.6), rgba(220, 20, 60, 0.6));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    padding: 2px 4px;
    border-radius: 2px;
    color: #fff;
    animation: selectText 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 1s;
}
@keyframes selectText {
    0% { background-size: 0% 100%; }
    100% { background-size: 100% 100%; }
}
#portfolio-container {
    display: flow-root;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
.category-section {
    padding: 10px 0 30px var(--container-padding);
    position: relative;
    border-top: none;
}
.category-section:first-child { padding-top: 30px; }
.category-section:first-child .category-title { margin-top: 0 !important; }
.category-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.category-title::before {
    content: "";
    display: block;
    width: 4px; height: 24px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent);
}
.carousel-container { position: relative; }
.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 60px 60px 60px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
}
.carousel::-webkit-scrollbar { display: none; }
.nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-base);
    opacity: 0;
}
.nav-left { left: 10px; }
.nav-right { right: 10px; }
.carousel-container:hover .nav-btn { opacity: 1; }
.nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-50%) scale(1.1);
}
.card {
    min-width: 300px; max-width: 300px;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: var(--radius-md);
    cursor: pointer;
    background-color: #121212;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    opacity: 0.8;
}
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2), transparent);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out);
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}
.card:hover img { transform: scale(1.05); opacity: 1; }
.card:hover .card-overlay { opacity: 1; transform: translateY(0); }
.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.card-tags {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.info-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.info-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: white;
    padding: 0 20px;
}
.info-card:hover i { transform: scale(1.2); color: white; }
.skeleton {
    background: #1a1a1a;
    pointer-events: none;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
}
.skeleton::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}
.skeleton-thumb { width: 100%; height: 100%; background-color: #1a1a1a; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.modal {
    display: none;
    position: fixed; inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    z-index: 2000;
    justify-content: center; align-items: center;
    padding: 40px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s;
}
.modal.active {
    display: flex;
    animation: fadeIn 0.4s var(--ease-out) forwards;
    opacity: 1; visibility: visible;
}
.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.video-modal-content { max-width: 1100px; }
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; height: 0;
    background: black;
    display: flex; align-items: center; justify-content: center;
}
.video-wrapper::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin-top: -20px; margin-left: -20px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 0;
}
.video-wrapper iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1; background: black;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-info { padding: 32px; position: relative; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.modal-info h3 { font-size: 2rem; font-family: var(--font-heading); color: white; line-height: 1.1; }
.badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    font-size: 0.7rem; font-weight: 600;
    color: #ddd; border-radius: 100px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.tools { color: var(--accent); font-size: 0.9rem; font-weight: 500; margin-bottom: 20px; display: block; }
#modalDesc { color: #aaa; font-size: 1rem; line-height: 1.7; max-width: 80%; }
.modal-content.text-only .video-wrapper { display: none; }
.modal-content.text-only .modal-info { padding-top: 50px; }
.close-modal {
    position: absolute; top: 15px; right: 15px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    transition: transform 0.1s ease, background-color 0.2s;
}
.close-modal:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.close-modal:active { transform: scale(0.9); background: var(--accent-dark); transition: none; }
.about-section {
    background-color: #080808;
    padding: 100px var(--container-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: center;
}
.container-about { max-width: 1000px; width: 100%; }
.about-wrapper { display: flex; align-items: flex-start; justify-content: center; gap: 60px; margin-bottom: 60px; text-align: left; }
.about-image-container { flex-shrink: 0; position: relative; }
.profile-pic {
    width: 280px; height: 280px;
    object-fit: cover; border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}
.profile-pic:hover { border-color: var(--accent); transform: scale(1.02); }
.about-text-content { flex: 1; }
.about-text-content h3 { font-family: var(--font-heading); font-size: 2.5rem; color: white; margin-bottom: 20px; letter-spacing: -0.02em; }
.featured-quote {
    font-family: var(--font-heading);
    color: #a3a3a3; font-size: 1.1rem;
    font-weight: 600; line-height: 1.4;
    margin-bottom: 30px; padding-left: 20px;
    border-left: 4px solid var(--accent);
    font-style: italic;
}
.about-text-content p:not(.featured-quote) { font-size: 1.05rem; color: #a3a3a3; line-height: 1.8; margin-bottom: 20px; font-weight: 300; }
.tech-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; }
.tech-stack span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ccc; padding: 10px 24px;
    border-radius: 100px; font-size: 0.9rem;
    font-weight: 500; transition: all 0.3s ease;
}
.tech-stack span:hover { border-color: var(--accent); color: white; background: rgba(217, 4, 41, 0.1); transform: translateY(-3px); }
.social-links { display: flex; justify-content: center; gap: 20px; }
.social-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 25px var(--accent-glow); }
footer {
    background-color: #050505;
    padding: 40px 0; border-top: 1px solid #111;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 20px;
}
.copyright { color: #444; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.05em; margin: 0; }
#admin-trigger {
    background: transparent; border: 1px solid #222;
    color: #333; font-family: var(--font-heading);
    font-weight: 700; font-size: 0.8rem;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; transition: all 0.4s ease;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.5;
}
#admin-trigger:hover { opacity: 1; color: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); transform: rotate(180deg); }
#fab-add-project {
    position: fixed; bottom: 40px; left: 40px; right: auto;
    background: var(--accent); color: white;
    border: none; padding: 14px 28px;
    border-radius: 100px; font-family: var(--font-heading);
    font-weight: 700; box-shadow: 0 10px 30px var(--accent-glow);
    z-index: 1000; cursor: pointer;
    display: none; align-items: center; gap: 10px;
    transition: var(--transition-base);
}
#fab-add-project:hover { transform: translateY(-5px) scale(1.05); background: #f00; }
body.admin-mode #fab-add-project { display: flex; animation: fadeIn 0.5s ease; }
.admin-controls { position: absolute; top: 12px; right: 12px; display: none; gap: 8px; z-index: 101; }
body.admin-mode .admin-controls { display: flex; }
.ctrl-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); transition: 0.2s;
}
.btn-edit { background: rgba(243, 156, 18, 0.8); }
.btn-del { background: rgba(231, 76, 60, 0.8); }
.ctrl-btn:hover { transform: scale(1.1); }
.admin-modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px; width: 100%;
    padding: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}
.admin-tabs { display: flex; background: #0f0f0f; border-bottom: 1px solid #333; }
.tab-btn {
    flex: 1; background: transparent; border: none;
    padding: 15px; color: #888;
    font-family: var(--font-heading); font-weight: 600;
    font-size: 0.9rem; cursor: pointer; text-transform: uppercase;
    transition: 0.2s; border-bottom: 3px solid transparent;
}
.tab-btn:hover { background: #151515; color: #ccc; }
.tab-btn.active { background: #1a1a1a; color: var(--accent); border-bottom: 3px solid var(--accent); }
.tab-content { display: none; padding: 25px; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
#formTitle, .tab-content h3 { margin-bottom: 20px; font-family: var(--font-heading); color: white; font-size: 1.1rem; border-left: 4px solid var(--accent); padding-left: 10px; }
.admin-form .form-group { margin-bottom: 15px; }
.admin-form label { display: block; color: #ccc; font-size: 0.85rem; margin-bottom: 5px; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%; background: #252525; border: 1px solid #444;
    color: white; padding: 10px; border-radius: 4px;
    font-family: var(--font-body); font-size: 0.9rem;
}
.admin-form input:focus { border-color: var(--accent); outline: none; background: #333; }
.file-input { width: 100%; background: #252525; border: 1px solid #444; border-radius: 4px; padding: 0; color: #999; font-family: var(--font-body); font-size: 0.9rem; cursor: pointer; overflow: hidden; }
.file-input::file-selector-button {
    background-color: #333; color: white; border: none;
    border-right: 1px solid #444; padding: 12px 20px;
    margin-right: 15px; font-family: var(--font-heading);
    font-weight: 600; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 0.05em; cursor: pointer;
    transition: all 0.3s ease;
}
.file-input:hover::file-selector-button { background-color: var(--accent); color: white; }
.admin-actions { display: flex; gap: 10px; margin-top: 20px; border-top: 1px solid #333; padding-top: 15px; }
.btn-success { flex: 2; background: #2ecc71; color: white; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-weight: 700; }
.btn-success:hover { background: #27ae60; }
.btn-danger { flex: 1; background: #e74c3c; color: white; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-weight: 700; }
.btn-danger:hover { background: #c0392b; }
.add-cat-box { display: flex; gap: 10px; margin-bottom: 20px; align-items: stretch; }
#newCatName { flex: 1; background: #252525; border: 1px solid #444; color: white; padding: 12px; border-radius: 4px; font-family: var(--font-body); font-size: 0.9rem; transition: 0.3s; }
#newCatName:focus { border-color: var(--accent); outline: none; background: #333; }
.cat-list { list-style: none; padding: 0; border: 1px solid #333; border-radius: 4px; background: #111; max-height: 250px; overflow-y: auto; }
.cat-item { padding: 10px 15px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.cat-item:last-child { border-bottom: none; }
.cat-item span { font-size: 0.9rem; color: #ddd; }
.cat-del-btn { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1.2rem; }
.cat-del-btn:hover { color: #ff0000; }
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 32px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1500; transition: all 0.3s ease; text-decoration: none;
    animation: pulseBtn 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); background-color: #1ebe57; }
#backToTop {
    position: fixed; bottom: 105px; right: 35px;
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); color: white;
    border-radius: 50%; cursor: pointer; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease; z-index: 1400;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    -webkit-tap-highlight-color: transparent;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) {
    #backToTop:hover {
        background: var(--accent);
        border-color: var(--accent);
        transform: translateY(-5px);
        box-shadow: 0 5px 15px var(--accent-glow);
    }
}
#backToTop:active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(0.9);
}
#copy-toast {
    visibility: hidden; min-width: 250px;
    background-color: #333; color: #fff;
    text-align: center; border-radius: 50px;
    padding: 16px; position: fixed; z-index: 10000;
    left: 50%; bottom: 30px; transform: translateX(-50%);
    font-size: 1rem; font-family: var(--font-body);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0; transition: opacity 0.3s, bottom 0.3s;
}
#copy-toast.show { visibility: visible; opacity: 1; bottom: 50px; }
#splash-screen {
    position: fixed; inset: 0;
    background-color: var(--bg-color); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}
#splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.splash-logo { font-family: var(--font-heading); color: white; letter-spacing: 0.1em; margin-bottom: 20px; animation: pulseLogo 1.5s infinite alternate; }
.loading-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.loading-progress { height: 100%; width: 0%; background: var(--accent); border-radius: 4px; animation: loadProgress 2s ease-in-out forwards; }
@keyframes pulseLogo { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes loadProgress { 0% { width: 0%; } 50% { width: 60%; } 100% { width: 100%; } }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { opacity: 0; animation: fadeInUp 1s var(--ease-out) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@media (max-width: 1366px) {
    .hero-floating-icons { width: 40%; }
    .hero-icon { transform: scale(0.9); }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content { max-width: 60%; padding: 0 20px; }
    .icon-pr { top: 15%; left: 5%; width: 150px; }
    .icon-ae { top: 30%; left: auto; right: 5%; width: 120px; }
    .icon-dv { top: 55%; left: 8%; width: 110px; }
    .icon-ps { top: 70%; left: auto; right: 8%; width: 100px; }
}
@media (max-width: 900px) {
    .about-wrapper { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .profile-pic { width: 200px; height: 200px; }
    .about-text-content h3 { text-align: center; font-size: 2rem; }
    .featured-quote { border-left: none; border-bottom: 3px solid var(--accent); padding-left: 0; padding-bottom: 15px; font-size: 1.2rem; text-align: center; }
}
@media (max-width: 768px) {
    .navbar { padding: 15px 15px; gap: 10px; background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%) !important; }
    .logo { font-size: 1rem; }
    .search-container input { width: 35px; padding-left: 35px; background: transparent; }
    .search-container input:focus, .search-container:hover input { width: 140px; background: rgba(0, 0, 0, 0.8); }
    .hero {
        padding: 130px 20px 60px;
        min-height: 65vh;
        background-position: 60% 0% !important; 
        background-size: 180% !important;
    }
    .hero h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 15px; }
    .hero-content { margin-top: -40px; padding: 0 15px; }
    .hero p { font-size: 1rem; line-height: 1.5; color: #ccc; max-width: 100%; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; }
    .hero-icon { filter: blur(0.8px) drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
    .icon-pr { top: 7%; left: 2%; width: 65px; }
    .icon-ae { top: 20%; left: auto; right: 2%; width: 65px; }
    .icon-dv { top: 75%; left: 5%; width: 70px; }
    .icon-ps { top: 82%; left: auto; right: 5%; width: 55px; }
    .category-section { padding-left: 20px; }
    .carousel {
        display: flex; gap: 15px; overflow-x: auto;
        padding: 10px 60px 40px 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        mask-image: none; -webkit-mask-image: none;
    }
    .nav-btn { display: none !important; }
    .card {
        min-width: 80vw; max-width: 80vw;
        scroll-snap-align: center;
        margin-right: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .card:hover { transform: none; box-shadow: none; }
    .card:active { transform: scale(0.98); }
    .card-overlay {
        opacity: 1 !important; transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, transparent 100%);
    }
    .card.info-card {
        display: flex !important; flex-direction: column !important;
        justify-content: flex-start !important; padding-top: 25px !important;
        align-items: center !important; position: relative;
    }
    .card.info-card i { font-size: 1.8rem !important; margin-bottom: 5px !important; margin-top: 0 !important; z-index: 20; position: relative; }
    .card.info-card h3 { font-size: 0.95rem !important; margin-bottom: 0 !important; line-height: 1.1 !important; padding: 0 5px; position: relative; z-index: 20; color: white !important; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
    .card.info-card .card-overlay { justify-content: flex-end !important; padding-bottom: 12px !important; background: linear-gradient(to top, rgba(0,0,0,1) 15%, transparent 80%) !important; z-index: 10; }
    .card.info-card .card-tags { font-size: 0.75rem !important; color: var(--accent) !important; font-weight: 800; letter-spacing: 0.1em; }
    .ctrl-btn { width: 44px; height: 44px; font-size: 1.2rem; background-color: rgba(0, 0, 0, 0.8); }
    #fab-add-project { bottom: 20px; left: 20px; padding: 10px 20px; font-size: 0.9rem; width: 153px; }
    #admin-trigger { transform: scale(1.2); margin-top: 10px; }
    .modal { padding: 0; align-items: flex-end; }
    .modal-content { width: 100%; height: 100%; border-radius: 0; border: none; display: flex; flex-direction: column; overflow-y: auto; }
    .video-wrapper { position: sticky; top: 0; z-index: 10; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
    .modal-info { padding: 25px 20px 80px 20px; }
    .modal-info h3 { font-size: 1.6rem; margin-top: 10px; }
    .close-modal { top: 15px; right: 15px; width: 44px; height: 44px; background: rgba(0, 0, 0, 0.8); z-index: 50; border: 1px solid rgba(255,255,255,0.2); }
    .whatsapp-float { width: 55px; height: 55px; bottom: 25px; right: 25px; font-size: 26px; }
    #backToTop { bottom: 90px; right: 30px; width: 45px; height: 45px; font-size: 1.2rem; }
}
.card-split-view {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.thumb-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}
.thumb-half {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    border-right: 2px solid white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}
.thumb-half img {
    width: 200%;
    height: 100%;
    object-fit: cover;
    max-width: unset;
}
.card-badge {
    position: absolute;
    bottom: 10px;
    font-size: 0.6rem;
    font-weight: 800;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
}
.bdg-before { left: 5px; }
.bdg-after { right: 5px; }
.video-wrapper {
    background: #000 !important;
    box-shadow: none !important;
}
.video-wrapper::before,
.video-wrapper::after {
    display: none !important;
    content: none !important;
}
.card-split-view {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.thumb-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}
.thumb-half {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    border: none;
}
.thumb-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-split-view::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    pointer-events: none;
}
.card:hover .thumb-full,
.card:hover .thumb-half img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}
.compare-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
}
.compare-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    user-select: none;
}
.img-clipper {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid var(--accent);
    background: #000;
}
.img-before {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}
.compare-range {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: col-resize;
    margin: 0;
}
.card-split-view {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate; 
    background-color: #0d0d0d;
}
.thumb-full, 
.thumb-half img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    position: absolute;
    top: 0; left: 0;
    margin: 0; padding: 0;
    border: none;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    transform: scale(1); 
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.thumb-full {
    z-index: 1;
}
.thumb-half {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    background-color: #0d0d0d; 
    pointer-events: none;
}
.card-split-view::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    z-index: 3;
    transform: translateX(-50%); 
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    pointer-events: none;
}
.card:hover .thumb-full,
.card:hover .thumb-half img {
    transform: scale(1.05); 
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.video-wrapper { background: #000 !important; box-shadow: none !important; }
.video-wrapper::before, .video-wrapper::after { display: none !important; }
.category-section {
    content-visibility: auto; 
    contain-intrinsic-size: 1px 300px;
}
.login-content {
    background: #121212 !important;
    border: 1px solid #333;
    border-radius: 24px !important;
    max-width: 400px !important;
    padding: 40px !important;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}
.login-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.login-header {
    margin-bottom: 30px;
}
.icon-circle {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px auto;
    color: var(--accent);
    font-size: 28px;
    border: 1px solid rgba(255,255,255,0.1);
}
.login-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.login-header p {
    color: #888;
    font-size: 0.9rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.input-group {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.login-form input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px 15px 15px 45px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.login-form input:focus {
    border-color: var(--accent);
    background: #222;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}
.login-form input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: var(--accent);
}
.btn-login {
    margin-top: 10px;
    background: var(--accent);
    color: black;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.2s, filter 0.2s;
}
.btn-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.btn-login:active {
    transform: scale(0.98);
}
.close-login-modal {
    color: #666;
    top: 15px;
    right: 20px;
    font-size: 30px;
    opacity: 0.7;
}
.close-login-modal:hover {
    color: white;
    opacity: 1;
}
@media (max-width: 768px) {
    .modal.active {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }
    .modal-content {
        margin: auto !important;
        width: 100% !important;
        max-width: 400px;
        padding: 0 !important;
        border-radius: 16px !important;
        overflow: hidden;
        background: #1a1a1a;
        box-shadow: 0 15px 50px rgba(0,0,0,0.9);
        max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    .close-modal {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        color: white;
        font-size: 20px;
        display: flex; align-items: center; justify-content: center;
        z-index: 200;
        text-shadow: none;
        opacity: 1;
        cursor: pointer;
        border: 1px solid rgba(255,255,255,0.2);
    }
    .video-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
        background: #000;
        position: relative;
        flex-shrink: 0;
    }
    .compare-container, .compare-img, .thumb-full, .thumb-half img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
    }
    .compare-range {
        width: calc(100% + 28px) !important;
        margin-left: -14px !important;      
        position: absolute !important;      
        top: 0;
        left: 0;
        opacity: 1 !important; 
        background: transparent !important; 
        z-index: 99 !important;
        -webkit-appearance: none;
        appearance: none;
        height: 100%;
        padding: 0;
    }
    .compare-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 15px; 
        height: 15px;
        background: var(--accent); 
        border: 2px solid white;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.5);
        position: relative;
        z-index: 100;
    }
    .compare-range::-moz-range-thumb {
        width: 28px; height: 28px;
        background: var(--accent);
        border: 2px solid white;
        border-radius: 50%;
        border: none;
    }
    .modal-info {
        padding: 20px;
        background: #1a1a1a;
    }
    .card-split-view::after {
        width: 2px !important;
        box-shadow: 0 0 5px rgba(0,0,0,0.8);
    }
}
@media (max-width: 768px) {
    .login-content {
        width: 85% !important;       
        padding: 35px 25px !important;
        margin: auto !important;      
        overflow: visible !important; 
        background: #121212 !important; 
    }
    .login-header {
        margin-top: 5px;
    }
    .icon-circle {
        margin-top: 5px;
        width: 50px;    
        height: 50px;
        font-size: 24px;
    }
    .login-form input {
        font-size: 16px !important;
        padding: 12px 12px 12px 40px;
    }
    .btn-login {
        padding: 12px;
    }
    @media (max-width: 768px) {
}
}
    .card-badge {
        position: absolute !important;
        top: 10px !important;   
        bottom: auto !important; 
        z-index: 20;            
        padding: 3px 5px;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        box-shadow: 0 2px 2px rgba(0,0,0,0.8); 
    }
.modal.active {
    display: flex !important; 
    align-items: center;    
    justify-content: center;
    padding: 40px; 
    overflow: hidden; 
}
.modal-content {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 900px;
    max-height: 90vh; 
    display: flex;
    flex-direction: column; 
    position: relative;
    margin: 0; 
    top: auto; 
    left: auto; 
    transform: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-wrapper {
    flex-shrink: 0; 
    width: 100%;
    background: #000;
    max-height: 60vh; 
}
.modal-info {
    flex: 1; 
    overflow-y: auto; 
    padding: 30px;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}
.modal-info::-webkit-scrollbar { width: 8px; }
.modal-info::-webkit-scrollbar-track { background: #1a1a1a; }
.modal-info::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.modal-content.text-only {
    background: linear-gradient(160deg, #222 0%, #0a0a0a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 
                0 0 20px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.modal-content.text-only::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 10%;
    filter: blur(200px);
    pointer-events: none;
}
.modal-content.text-only #modalTitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}
.modal-content.text-only #modalDesc {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e0e0e0;
    font-weight: 300;
    white-space: pre-wrap;
    position: relative;
    z-index: 2;
}
.modal-content.text-only .close-modal {
    background: rgba(255, 255, 255, 0.1);
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    font-size: 20px;
    border: none;
    transition: all 0.3s ease;
}
.modal-content.text-only .close-modal:hover {
    background: var(--accent);
    color: black;
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    .modal-content.text-only #modalTitle {
        font-size: 1.5rem;
        margin-top: 20px;
    }
    .modal-content.text-only #modalDesc {
        font-size: 0.95rem;
    }
}

.video-wrapper.vertical-wrapper {
    aspect-ratio: 9/16 !important;
    max-width: 350px;
    margin: 0 auto;  
    background: transparent;
}

@media (max-width: 768px) {
    .video-wrapper.vertical-wrapper {
        max-width: 100%;
        max-height: 60vh;
    }
}