/* ========================================
   COMPONENTS.CSS — UI Components
   GaDev.it — Giuseppe Apolito
   ======================================== */

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(5, 10, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(5, 10, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

.logo-bracket {
    color: var(--accent-cyan);
    font-weight: 400;
}

.logo-text {
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    letter-spacing: 0.5px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 1px;
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: none;
    z-index: 1001;
}

@media (pointer: coarse) { .hamburger { cursor: pointer; } }

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-decoration: none;
}

@media (pointer: coarse) { .btn { cursor: pointer; } }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.35), 0 0 40px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
    color: var(--bg-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: inset 0 0 0 0 var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    background: rgba(0, 255, 136, 0.06);
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 20px;
    font-family: var(--font-code);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: var(--font-code);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    min-height: 2em;
}

.typing-prefix {
    color: var(--text-muted);
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-cyan);
    font-weight: 300;
    margin-left: 2px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.hero-location .icon-inline {
    color: var(--accent-violet);
}

.hero-bio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual / Avatar */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 50%;
    animation: rotate-ring 20s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.ring-2 {
    width: 85%;
    height: 85%;
    border-color: rgba(123, 47, 255, 0.15);
    animation-direction: reverse;
    animation-duration: 15s;
}

.ring-2::before {
    background: var(--accent-violet);
    box-shadow: 0 0 15px var(--accent-violet);
}

.ring-3 {
    width: 70%;
    height: 70%;
    border-color: rgba(0, 255, 136, 0.1);
    animation-duration: 25s;
}

.ring-3::before {
    background: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green);
}

.hero-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--surface-card);
    border: 2px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.avatar-placeholder {
    color: var(--accent-cyan);
}

.avatar-placeholder i,
.avatar-placeholder svg {
    width: 80px;
    height: 80px;
    stroke-width: 1;
}

/* Floating icons */
.floating-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.floating-icon svg, .floating-icon i {
    width: 20px;
    height: 20px;
}

.fi-1 { top: 10%; left: 5%; animation-delay: 0s; }
.fi-2 { top: 5%; right: 10%; animation-delay: 1s; color: var(--accent-violet); }
.fi-3 { bottom: 15%; left: 0%; animation-delay: 2s; color: var(--accent-green); }
.fi-4 { bottom: 5%; right: 5%; animation-delay: 0.5s; color: var(--accent-violet); }
.fi-5 { top: 50%; left: 0%; animation-delay: 1.5s; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fade-in-up 1s ease 1.5s both;
    z-index: 5;
}

.scroll-arrow {
    animation: bounce-down 2s ease-in-out infinite;
}

.scroll-arrow svg, .scroll-arrow i {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.services-section {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glow-cyan);
    background: var(--surface-card-hover);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    transition: all var(--transition-base);
}

.service-icon svg, .service-icon i {
    width: 26px;
    height: 26px;
}

.service-card:hover .service-icon {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.icon-mobile { color: var(--accent-green); background: rgba(0, 255, 136, 0.08); border-color: rgba(0, 255, 136, 0.15); }
.service-card:hover .icon-mobile { background: rgba(0, 255, 136, 0.15); box-shadow: 0 0 20px rgba(0, 255, 136, 0.1); }

.icon-desktop { color: var(--accent-violet); background: rgba(123, 47, 255, 0.08); border-color: rgba(123, 47, 255, 0.15); }
.service-card:hover .icon-desktop { background: rgba(123, 47, 255, 0.15); box-shadow: 0 0 20px rgba(123, 47, 255, 0.1); }

.icon-ai { color: var(--accent-cyan); }
.icon-training { color: var(--accent-green); background: rgba(0, 255, 136, 0.08); border-color: rgba(0, 255, 136, 0.15); }
.service-card:hover .icon-training { background: rgba(0, 255, 136, 0.15); box-shadow: 0 0 20px rgba(0, 255, 136, 0.1); }
.icon-consult { color: var(--accent-violet); background: rgba(123, 47, 255, 0.08); border-color: rgba(123, 47, 255, 0.15); }
.service-card:hover .icon-consult { background: rgba(123, 47, 255, 0.15); box-shadow: 0 0 20px rgba(123, 47, 255, 0.1); }

.service-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    background: var(--gradient-stats);
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glow-cyan);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio-section {
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glow-cyan);
}

.portfolio-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

/* Placeholder gradient for failed images */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}

.portfolio-card-body {
    padding: 24px;
}

.portfolio-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid;
}

.badge-automotive { color: #FF6B6B; border-color: rgba(255,107,107,0.3); background: rgba(255,107,107,0.08); }
.badge-sport { color: var(--accent-green); border-color: rgba(0,255,136,0.3); background: rgba(0,255,136,0.08); }
.badge-impianti { color: var(--accent-cyan); border-color: rgba(0,240,255,0.3); background: rgba(0,240,255,0.08); }
.badge-cooperativa { color: #FFB86C; border-color: rgba(255,184,108,0.3); background: rgba(255,184,108,0.08); }
.badge-edilizia { color: #F1FA8C; border-color: rgba(241,250,140,0.3); background: rgba(241,250,140,0.08); }
.badge-beauty { color: #FF79C6; border-color: rgba(255,121,198,0.3); background: rgba(255,121,198,0.08); }

.portfolio-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.portfolio-card-url {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.portfolio-card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-cyan);
    padding: 8px 0;
    transition: gap var(--transition-base), color var(--transition-base);
}

.portfolio-card-link:hover {
    gap: 12px;
    color: var(--accent-green);
}

.portfolio-card-link svg, .portfolio-card-link i {
    width: 18px;
    height: 18px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper,
.contact-info-wrapper {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color var(--transition-base);
}

.textarea-wrapper .input-icon {
    top: 14px;
    align-self: flex-start;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A9AB8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.input-wrapper select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper select:focus ~ .input-icon,
.input-wrapper textarea:focus ~ .input-icon {
    color: var(--accent-cyan);
}

/* Invert icon and input order for focus effect: icon is before input in DOM */
.input-wrapper:has(input:focus) .input-icon,
.input-wrapper:has(select:focus) .input-icon,
.input-wrapper:has(textarea:focus) .input-icon {
    color: var(--accent-cyan);
}

.form-error {
    font-size: 0.8rem;
    color: #FF6B6B;
    min-height: 0;
    transition: all var(--transition-fast);
}

.form-error.visible {
    min-height: 1.2em;
}

/* Checkbox */
.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-card);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 700;
}

/* Submit button */
.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(5, 10, 20, 0.3);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* reCAPTCHA widget */
.recaptcha-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.recaptcha-group .g-recaptcha {
    transform-origin: center;
}

.recaptcha-group .form-error {
    text-align: center;
}

@media (max-width: 400px) {
    .recaptcha-group .g-recaptcha {
        transform: scale(0.85);
    }
}

/* Form status */
.form-status {
    padding: 0;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    text-align: center;
    transition: all var(--transition-base);
    overflow: hidden;
    max-height: 0;
}

.form-status.success {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent-green);
    padding: 14px;
    max-height: 100px;
}

.form-status.error {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #FF6B6B;
    padding: 14px;
    max-height: 100px;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-item svg, .info-item i {
    width: 22px;
    height: 22px;
    color: var(--accent-cyan);
    min-width: 22px;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.info-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Social Links */
.social-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    background: var(--surface-card);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-3px);
}

/* FAQ */
.faq-section {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item.active {
    border-color: var(--border-card-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    text-align: left;
    transition: color var(--transition-base);
}

.faq-question:hover {
    color: var(--accent-cyan);
}

.faq-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--text-muted);
    transition: transform var(--transition-base), color var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-answer p {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
    background: var(--bg-secondary);
}

.footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-credits {
    margin-top: 6px;
    font-size: 0.82rem;
}

/* ==========================================
   VIEW ALL BUTTON (Homepage sections)
   ========================================== */
.section-view-all {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.section-view-all .btn {
    padding: 16px 40px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   PAGE HERO (Subpages)
   ========================================== */
.page-hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero .section-title {
    margin-bottom: 16px;
}

.page-hero .section-subtitle {
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    background: var(--surface-card);
    transition: all var(--transition-base);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    color: var(--accent-cyan);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateX(-4px);
}

.back-link svg, .back-link i {
    width: 16px;
    height: 16px;
}

/* ==========================================
   PORTFOLIO FILTER (Subpage — Service Tabs)
   ========================================== */
.portfolio-filter-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.portfolio-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.portfolio-filter-btn svg,
.portfolio-filter-btn i {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.portfolio-filter-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--border-card);
}

.portfolio-filter-btn:hover svg,
.portfolio-filter-btn:hover i {
    opacity: 1;
}

.portfolio-filter-btn.active {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08),
                inset 0 0 12px rgba(0, 240, 255, 0.04);
}

.portfolio-filter-btn.active svg,
.portfolio-filter-btn.active i {
    opacity: 1;
}

.portfolio-filter-btn.empty {
    opacity: 0.3;
    pointer-events: none;
}

/* Empty State */
.portfolio-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
    background: var(--surface-card);
    border: 1px dashed var(--border-card);
    border-radius: var(--border-radius-lg);
}

.portfolio-empty-state .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.portfolio-empty-state p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.portfolio-empty-state p strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* ==========================================
   PORTFOLIO CATEGORIES (legacy — Subpage)
   ========================================== */
.portfolio-category-section {
    margin-bottom: 60px;
}

.portfolio-category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-card);
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-header .category-count {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 12px;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: 50px;
}

.category-header .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-header .category-icon svg,
.category-header .category-icon i {
    width: 20px;
    height: 20px;
}

/* ==========================================
   REVIEWS PAGE — All Reviews Grid
   ========================================== */
.reviews-page .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
}

.reviews-page .review-card-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

/* Responsive */
@media (max-width: 1024px) {
    .reviews-page .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-page .reviews-grid {
        grid-template-columns: 1fr;
    }
    .page-hero {
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 20px;
    }
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
    position: relative;
    z-index: 1;
    padding: 80px 0 100px;
}

.newsletter-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.newsletter-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-subtitle strong {
    color: var(--accent-green);
    font-weight: 700;
}

.newsletter-form {
    position: relative;
    z-index: 1;
}

.newsletter-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.newsletter-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-input-group .input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color var(--transition-base);
}

.newsletter-input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-primary);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.newsletter-input-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.newsletter-input-group input:focus + .input-icon,
.newsletter-input-group input:focus ~ .input-icon {
    color: var(--accent-cyan);
}

.newsletter-input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-form .recaptcha-group {
    display: flex;
    justify-content: center;
}

.newsletter-form .btn {
    margin-top: 8px;
}

.newsletter-error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    border: 1px solid rgba(255, 107, 107, 0.3);
    font-size: 0.9rem;
}

.newsletter-success {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-size: 0.95rem;
    font-weight: 500;
}

.newsletter-privacy {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.newsletter-privacy a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .newsletter-card {
        padding: 36px 24px;
    }
    .newsletter-input-row {
        grid-template-columns: 1fr;
    }
}