/* Professor de Informática em Luanda - Styles */

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* SECTION ANIMATIONS */
section {
    animation: fadeInUp 0.8s ease-out both;
}

section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.2s; }
section:nth-of-type(4) { animation-delay: 0.3s; }
section:nth-of-type(5) { animation-delay: 0.4s; }
section:nth-of-type(6) { animation-delay: 0.5s; }
section:nth-of-type(7) { animation-delay: 0.6s; }
section:nth-of-type(8) { animation-delay: 0.7s; }
section:nth-of-type(9) { animation-delay: 0.8s; }
section:nth-of-type(10) { animation-delay: 0.9s; }

/* CARD HOVER EFFECTS */
div[style*="border: 1px solid rgba"] {
    transition: all 0.3s ease;
}

div[style*="border: 1px solid rgba"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(232, 119, 34, 0.15);
}

/* BUTTON EFFECTS */
a[style*="padding: 14px 32px"] {
    transition: all 0.25s ease;
    position: relative;
}

a[style*="padding: 14px 32px"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(232, 119, 34, 0.25);
}

a[href*="whatsapp"]:hover {
    background: #20BA50 !important;
    border-color: #20BA50 !important;
}

a[style*="border: 2px solid rgba"]:hover {
    border-color: #E87722 !important;
    color: #E87722 !important;
}

/* ACCORDION ANIMATIONS */
.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(30, 144, 255, 0.08) !important;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #E87722;
    box-shadow: 0 0 0 0.25rem rgba(232, 119, 34, 0.25);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:not(.collapsed) .accordion-icon::before {
  content: "\f2ea"; /* bi-dash-circle */
}

/* NAV ANIMATIONS */
nav {
    animation: slideInLeft 0.6s ease-out;
}

/* IMAGE ANIMATIONS */
img {
    animation: scaleUp 0.8s ease-out;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    /* Grid collapse */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Font scaling */
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.4rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    /* Padding adjustment */
    section {
        padding: 64px 0 !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Button stacking */
    div[style*="display: flex"] > a {
        width: 100%;
        text-align: center;
    }
    
    /* Element scaling */
    .col-lg-7 {
        margin: 15px 0 15px 0 !important;
    }
    img {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
    }
    
    section {
        padding: 48px 0 !important;
        min-height: auto !important;
    }
    
    div[style*="gap: 32px"] {
        gap: 16px !important;
    }
    
    div[style*="gap: 24px"] {
        gap: 12px !important;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* FOCUS STATES */
a:focus,
button:focus {
    outline: 2px solid #E87722;
    outline-offset: 2px;
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: more) {
    html {
        --color-primary: #0A1628;
        --color-secondary: #0D1F38;
        --color-orange: #FF6B00;
        --color-blue: #0066FF;
    }
}

/* PRINT STYLES */
@media print {
    nav, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}