* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

/* Base responsive styles */
html {
    overflow-x: hidden;
    width: 100%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-text {
    font-size: 2rem;
    color: #00ff88;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #00ff88;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 0 20px;
    max-width: 100%;
    width: 100%;
}

.content .row {
    width: 100%;
}

.content .col-md-10 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typewriter-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #00ff88;
    border-right: 3px solid #00ff88;
    padding-right: 10px;
    animation: typewriter 2s steps(14) 1s forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    text-align: center;
    display: inline-block;
}

@keyframes typewriter {
    to { width: 14ch; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.bio {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
    color: #ccc;
}

/* Botões principais já usam classes do Bootstrap */

/* Estilização adicional para botões do Bootstrap */
.btn {
    padding: 8px 20px;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Grupos de botões da página inicial */
.action-buttons, .social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.action-buttons .btn, .social-buttons .btn {
    flex: 0 0 auto;
}

/* Ajuste para telas grandes */
@media (min-width: 992px) {
    .action-buttons, .social-buttons {
        max-width: 380px;
    }
    
    .action-buttons .btn, .social-buttons .btn {
        min-width: 140px;
        text-align: center;
    }
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #00ff88;
}

/* Sections */
.section {
    padding: 100px 15px;
    max-width: 1200px; /* Aumentado para melhor uso em telas maiores */
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #00ff88;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Estilização específica para a seção Sobre */
.about-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
    text-align: justify;
}

/* Project */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.project {
    background: rgba(13, 13, 23, 0.7);
    padding: 30px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.project:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
}

.project h3 {
    color: #00ff88;
    margin-bottom: 10px;
}

.project p {
    margin: 0.5rem 0 1.5rem;
    color: #bbb;
    font-size: 1.1rem;
}

.project-link {
    color: #00ff88;
    text-decoration: none;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 800px; /* Aumentado para telas maiores */
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.8);
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 136, 0.8);
    color: #0a0a0a;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #00ff88;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Carousel Dots */
.carousel-dots {
    text-align: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.5);
}

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

.dot.active, .dot:hover {
    background: #00ff88;
    transform: scale(1.2);
}

.tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.tags span {
    background: #00ff88;
    color: #0a0a0a;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    margin: 10% auto;
    padding: 0;
    border: 2px solid #00ff88;
    width: 90%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #00ff88;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #ccc;
}

.close:hover {
    color: #00ff88;
}

.modal-body {
    padding: 20px;
}

.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-body input {
    padding: 12px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
}

.modal-body input:focus {
    outline: none;
    border-color: #00ff88;
}

.modal-body input::placeholder {
    color: #888;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: 1px solid #00ff88;
    background: transparent;
    color: #00ff88;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button:hover {
    background: #00ff88;
    color: #0a0a0a;
}

.form-actions button[type="submit"] {
    background: #00ff88;
    color: #0a0a0a;
}

.form-actions button[type="submit"]:hover {
    background: transparent;
    color: #00ff88;
}

#error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Estilização para o modal do PACS */
.credentials-box {
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
}

.credentials-box code {
    background: rgba(0, 255, 136, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .typewriter {
        font-size: 2.5rem;
    }
    
    .typewriter-container {
        margin-bottom: 1rem;
    }
    
    /* Em telas menores, botões podem se empilhar */
    .d-flex.justify-content-center.gap-3.mb-5 {
        flex-wrap: wrap;
    }
    
    nav ul {
        gap: 15px;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .carousel-container {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .carousel {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .typewriter {
        font-size: 2rem;
    }
    
    .typewriter-container {
        margin-bottom: 0.5rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    /* Ajuste para botões em telas muito pequenas */
    .action-buttons, .social-buttons {
        flex-direction: column;
        max-width: 250px;
    }
    
    .action-buttons .btn, .social-buttons .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .carousel {
        height: 200px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
}

/* Achievement Grid Section */
.section-subtitle {
    color: #888;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Subtitle Style */
.section-subtitle {
    color: #aaaaaa;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

.achievement-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
}

.achievement-card:hover {
    background: #222222;
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.achievement-card h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.cert-date {
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

.cert-desc {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Social Icons Enhancement */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icons a {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #00ff88;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .section h2 {
        font-size: 1.8rem;
    }
    
    .achievement-card h2 {
        font-size: 1.3rem;
    }
    
    .carousel {
        height: 280px;
    }
    
    .project h3 {
        font-size: 1.4rem;
    }
}

@media (min-width: 1400px) {
    .section {
        max-width: 80%; /* Para telas muito grandes, usar porcentagem */
    }
    
    .carousel-container {
        max-width: 800px;
    }
}

/* Mobile responsiveness for achievement grid */
@media (max-width: 768px) {
    .achievement-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .achievement-card {
        padding: 1.8rem;
    }
    
    .achievement-card h2 {
        font-size: 1.2rem;
    }
    
    .social-icons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icons a {
        width: 200px;
        text-align: center;
    }
    
    .carousel-container {
        max-width: 100%;
    }
    
    .carousel {
        height: 220px;
    }
    
    .project {
        padding: 20px;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .achievement-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem 1rem;
        gap: 1.2rem;
    }
    
    .achievement-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .achievement-card h2 {
        font-size: 1.2rem;
    }
    
    .cert-date {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .carousel-container {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .carousel {
        height: 180px;
    }
    
    .tags {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tags span {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    
    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .project {
        padding: 15px;
    }
    
    .project h3 {
        font-size: 1.3rem;
    }
    
    .project p {
        font-size: 0.95rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    nav ul {
        gap: 0.8rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
}
