/* portfolio.css - Dark Mode Tech Platform Premium Styling */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --primary: #3b82f6;       /* Blue 500 - Electric accent */
    --primary-hover: #60a5fa; /* Blue 400 */
    --accent-purple: #a855f7; /* Brand Purple */
    --accent-cyan: #38bdf8;   /* Brand Cyan */
    --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    
    --bg-main: #09090b;       /* Zinc 950 - Almost Black */
    --bg-card: #18181b;       /* Zinc 900 */
    --text-main: #f3f4f6;     /* Gray 100 */
    --text-muted: #9ca3af;    /* Gray 400 */
    --text-light: #6b7280;    /* Gray 500 */
    --border-color: #27272a;  /* Zinc 800 */
    
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% -20%, rgba(168, 85, 247, 0.15), transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.mono-font {
    font-family: 'Fira Code', monospace;
}

.container {
    max-width: 1280px; /* Equal to max-w-7xl across the platform */
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* =========================================
   Top Navbar (Platform Style)
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: flex;
    align-items: center;
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

.navbar-search {
    display: none;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    width: 300px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.navbar-search:hover {
    border-color: #3f3f46;
}

.navbar-search:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.navbar-search i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.navbar-search:focus-within i {
    color: var(--accent-cyan); /* or --accent-purple, Cyan contrasts well here */
}

.navbar-search input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    width: 100%;
}

@media (min-width: 768px) {
    .navbar-search {
        display: flex;
    }
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.navbar-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-link:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Menu Toggle (Mobile) --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 767px) {
    .navbar-brand img {
        height: 26px !important;
        width: 26px !important;
    }
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    .navbar-menu {
        display: none; /* Oculto por defecto en móvil */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        gap: 0.5rem;
        z-index: 99;
    }
    .navbar-menu.active {
        display: flex;
    }
    /* Estilos del Search Móvil si hace falta */
    .navbar-search {
        max-width: unset;
        width: 60%;
        margin: 0 1rem;
    }
}

/* =========================================
   Main Layout Container (2 Columns Grid)
   ========================================= */
.platform-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0 6rem;
}

@media (min-width: 1024px) {
    .platform-layout {
        grid-template-columns: 3fr 1fr; /* 75% / 25% approx */
    }
}

/* =========================================
   Left Column: Content Area
   ========================================= */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Profile Overrides */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-hero-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-hero-secondary:hover {
    background: rgba(56, 189, 248, 0.05);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.section-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--accent-cyan);
}

/* Articles Grid */
.articles-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .articles-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* BlogPost-like Card */
.article-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Fuerza altura base para estandarizar filas */
    height: 100%;
}

@media (min-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    
    .article-image-wrapper {
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(24, 24, 27, 0.8);
    box-shadow: 0 12px 40px -15px rgba(168, 85, 247, 0.3);
}

.article-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Garantiza relación de aspecto siempre */
    min-height: 200px;
    max-height: 200px;
    background-color: #1e1e24;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.03); /* Subtle scale */
}

.article-image-wrapper i {
    font-size: 3rem;
    color: var(--text-light);
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%; /* Toma el resto de tarjeta */
    flex-grow: 1; /* Garantiza que footer vaya al fondo si description no llega a 3 lineas */
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-card:hover .article-title {
    color: var(--primary-hover);
}

.article-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Soft divider */
}

/* Badges Tech (Default Behavior for Detail Views) */
.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Container for Marquee Techs (Card Behavior) --- */
.project-techs-container {
    overflow: hidden;
    flex-grow: 1;
    margin-right: 1rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.project-techs-container .project-techs {
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee-slide 15s linear infinite;
    padding-left: 0.5rem;
}

.project-techs-container:hover .project-techs {
    animation-play-state: paused;
}

@keyframes marquee-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.25rem)); } /* -50% because we physically clone the array in EJS. Offset the gap. */
}

@media (max-width: 768px) {
    .project-techs-container {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto; /* Fallback a scroll nativo en móvil */
        scrollbar-width: none; /* Oculta barra en Firefox */
    }
    .project-techs-container::-webkit-scrollbar {
        display: none; /* Oculta barra en Chrome/Safari */
    }
    .project-techs-container .project-techs {
        animation: none !important;
        padding-left: 0;
    }
    /* Ocultamos los clones en móvil para un scroll manual limpio */
    .project-techs-container .project-techs .tech-badge[aria-hidden="true"] {
        display: none;
    }
}

.tech-badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-family: 'Fira Code', monospace;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more i {
    transition: transform 0.2s;
}

.article-card:hover .read-more i {
    transform: translateX(3px); /* Arrow slightly nudges right */
}

/* =========================================
   Right Column: Content Sidebar
   ========================================= */
.sidebar-column {
    display: none; /* Hide on mobile to prioritize main content */
}

@media (min-width: 1024px) {
    .sidebar-column {
        display: block;
    }
    
    .sticky-sidebar {
        position: sticky;
        top: 100px; /* Under navbar */
    }
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 0.875rem;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-purple);
}

.widget-link i {
    width: 20px;
    text-align: center;
    color: var(--accent-cyan);
}

.widget-link:hover i {
    color: var(--accent-purple);
}

/* Empty State Override */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-light);
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

/* =========================================
   Animations (Hello Wave & Fade In Up)
   ========================================= */
@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.wave-icon {
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

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

.fade-in-up {
    opacity: 0; /* Initializes invisible for animation sequence */
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hardcoded cascade delays for IDE linter cleanliness */
.articles-feed .article-card:nth-child(1) { animation-delay: 0s; }
.articles-feed .article-card:nth-child(2) { animation-delay: 0.15s; }
.articles-feed .article-card:nth-child(3) { animation-delay: 0.3s; }
.articles-feed .article-card:nth-child(4) { animation-delay: 0.45s; }
.articles-feed .article-card:nth-child(5) { animation-delay: 0.6s; }
.articles-feed .article-card:nth-child(6) { animation-delay: 0.75s; }
.articles-feed .article-card:nth-child(7) { animation-delay: 0.9s; }
/* =========================================
   Global Footer (SaaS Style)
   ========================================= */
.platform-footer {
    background-color: #050505;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    color: var(--text-muted);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 1rem;
    display: inline-flex; /* Ensures gradient works nicely */
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-location {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav-title {
    color: var(--text-main);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-family: 'Fira Code', monospace;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-list a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav-list a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* =========================================
   Prose / Rich Text Formatting (Project Detail)
   ========================================= */

.project-content h1, .project-content h2, .project-content h3 {
    background: var(--gradient-primary); /* linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)) */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-content p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-content strong, .project-content b {
    color: var(--accent-purple);
    font-weight: 600;
}

.project-content ul, .project-content ol {
    color: #d1d5db;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-content li {
    margin-bottom: 0.5rem;
}

.project-content a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content a:hover {
    color: var(--accent-purple);
}

.project-content pre {
    position: relative;
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #27272a;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.project-content pre:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* AI Powered Badge */
.badge-ai {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 0.75rem; 
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
    letter-spacing: 0.025em;
}

/* =========================================================================
   GLOBAL PREMIUM SCROLLBARS (DARK GLASSMORPHISM)
   ========================================================================= */

/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #09090b; /* Deep dark background */
}

::-webkit-scrollbar-thumb {
    background-color: #27272a; /* Subtle dark gray */
    border-radius: 10px;
    border: 2px solid #09090b; /* Creates a floating effect by matching track color */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-purple, #a78bfa), var(--accent-cyan, #22d3ee));
}

::-webkit-scrollbar-corner {
    background: #09090b;
}

/* For Firefox Support (Standard CSS) */
* {
    scrollbar-width: thin;
    scrollbar-color: #27272a #09090b;
}

/* =========================================
   Contact Page Premium Glassmorphism
   ========================================= */
.contact-page {
    padding-top: 4rem;
    padding-bottom: 6rem;
    display: flex;
    justify-content: center;
}

.contact-glass-panel {
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(56, 189, 248, 0.5), transparent);
}

@media (min-width: 992px) {
    .contact-glass-panel {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
        padding: 4rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.contact-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(5px);
}

.social-btn:hover i {
    color: var(--accent-cyan);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group-premium {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Padding for labels */
    width: 100%;
}

.form-group-premium label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb; /* Light Gray / Whiteish */
    letter-spacing: 0.02em;
    padding-left: 0.25rem;
    transition: color 0.3s ease;
}

.form-group-premium:focus-within label {
    color: #ffffff; /* Brighter on focus */
}

.form-group-premium input,
.form-group-premium textarea {
    width: 100%;
    background: rgba(9, 9, 11, 0.6); /* Darker background conforming to dark mode */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group-premium input:focus,
.form-group-premium textarea:focus {
    background: rgba(9, 9, 11, 0.9);
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

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

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

.btn-submit-premium {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.125rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    width: 100%;
}

.btn-submit-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
}

.btn-submit-premium i {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.btn-submit-premium:hover i {
    transform: translateX(4px) translateY(-4px);
}

/* Toasts Premium */
.toast-premium {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: toastSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-success {
    border-left: 4px solid #10b981;
}
.toast-success > i { color: #10b981; font-size: 1.25rem; margin-top: 0.1rem; }

.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-error > i { color: #ef4444; font-size: 1.25rem; margin-top: 0.1rem; }

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-content strong {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

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

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: white;
}

@keyframes toastSlideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}