/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #8b5cf6;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Para mobile iOS */
@media screen and (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        -webkit-appearance: none;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #8b5cf6 !important;
        border-radius: 10px;
        -webkit-appearance: none;
    }

    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        -webkit-appearance: none;
    }

    ::-webkit-scrollbar-corner {
        background: rgba(255, 255, 255, 0.1);
    }
}

:root {
    /* Cores Principais */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --exposoft-color: #4CC9F0;
    --alcina-color: #43ABA0;

    /* Cores de Fundo */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);

    /* Cores de Texto */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-exposoft: linear-gradient(to right, var(--exposoft-color), var(--alcina-color));
    --gradient-alcina: linear-gradient(to right, var(--alcina-color), var(--exposoft-color));

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Tipografia */
    --font-primary: "Inter", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    font-size: 16px; /* Tamanho base para rem */
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Modo de apresentação para alto contraste (ativado via JS) */
body.presentation-mode {
    background-color: #000000;
    color: #ffffff;
}

.presentation-mode .section-subtitle,
.presentation-mode .historia-paragraph,
.presentation-mode .stat-label,
.presentation-mode .card-year,
.presentation-mode .card-cta,
.presentation-mode .footer-section,
.presentation-mode .footer-bottom {
    color: #cccccc;
}

.presentation-mode .navbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.presentation-mode .trabalho-card,
.presentation-mode .anterior-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 1440px; /* Aumentado para telas grandes */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    backface-visibility: hidden;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 3rem;
}

.animated-logo {
    position: relative;
}

.logo-text {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    animation: logoGlow 2s ease-in-out infinite alternate;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.logo-text > div:nth-child(2) {
    margin-top: -0.5rem;
}

.logo-text .highlight {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s both;
    opacity: 0.8;
}

.loading-bar {
    width: min(300px, 80vw);
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 2rem;
    position: relative;
    will-change: contents;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #8b5cf6 50%, #ffffff 100%);
    border-radius: 3px;
    width: 0%;
    will-change: width, transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    perspective: 1000px;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease 1s both;
    opacity: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1002;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: var(--shadow-lg);
    backdrop-filter: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1010;
    position: relative;
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
}

.nav-title {
    font-family: mokoto;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-title.expo {
    color: var(--exposoft-color);
}

.nav-title.alcina {
    color: var(--alcina-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    will-change: transform;
    z-index: 1000;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 1rem 0; /* Ajustado para telas grandes */
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 9999;
    position: relative;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: 30%;
    right: 20%;
    animation-delay: 2s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem 1rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    min-height: 48px; /* Aumenta a área de clique */
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    will-change: transform;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
}

/* Trabalhos Section */
.trabalhos-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.trabalhos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 1rem;
}

.trabalho-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-normal);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.trabalho-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.trabalho-card:hover::before {
    opacity: 0.1;
}

.trabalho-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.turma-letter {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.card-cta {
    color: var(--primary-color);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.trabalho-card:hover .card-hover-effect {
    opacity: 1;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* História Section */
.historia-section {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.historia-text .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.title-decoration {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 1rem;
}

.historia-paragraphs {
    margin-bottom: 3rem;
}

.historia-paragraph {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.historia-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-item .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.historia-visual {
    position: relative;
}

.historia-visual .code-box {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 20px 30px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
    min-width: 300px;
    margin: 0 auto;
}

.historia-visual .terminal-dots {
    position: absolute;
    top: 10px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.historia-visual .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}
.dot.yellow {
    background: #ffbd2e;
}
.dot.green {
    background: #28ca42;
}

.php-tag {
    color: #d67ad2;
}
.funcao {
    color: #4ec9b0;
}
.texto {
    color: #dcdcaa;
}

.historia-visual pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: "Fira Code", monospace;
    font-size: 14px;
    line-height: 1.4;
}

.visual-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.historia-image {
    width: 100%;
    height: auto;
    display: block;
    animation: floatImage 6s ease-in-out infinite;
}

.image-overlay {
    display: none;
}

/* Edições Anteriores */
.anteriores-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.anteriores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.anterior-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.anterior-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.anterior-card:hover::before {
    opacity: 0.1;
}

.anterior-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.3);
}

.card-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.anterior-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.card-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    color: var(--text-secondary);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-info a:hover {
    color: var(--primary-light);
}

.slogan {
    font-style: italic;
    color: var(--primary-color);
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ------------------------------------- */
/* Media Queries para Responsividade */
/* ------------------------------------- */

/* Tablets e Dispositivos Menores (menos de 900px) */
@media (max-width: 900px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-logo .nav-title {
        font-size: 24px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.5s cubic-bezier(0.7, 0, 0.3, 1);
        padding-top: 6rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover, .nav-link.active {
        color: var(--primary-color);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .historia-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .historia-text {
        order: 2;
    }

    .historia-visual {
        order: 1;
    }

    .historia-text .section-header {
        text-align: center;
    }

    .title-decoration {
        margin: 1rem auto;
    }

    .historia-visual .code-box {
        margin: 0;
    }

    .historia-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .historia-stats .stat-item {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .historia-stats .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-info a {
        display: block;
    }

    .footer-bottom {
        text-align: center;
    }

    body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Telas de Mobile (menos de 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .nav-logo .logo-img {
        width: 70px;
        height: 70px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .trabalhos-grid {
        gap: 1.5rem;
    }

    .trabalho-card {
        padding: 1.5rem;
    }

    .anteriores-grid {
        grid-template-columns: 1fr;
    }


    body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Estilos específicos para o site de ex-alunos */
.login-form, .register-form {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select option {
    color: white !important;
    background: #000000 !important;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: none;
}

.dashboard {
    padding: 8rem 0 4rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.dashboard-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.table td {
    color: var(--text-secondary);
}

.table a {
    color: var(--primary-color);
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline;
}

.btn-action {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-edit {
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.btn-edit:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    color: white;
    text-decoration: none;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(10px);
}