/* ====================================
   RESET E VARIÁVEIS
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores */
    --background: hsl(0, 0%, 6%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(0, 0%, 8%);
    --border: hsl(0, 0%, 18%);
    --muted-foreground: hsl(0, 0%, 60%);
    --accent: hsl(210, 100%, 60%);
    --secondary: hsl(0, 0%, 15%);
    
    /* Tipografia */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Espaçamento */
    --container-padding: 1rem;
    
    /* Transições */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, hsl(0, 0%, 3%), hsl(0, 0%, 8%));
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Film Grain Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====================================
   NAVIGATION
   ==================================== */
#navigation {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

#navigation.scrolled {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

#navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu button {
    position: relative;
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-menu button:hover {
    color: var(--foreground);
}

.nav-menu button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu button:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: rgba(15, 15, 15, 0.95);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu button {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.mobile-menu button:hover {
    color: var(--foreground);
    background: var(--secondary);
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: glow 6s ease-in-out infinite;
}

.glow-1 {
    top: 25%;
    left: 25%;
    width: 300px;
    height: 300px;
    background: var(--accent);
}

.glow-2 {
    bottom: 25%;
    right: 25%;
    width: 400px;
    height: 400px;
    background: var(--foreground);
    animation-delay: 1.5s;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    display: block;
    background: linear-gradient(to right, var(--foreground), var(--muted-foreground));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--accent);
    background: rgba(99, 179, 237, 0.1);
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--muted-foreground);
    border-radius: 20px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--muted-foreground);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--foreground);
    color: var(--background);
}

.btn-primary:hover {
    background: var(--muted-foreground);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.btn-accent {
    background: var(--accent);
    color: var(--foreground);
}

.btn-accent:hover {
    background: hsl(210, 100%, 50%);
    transform: scale(1.05);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ====================================
   SECTIONS
   ==================================== */
.section {
    padding: 5rem 1rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

.skills-section {
    margin-top: 2rem;
}

.skills-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skills-tags span {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.skills-tags span:hover {
    border-color: var(--accent);
    background: rgba(99, 179, 237, 0.1);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.highlight-card {
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 179, 237, 0.1);
}

.highlight-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(99, 179, 237, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.5rem;
    transition: var(--transition);
}

.highlight-card:hover .highlight-icon {
    background: rgba(99, 179, 237, 0.2);
    transform: scale(1.1);
}

.highlight-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ====================================
   PROJECTS SECTION
   ==================================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-image {
    position: relative;
    width: 100%;          /* container ocupa largura disponível */
    padding-top: 100%;    /* mantém proporção 1:1 (quadrado) */
    overflow: hidden;
    background: var(--secondary);
}

.project-image img {
    position: absolute;   /* preenche o container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;    /* mantém proporção da imagem sem distorcer */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 0.95;
}

.project-buttons {
    display: flex;
    gap: 0.5rem;
}

.project-content {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

.project-client {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tools span {
    padding: 0.25rem 0.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* ====================================
   SERVICES SECTION
   ==================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(99, 179, 237, 0.1);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(99, 179, 237, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(99, 179, 237, 0.2);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--accent);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    transition: var(--transition);
}

.service-link:hover {
    text-decoration: underline;
}

.services-cta {
    text-align: center;
}

.services-cta p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ====================================
   CONTACT SECTION
   ==================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.contact-item:hover .contact-value {
    color: var(--accent);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(99, 179, 237, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: rgba(99, 179, 237, 0.2);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 500;
    transition: var(--transition);
}

.contact-hours {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-hours h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.contact-hours p {
    color: var(--muted-foreground);
}

.contact-tip {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(99, 179, 237, 0.05);
    border: 1px solid rgba(99, 179, 237, 0.2);
    border-radius: 0.5rem;
}

.contact-tip p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card);
}

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-links a:hover {
    border-color: var(--accent);
    background: rgba(99, 179, 237, 0.1);
    transform: scale(1.1);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-bottom .fa-heart {
    color: var(--accent);
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   RESPONSIVE - TABLET
   ==================================== */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    .desktop-menu {
        display: flex !important;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ====================================
   RESPONSIVE - DESKTOP
   ==================================== */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====================================
   RESPONSIVE - MOBILE
   ==================================== */
@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    #navigation .container {
        height: 64px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }
}

