/* ==========================================================================
   PORTFÓLIO PREMIUM - SIDNEY ROJER
   Programador PHP (Pleno 9 Anos) & Gestor de Tráfego (Sênior 5 Anos)
   ========================================================================== */

:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 33, 0.75);
    --bg-card-hover: rgba(26, 32, 48, 0.85);
    --bg-nav: rgba(10, 12, 16, 0.85);
    
    --accent-amber: #ff9d00;
    --accent-orange: #ff6c00;
    --accent-glow: rgba(255, 157, 0, 0.35);
    --accent-glow-subtle: rgba(255, 157, 0, 0.12);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 157, 0, 0.4);
    
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 157, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(255, 108, 0, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: var(--accent-glow-subtle);
    border: 1px solid rgba(255, 157, 0, 0.25);
    color: var(--accent-amber);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(10, 12, 16, 0.95);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-badge {
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
    color: #000;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-amber);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-amber);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
    color: #0b0e14;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 157, 0, 0.5);
    color: #000;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-amber);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-badge i {
    color: var(--accent-amber);
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 580px;
}

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

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-halo {
    position: relative;
    width: 380px;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 157, 0, 0.3);
    box-shadow: 0 0 50px rgba(255, 157, 0, 0.25);
}

.hero-image-halo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
}

.hero-floating-card.card-top {
    top: -20px;
    left: -20px;
    border-left: 3px solid var(--accent-amber);
}

.hero-floating-card.card-bottom {
    bottom: -20px;
    right: -20px;
    border-left: 3px solid var(--accent-orange);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 157, 0, 0.15);
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-text h5 {
    font-size: 0.9rem;
    color: #ffffff;
}

.card-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* STATS COUNTER BAR */
.stats-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(18, 22, 33, 0.4);
}

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

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-amber);
    text-shadow: 0 0 20px rgba(255, 157, 0, 0.3);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ABOUT & DUAL EXPERTISE */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.about-img-container img {
    width: 100%;
    display: block;
}

.about-badge-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
}

.dual-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.dual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
    opacity: 0;
    transition: var(--transition);
}

.dual-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 157, 0, 0.3);
    background: var(--bg-card-hover);
}

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

.dual-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dual-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 157, 0, 0.1);
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.dual-card h4 {
    font-size: 1.15rem;
}

.dual-card .tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-amber);
    text-transform: uppercase;
}

.dual-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(255, 157, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 157, 0, 0.2), rgba(255, 108, 0, 0.05));
    border: 1px solid rgba(255, 157, 0, 0.3);
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

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

.service-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-highlights li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-highlights li i {
    color: var(--accent-amber);
    font-size: 0.75rem;
}

/* PORTFOLIO SHOWCASE */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
    color: #0b0e14;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 157, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.project-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-amber);
    border: 1px solid rgba(255, 157, 0, 0.3);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.project-metric-pill {
    background: rgba(255, 157, 0, 0.1);
    border: 1px solid rgba(255, 157, 0, 0.2);
    color: var(--accent-amber);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-tech {
    font-size: 0.78rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

/* TIMELINE / EXPERIENCE */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-amber);
    box-shadow: 0 0 15px var(--accent-amber);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: var(--radius-md);
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-period {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 0.35rem;
}

.timeline-role {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.timeline-skills {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* DIRECT WHATSAPP CONTACT SECTION */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 157, 0, 0.1);
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.channel-icon.wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.channel-details h5 {
    font-size: 0.95rem;
    color: #fff;
}

.channel-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Form Controls */
.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(10, 12, 16, 0.6);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-amber);
    box-shadow: 0 0 12px rgba(255, 157, 0, 0.25);
}

select.form-control option {
    background: #11141d;
    color: #ffffff;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-full);
    background: #25d366;
    color: #0b0e14;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #121621;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-amber);
    color: #000;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: #07080b;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 45px;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 1;
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}
