/* ============================================================
   OCreative — Modern Landing Page
   ============================================================ */

:root {
    --primary: #2f6fb2;
    --primary-soft: #3a81c0;
    --primary-dark: #1e4f92;
    --accent: #6c5ce7;
    --accent-2: #22d3ee;
    --text: #1c2740;
    --muted: #5f6e8f;
    --bg: #f6f9ff;
    --card: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(148, 178, 220, 0.28);
    --grad: linear-gradient(135deg, #3a81c0 0%, #6c5ce7 55%, #22d3ee 120%);
    --grad-soft: linear-gradient(135deg, rgba(58, 129, 192, 0.12), rgba(108, 92, 231, 0.10));
    --shadow-sm: 0 8px 24px rgba(35, 49, 92, 0.10);
    --shadow: 0 22px 60px rgba(35, 49, 92, 0.16);
    --shadow-lg: 0 32px 80px rgba(35, 49, 92, 0.22);
    --radius: 22px;
    --font-display: 'Rubik Doodle Shadow', cursive;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 8% 4%, rgba(58, 129, 192, 0.10), transparent 32%),
        radial-gradient(circle at 95% 16%, rgba(108, 92, 231, 0.08), transparent 30%),
        linear-gradient(180deg, #eef4ff 0%, #ffffff 42%, #eaf2ff 100%);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* ============ PRELOADER ============ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    background: radial-gradient(circle at 50% 40%, #1e4f92 0%, #0f1b3d 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo img {
    height: 84px;
    animation: pulse-logo 1.4s ease-in-out infinite;
    filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.55));
}

.preloader-bar {
    width: 160px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, #22d3ee, #3a81c0);
    animation: load-slide 1.1s ease-in-out infinite;
}

@keyframes load-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* ============ SCROLL PROGRESS ============ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    z-index: 1000;
    background: var(--grad);
    box-shadow: 0 0 12px rgba(58, 129, 192, 0.6);
}

/* ============ NAVBAR ============ */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    transition: box-shadow 0.3s ease;
}

#site-nav {
    transition: transform 0.35s ease;
}

.nav-wrapper {
    background: linear-gradient(135deg, rgba(24, 66, 120, 0.92), rgba(46, 30, 110, 0.92));
    box-shadow: 0 6px 30px rgba(20, 40, 80, 0.18);
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    transition: height 0.35s ease;
}

.navbar-fixed.scrolled .nav-inner {
    height: 60px;
}

.navbar-fixed.scrolled .nav-wrapper {
    background: rgba(17, 36, 78, 0.9);
    box-shadow: 0 8px 34px rgba(15, 30, 66, 0.35);
    backdrop-filter: blur(14px);
}

#logo-nav img {
    height: 56px;
    max-height: 56px;
    transition: height 0.35s ease;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.5));
}

.navbar-fixed.scrolled #logo-nav img {
    height: 46px;
}

#nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nav-links li a {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    transition: color 200ms ease;
}

#nav-links li a::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms ease;
}

#nav-links li a:hover,
#nav-links li a.active {
    color: #fff;
}

#nav-links li a:hover::after,
#nav-links li a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.nav-cta:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

#nav-toggle {
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    display: none;
}

#nav-toggle .material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 30px;
    line-height: 1;
    display: inline-block;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

#mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(15, 30, 66, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.6rem 1.4rem 1.2rem;
}

#mobile-menu.open {
    display: flex;
}

#mobile-menu a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile-menu a:last-child {
    border-bottom: none;
}

/* ============ HERO ============ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8.5rem 1.5rem 5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 22%, rgba(58, 129, 192, 0.16), transparent 40%),
        radial-gradient(circle at 88% 30%, rgba(108, 92, 231, 0.16), transparent 40%),
        radial-gradient(circle at 55% 92%, rgba(34, 211, 238, 0.12), transparent 45%);
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    z-index: 0;
    animation: float-blob 16s ease-in-out infinite alternate;
}

.blob-1 {
    width: 380px;
    height: 380px;
    top: -80px;
    left: -110px;
    background: rgba(58, 129, 192, 0.35);
}

.blob-2 {
    width: 320px;
    height: 320px;
    top: 30%;
    right: -120px;
    background: rgba(108, 92, 231, 0.32);
    animation-delay: -5s;
}

.blob-3 {
    width: 260px;
    height: 260px;
    bottom: -60px;
    left: 40%;
    background: rgba(34, 211, 238, 0.30);
    animation-delay: -9s;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -34px) scale(1.12); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1.4rem;
    padding: 0.45rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

#title1 {
    margin: 0;
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.05;
    letter-spacing: 0.5px;
}

.gradient-text {
    background: var(--grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.6rem;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 600;
    min-height: 2rem;
}

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

.type-line {
    color: var(--primary);
    font-weight: 700;
}

.type-caret {
    width: 3px;
    height: 1.3em;
    background: var(--primary);
    animation: blink 0.9s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-sub {
    margin: 1.3rem auto 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-sub strong {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease, color 240ms ease;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 14px 34px rgba(58, 129, 192, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(58, 129, 192, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-dark);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 3rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 9rem;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    background: var(--grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease infinite;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
}

.scroll-hint {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(58, 129, 192, 0.55);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.wheel {
    width: 4px;
    height: 9px;
    border-radius: 99px;
    background: var(--primary);
    animation: wheel-scroll 1.6s ease-in-out infinite;
}

@keyframes wheel-scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============ SECTIONS GENERIC ============ */
.page-section {
    padding: 5.5rem 1.5rem;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3.2rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(58, 129, 192, 0.12), rgba(108, 92, 231, 0.12));
    border-radius: 999px;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--text);
    line-height: 1.15;
}

.section-desc {
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 34rem;
}

/* ============ ABOUT CARDS ============ */
#row_sobre {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    max-width: 1180px;
    margin: 0 auto;
}

.info-card {
    flex: 1 1 300px;
    max-width: 22rem;
    padding: 2.2rem 1.9rem;
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: rgba(58, 129, 192, 0.4);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: var(--grad);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(58, 129, 192, 0.35);
    transition: transform 320ms ease;
}

.info-card:hover .info-icon {
    transform: rotate(-8deg) scale(1.1);
}

.info-card h4 {
    margin: 0 0 0.8rem;
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.info-card p strong {
    color: var(--primary);
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.5rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.service-list li i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.service-list li.last i {
    color: var(--accent);
}

/* ============ PORTFOLIO ============ */
.portfolio-section {
    background:
        radial-gradient(circle at 15% 30%, rgba(58, 129, 192, 0.07), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(108, 92, 231, 0.07), transparent 40%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1180px;
    margin: 0 auto;
}

.project-card {
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(58, 129, 192, 0.4);
    box-shadow: var(--shadow-lg);
}

.project-media {
    position: relative;
    overflow: hidden;
    background: #0f1b3d;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-bar .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    max-width: 70%;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 27, 61, 0.1) 0%, rgba(15, 27, 61, 0.75) 100%);
    opacity: 0;
    transition: opacity 320ms ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transform: translateY(16px);
    transition: transform 320ms ease, box-shadow 320ms ease, background 240ms ease;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--grad);
    color: #fff;
}

.project-info {
    padding: 1.5rem 1.6rem 1.7rem;
}

.project-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.project-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

.project-arrow {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-soft);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.project-arrow:hover {
    background: var(--grad);
    color: #fff;
    transform: rotate(45deg);
}

.project-info > p {
    margin: 0.7rem 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-tags span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(58, 129, 192, 0.12), rgba(108, 92, 231, 0.12));
    border: 1px solid rgba(58, 129, 192, 0.14);
}

/* ============ LOGOS ============ */
.logos-head {
    margin-top: 6rem;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    max-width: 1060px;
    margin: 0 auto;
}

.logo-card {
    text-align: center;
    transition: transform 320ms ease;
}

.logo-frame {
    position: relative;
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 1.6rem;
    overflow: hidden;
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.logo-frame::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(58, 129, 192, 0.25) 25%, transparent 50%, rgba(108, 92, 231, 0.25) 75%, transparent 100%);
    animation: spin-slow 6s linear infinite;
    opacity: 0;
    transition: opacity 320ms ease;
}

.logo-frame:hover::before {
    opacity: 1;
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.logo-frame:hover {
    transform: translateY(-8px);
    border-color: rgba(58, 129, 192, 0.4);
    box-shadow: var(--shadow-lg);
}

.logo-frame a,
.logo-frame img {
    display: block;
}

.logo-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 16rem;
    object-fit: contain;
    padding: 0.6rem;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo-frame:hover img {
    transform: scale(1.07) rotate(-2deg);
}

.logo-label {
    margin-top: 1rem;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--primary-dark);
}

/* ============ CONTACTS ============ */
.contacts-section {
    background:
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.10), transparent 36%),
        radial-gradient(circle at 8% 85%, rgba(108, 92, 231, 0.10), transparent 36%);
}

#section-contatos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    max-width: 980px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    flex: 1 1 320px;
    max-width: 27rem;
    padding: 2.6rem 2.2rem;
    border-radius: var(--radius);
    text-align: center;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 5px;
    width: 60%;
    border-radius: 0 0 99px 99px;
    background: var(--grad);
    transition: width 320ms ease;
}

.contact-card:hover::before {
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(58, 129, 192, 0.4);
}

.contact-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: var(--grad);
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(58, 129, 192, 0.38);
    animation: pulse-ring 2.4s ease-out infinite;
}

.contact-icon.insta {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    box-shadow: 0 16px 34px rgba(221, 42, 123, 0.38);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(58, 129, 192, 0.45), 0 16px 34px rgba(58, 129, 192, 0.38); }
    70% { box-shadow: 0 0 0 20px rgba(58, 129, 192, 0), 0 16px 34px rgba(58, 129, 192, 0.38); }
    100% { box-shadow: 0 0 0 0 rgba(58, 129, 192, 0), 0 16px 34px rgba(58, 129, 192, 0.38); }
}

.contact-icon.insta {
    animation: pulse-ring-insta 2.4s ease-out infinite;
}

@keyframes pulse-ring-insta {
    0% { box-shadow: 0 0 0 0 rgba(221, 42, 123, 0.45); }
    70% { box-shadow: 0 0 0 20px rgba(221, 42, 123, 0); }
    100% { box-shadow: 0 0 0 0 rgba(221, 42, 123, 0); }
}

.contact-card h4 {
    margin: 0 0 0.7rem;
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 800;
}

.contact-card p {
    margin: 0 0 1.6rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 14px 30px rgba(58, 129, 192, 0.32);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.button-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(58, 129, 192, 0.45);
}

/* ============ FOOTER ============ */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.center,
.center-align {
    text-align: center;
}

.white-text {
    color: #fff;
}

.page-footer {
    background: linear-gradient(160deg, #10204d 0%, #1b2f6b 100%);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 3.2rem;
    position: relative;
    overflow: hidden;
}

.page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 90%;
    background: var(--grad);
    border-radius: 0 0 99px 99px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    padding-bottom: 1.6rem;
}

.footer-brand {
    flex: 2 1 360px;
}

#sociais-footer {
    flex: 1 1 140px;
    text-align: center;
}

#contatos-footer {
    flex: 1 1 220px;
}

.page-footer .container {
    position: relative;
    z-index: 1;
}

#title-footer {
    margin: 0 0 0.8rem;
    font-family: var(--font-display);
    color: #fff;
    font-size: 2rem;
}

.footer-tagline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #fff;
    margin: 0 0 0.9rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 30rem;
}

.page-footer h5 {
    color: #fff;
    font-size: 1rem;
}

#sociais-footer ul,
#contatos-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#contatos-footer ul {
    text-align: center;
    margin-top: 0.4rem;
}

#sociais-footer ul {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.6rem;
}

.social-link {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.social-link:hover {
    background: var(--grad);
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

#contatos-footer li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

#contatos-footer li p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-mail {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-copyright {
    background: rgba(0, 0, 0, 0.18);
    padding: 1.1rem 0;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 200ms ease;
}

.footer-link:hover {
    color: var(--accent-2);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.6rem;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(58, 129, 192, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
    z-index: 900;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(58, 129, 192, 0.55);
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.animate {
    opacity: 0;
    transform: translateY(70px) scale(0.98);
    filter: blur(6px);
    will-change: opacity, transform, filter;
}

.animate.animate-visible {
    animation: roll-in-up 900ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.animate.from-left.animate-visible {
    animation: roll-in-left 900ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.animate.from-right.animate-visible {
    animation: roll-in-right 900ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@keyframes roll-in-up {
    0% {
        opacity: 0;
        transform: translateY(70px) scale(0.98);
        filter: blur(6px);
    }
    60% {
        transform: translateY(-6px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes roll-in-left {
    0% {
        opacity: 0;
        transform: translateX(-110px) rotate(-2deg) scale(0.97);
        filter: blur(6px);
    }
    60% {
        transform: translateX(10px) rotate(1deg) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0) scale(1);
        filter: blur(0);
    }
}

@keyframes roll-in-right {
    0% {
        opacity: 0;
        transform: translateX(110px) rotate(2deg) scale(0.97);
        filter: blur(6px);
    }
    60% {
        transform: translateX(-10px) rotate(-1deg) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0) scale(1);
        filter: blur(0);
    }
}

.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 260ms; }
.delay-3 { animation-delay: 400ms; }
.delay-4 { animation-delay: 540ms; }
.delay-5 { animation-delay: 680ms; }

/* Tilt dynamic shadow used by JS */
.tilting {
    transition: transform 160ms ease-out;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    #nav-links,
    .nav-cta {
        display: none;
    }

    #nav-toggle {
        display: block;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .logos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem;
    }

    .page-section {
        padding: 4rem 1.2rem;
    }
}

@media (max-width: 730px) {
    .hero-section {
        padding-top: 7rem;
        padding-bottom: 4rem;
    }

    #title1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .hero-stat {
        min-width: 7rem;
    }

    .stat-num {
        font-size: 1.7rem;
    }

    .hero-type {
        flex-direction: column;
        gap: 0.2rem;
    }

    .scroll-hint {
        display: none;
    }

    .project-thumb {
        height: 240px;
    }
}

@media (max-width: 530px) {
    .logos-grid {
        grid-template-columns: 1fr;
    }

    .logo-frame img {
        height: 14rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-inner {
        padding: 0.3rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}
