/* =========================
   VARIÁVEIS & RESET (VIBRANT THEME - RESTORED)
========================= */
:root {
    --primary-color: #0061ff;
    --accent-color: #00d4ff;
    --gold: #FFD700;
    --primary-gradient: linear-gradient(135deg, #0061ff 0%, #00d4ff 100%);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --dark-bg: #1a202c;
    --white: #ffffff;
    --text-main: #2d3748;
    --text-light: #718096;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f7fafc;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================
   HEADER
========================= */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid transparent;
    border-image: var(--primary-gradient) 1;
}

/* Logo Image - Aumentada 50% (75px) */
.logo img {
    height: 75px;
    width: auto;
    display: block;
}

.logo {
    display: block;
}

header nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav ul li a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    position: relative;
}

header nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

header nav ul li a:hover::before {
    width: 100%;
}

/* Botão Sistema Áureo - Discreto (Restrito) */
.btn-restrito {
    background: transparent;
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-restrito:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    border-color: #cbd5e0;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    /* Neutral dark background to ensure text contrast, allowing lens color to show through */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1562654501-a0ccc0fc3fb1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 8rem 5% 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;

    /* Variable for the lens color */
    --hero-lens-color: hsla(210, 100%, 50%, 0.4);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Dynamic Lens Overlay */
    background-color: var(--hero-lens-color);
    mix-blend-mode: screen;
    /* 'Screen' adds light/color to the dark background */
    z-index: 0;
    pointer-events: none;
    transition: background-color 0.8s ease;
    /* Smooth fade for slide changes */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e0;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: #1a202c;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* =========================
   SEÇÕES & CARDS
========================= */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    color: var(--text-main);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy feel */
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card p {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: initial !important;
    position: relative;
    z-index: 2;
}

.card h3 {
    color: #000000 !important;
}

/* Tech Hover Effect */
.card::after {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 97, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 212, 255, 0.25);
    /* Neon Cyan Shadow */
    border-top-color: var(--accent-color);
}

.card:hover::after {
    opacity: 1;
}

.card i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
    /* Neon Glow */
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

/* =========================
   SOBRE & DETALHES
========================= */
.about-summary {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}


/* =========================
   PORTFOLIO PREVIEW
========================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    /* group: hover removed as it is not valid CSS */
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.portfolio-info {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    border-bottom-color: var(--primary-color);
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 5px solid;
    border-image: var(--primary-gradient) 1;
}

footer p {
    opacity: 0.7;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 50vw;
    /* 50% of viewport width as requested */
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.lightbox-content.zoomed {
    transform: scale(2);
    cursor: grab;
    max-width: none;
    /* Allow expansion beyond 50% when zoomed */
    max-height: none;
}

.lightbox-content.zoomed:active {
    cursor: grabbing;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Animation */
.lightbox-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* =========================
   HERO SLIDER
========================= */
.hero {
    position: relative;
    /* Maintain existing hero background/padding */
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 400px;
    /* Ensure space for slides */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slide {
    display: none;
    /* Hide all by default */
    text-align: center;
    animation: fadeEffect 1s;
    /* Default fade */
    width: 100%;
}

.hero-slide.active {
    display: block;
}

/* Slide Animation - Lateral */
@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dots / Indicators */
.slider-dots {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 350px;
    }
}