/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Imports de CSS modulares */
@import url('utilities.css');
@import url('responsive.css');
@import url('mobile-fixes.css');

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --accent-secondary: #6366f1;
    --success-color: #10b981;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0.5rem;
    --font-primary: 'Poppins', sans-serif;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --secondary-color: #94a3b8;
    --accent-color: #fb923c;
    --accent-secondary: #fdba74;
    --success-color: #34d399;
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #0c1220;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.navbar-brand .logo {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand .logo-image {
    height: 50px;
    width: auto;
}

.navbar-brand .brand-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: -5px;
    transition: color 0.3s ease;
}

/* Dark mode brand title */
body.dark-mode .navbar-brand .brand-text h2 {
    color: var(--text-color);
}

.navbar-brand .brand-text .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Dark mode tagline visibility */
body.dark-mode .navbar-brand .brand-text .tagline {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

/* Dark mode navigation links */
body.dark-mode .nav-link {
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: var(--transition);
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

/* Dark mode dropdown */
body.dark-mode .dropdown-menu {
    background: var(--bg-color);
    border-color: var(--border-color);
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Dark mode hamburger visibility */
body.dark-mode .navbar-toggle .bar {
    background: var(--text-color);
    box-shadow: 0 0 5px rgba(241, 245, 249, 0.3);
}

.navbar-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Dark Mode Toggle - Detailed Lamp */
.dark-mode-toggle {
    position: relative;
    cursor: pointer;
    margin-left: 1rem;
    z-index: 1001;
}

.lamp-container {
    position: relative;
    width: 45px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    transition: all 0.3s ease;
}

/* Lamp Cord */
.lamp-cord {
    position: absolute;
    top: -20px;
    width: 2px;
    height: 25px;
    background: linear-gradient(to bottom, #8b7355, #6b5b47);
    border-radius: 1px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.3);
}

.lamp-cord::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: #4a4a4a;
    border-radius: 50%;
    border: 1px solid #333;
}

/* Socket */
.lamp-socket {
    position: relative;
    width: 18px;
    height: 12px;
    background: linear-gradient(135deg, #e5e5e5, #bbb);
    border-radius: 2px;
    margin-bottom: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.socket-top {
    position: absolute;
    top: -2px;
    left: 2px;
    right: 2px;
    height: 4px;
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
    border-radius: 2px;
}

.socket-threads {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 6px;
    background: repeating-linear-gradient(
        to bottom,
        #ccc 0px,
        #ccc 1px,
        #aaa 1px,
        #aaa 2px
    );
}

/* Bulb */
.bulb {
    position: relative;
    width: 32px;
    height: 32px;
    transform-origin: top center;
    transition: all 0.3s ease;
}

.bulb-glass {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.7));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.8),
        0 2px 8px rgba(0,0,0,0.1);
}

.bulb-filament {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 12px;
    opacity: 0.6;
}

.bulb-filament::before,
.bulb-filament::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #8b4513;
    border-radius: 50%;
    background: none;
}

.bulb-filament::before {
    left: 0;
    top: 0;
}

.bulb-filament::after {
    right: 0;
    top: 4px;
}

.bulb-light {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: radial-gradient(circle, rgba(255, 223, 107, 0.4) 0%, rgba(255, 199, 95, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.4s ease;
    animation: detailed-bulb-glow 3s ease-in-out infinite alternate;
}

.bulb i {
    font-size: 1.2rem;
    color: #ffb347;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 6px rgba(255, 179, 71, 0.6));
    z-index: 2;
}

/* Dark mode state */
.dark-mode-toggle.dark .bulb-light {
    opacity: 0;
    animation: none;
}

.dark-mode-toggle.dark .bulb i {
    color: #64748b;
    filter: none;
}

.dark-mode-toggle.dark .bulb-glass {
    background: linear-gradient(135deg, rgba(100,116,139,0.4), rgba(71,85,105,0.3));
    border-color: rgba(100,116,139,0.6);
}

/* Hover effects */
.dark-mode-toggle:hover .lamp-container {
    transform: scale(1.05);
}

/* Swing physics on scroll */
.lamp-container.swinging {
    animation: lamp-swing 1.5s ease-out;
}

@keyframes detailed-bulb-glow {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes lamp-swing {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(8deg); }
    40% { transform: rotate(-6deg); }
    60% { transform: rotate(4deg); }
    80% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 50%, var(--bg-light) 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(30, 58, 138, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23tech-grid)"/></svg>');
    opacity: 0.6;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-title .highlight {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Hero Features */
.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
    min-width: 140px;
}

.hero-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.hero-feature-item span {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-color) 50%, var(--bg-light) 100%);
    position: relative;
    transition: background 0.4s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, border-color 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.service-features i {
    color: var(--success-color);
    font-size: 0.875rem;
}

/* Courses Section */
.courses {
    padding: 100px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--bg-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    border: 1px solid var(--border-color);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1rem;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-8px) translateX(5px) rotateY(3deg) rotateX(-2deg) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        -8px 0 20px -8px rgba(30, 58, 138, 0.2),
        8px 0 20px -8px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.course-image {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image i {
    font-size: 3rem;
    color: white;
}

.course-content {
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.course-card:hover .course-content {
    transform: translateZ(20px);
}

.course-card:hover .course-image {
    transform: translateZ(10px);
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-meta i {
    color: var(--accent-color);
}

/* Featured Course Card */
.course-card.featured {
    position: relative;
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(30, 58, 138, 0.02) 100%);
}

.course-card.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.8;
}

.course-card.featured .course-image {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.course-card.featured .course-content {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.course-card.featured .course-title {
    color: white;
}

.course-card.featured .course-description {
    color: #e2e8f0;
}

.course-card.featured .course-meta {
    color: #cbd5e1;
}

.course-card.featured .course-meta i {
    color: #fbbf24;
}

.course-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.5);
    z-index: 10;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.course-card.featured:hover {
    transform: scale(1.08) translateY(-12px) translateX(8px) rotateY(5deg) rotateX(-3deg);
    box-shadow:
        0 35px 70px -15px rgba(0, 0, 0, 0.3),
        -12px 0 30px -10px rgba(59, 130, 246, 0.25),
        12px 0 30px -10px rgba(30, 58, 138, 0.25);
}

/* About Section - Tech Design */
.about {
    padding: 120px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

/* Dark mode specific styling for About section */
body.dark-mode .about {
    background: linear-gradient(135deg, #0a0f1c 0%, var(--bg-color) 50%, var(--bg-light) 100%);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59, 130, 246, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about .container {
    position: relative;
    z-index: 1;
}

/* Institutional Cards */
.institutional-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.institutional-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode specific styling for institutional cards */
body:not(.dark-mode) .institutional-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.15);
}

body:not(.dark-mode) .institutional-card h3 {
    color: var(--primary-color);
    font-weight: 700;
}

body:not(.dark-mode) .institutional-card p {
    color: var(--primary-color);
    font-weight: 500;
}

.institutional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s ease;
}

.institutional-card:hover::before {
    left: 100%;
}

.institutional-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3);
}

.institutional-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}

.institutional-card .card-icon i {
    font-size: 2rem;
    color: white;
}

.institutional-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.institutional-card p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1.1rem;
}

.tech-line {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin-top: 2rem;
    border-radius: 1px;
}

/* Who We Are Section */
.who-we-are {
    margin-bottom: 5rem;
}

.who-we-are .section-title {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.tech-separator {
    text-align: center;
    margin-bottom: 3rem;
}

.tech-dots {
    display: inline-flex;
    gap: 0.5rem;
}

.tech-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    display: block;
    animation: pulse 2s infinite;
}

.tech-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.tech-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-text {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Light mode: texto azul para legibilidade */
body:not(.dark-mode) .intro-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pillar-icon i {
    font-size: 1.5rem;
    color: white;
}

.pillar-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

/* Light mode: títulos dos pilares azuis */
body:not(.dark-mode) .pillar-card h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.pillar-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Light mode: textos dos pilares azuis */
body:not(.dark-mode) .pillar-card p {
    color: var(--primary-color);
    font-weight: 500;
}

.pillar-tech-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.1;
}

.tech-pattern {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="20" fill="none" stroke="rgba(249, 115, 22, 1)" stroke-width="1"/><circle cx="25" cy="25" r="10" fill="none" stroke="rgba(30, 58, 138, 1)" stroke-width="1"/></svg>');
}

/* Commitment Section */
.commitment-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
}

.commitment-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.commitment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.commitment-icon i {
    font-size: 2rem;
    color: white;
}

.commitment-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.commitment-text p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Light mode: compromisso azul */
body:not(.dark-mode) .commitment-text h4 {
    color: var(--primary-color);
}

body:not(.dark-mode) .commitment-text p {
    color: var(--primary-color);
    font-weight: 500;
}

/* Stats Section */
.about-stats-section {
    margin-top: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    color: white;
    font-size: 1.25rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Light mode: stats azuis */
body:not(.dark-mode) .stat-number {
    color: var(--primary-color);
}

body:not(.dark-mode) .stat-label {
    color: var(--primary-color);
    font-weight: 600;
}

.stat-tech-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 0 0 16px 16px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-light);
}

/* Form Styles */
.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info-footer i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright p {
    color: #94a3b8;
    margin: 0;
}

/* Modern Enhancements */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Enhanced animations */
.service-card,
.course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Smooth scroll for the entire page */
* {
    scroll-behavior: smooth;
}

/* Modern glassmorphism effect for navbar */
.navbar-fixed {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* Dark mode navbar */
body.dark-mode .navbar-fixed {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .hero-feature-item {
        min-width: 120px;
        padding: 1.25rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* About Section Responsive */
    .institutional-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .commitment-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand .logo-image {
        height: 40px;
    }

    .navbar-brand .brand-text h2 {
        font-size: 1.25rem;
    }

    .navbar-brand .brand-text .tagline {
        font-size: 0.6rem;
    }

    /* Dark mode mobile brand */
    body.dark-mode .navbar-brand .brand-text h2 {
        font-size: 1.25rem;
    }

    body.dark-mode .navbar-brand .brand-text .tagline {
        font-size: 0.6rem;
        color: var(--accent-color);
    }

    /* Dark mode toggle mobile */
    .dark-mode-toggle {
        margin-left: 0.5rem;
    }

    .lamp-container {
        width: 40px;
        height: 50px;
    }

    .lamp-cord {
        top: -15px;
        height: 20px;
    }

    .lamp-socket {
        width: 15px;
        height: 10px;
    }

    .bulb {
        width: 28px;
        height: 28px;
    }

    .bulb i {
        font-size: 1rem;
    }

    /* Simplify 3D effects on mobile */
    .course-card:hover {
        transform: translateY(-5px) scale(1.02) !important;
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2) !important;
    }

    .course-card.featured:hover {
        transform: scale(1.05) translateY(-8px) !important;
        box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25) !important;
    }

    .course-card:hover .course-content,
    .course-card:hover .course-image {
        transform: none !important;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 0;
        transition: all 0.3s ease;
    }

    .dropdown.show .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        margin-top: 0.5rem;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .hero-feature-item {
        min-width: 100px;
        padding: 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon i {
        font-size: 1.25rem;
    }
    
    .services-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .service-card,
    .contact-form {
        padding: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===========================================
   ESTILOS GLOBAIS PARA PÁGINAS FUTURAS
   =========================================== */

/* Page Header - Para cabeçalhos de páginas internas */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
    text-align: center;
    transition: background 0.4s ease;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: color 0.4s ease;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    transition: color 0.4s ease;
}

/* Page Content - Para conteúdo principal */
.page-content {
    padding: 80px 0;
    background: var(--bg-color);
    transition: background 0.4s ease;
}

.content-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.content-card h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: color 0.4s ease;
}

.content-card p {
    color: var(--text-light);
    line-height: 1.6;
    transition: color 0.4s ease;
}

/* Breadcrumb - Para navegação */
.breadcrumb {
    padding: 100px 0 20px;
    background: var(--bg-light);
    transition: background 0.4s ease;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* Dark mode específico para páginas */
body.dark-mode .page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
}

body.dark-mode .content-card {
    background: var(--bg-light);
    border-color: var(--border-color);
}

/* Layout responsivo para páginas */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .page-content {
        padding: 60px 0;
    }

    .content-card {
        padding: 1.5rem;
    }
}

/* Estilo para os botões de ação dos cursos na página inicial */
.course-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
    justify-content: center;
}

.course-actions .btn {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.course-actions .btn-sm {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.course-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.course-actions .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.course-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.course-actions .btn-primary:hover {
    background: var(--primary-hover, #1d4ed8);
    border-color: var(--primary-hover, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Layout responsivo para botões de curso */
@media (max-width: 768px) {
    .course-actions {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .course-actions .btn {
        max-width: 180px;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 769px) {
    .course-actions {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
    }

    .course-actions .btn {
        flex: 1;
        max-width: none;
    }
}