/* Futuristic / Cyberpunk Design System */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

:root {
    /* Light Mode Variables (Default) */
    --bg-deep: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 1);

    /* Premium Palette (Light) */
    --primary-neon: #2563EB;   /* Main Blue */
    --secondary-neon: #6D28D9; /* Deep Purple */
    --accent-neon: #DB2777;    /* Pink */

    --text-main: #212529;
    --text-muted: #6c757d;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --glow-primary: none;
    --glow-secondary: none;

    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark Mode Variables (Futuristic - Brand Aligned) */
    --bg-deep: #05050a;
    --bg-card: rgba(20, 20, 35, 0.6);
    --bg-card-hover: rgba(30, 30, 50, 0.8);

    /* Premium Palette (Dark - Keeping same or slightly brighter if needed, but using requested hexes as base) */
    --primary-neon: #2563EB;   /* Main Blue */
    --secondary-neon: #6D28D9; /* Deep Purple */
    --accent-neon: #DB2777;    /* Pink */

    --text-main: #e0e0e0;
    --text-muted: #a0a0b0;

    --font-heading: 'Plus Jakarta Sans', sans-serif;

    --glow-primary: 0 0 15px rgba(37, 99, 235, 0.3), 0 0 30px rgba(37, 99, 235, 0.1);
    --glow-secondary: 0 0 15px rgba(109, 40, 217, 0.3), 0 0 30px rgba(109, 40, 217, 0.1);

    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    letter-spacing: 0.5px;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 4px;
}

/* Glassmorphism Navbar */
.navbar {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    transition: background 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-neon) !important;
}

[data-theme="dark"] .navbar-brand {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Navbar Links (Premium Hover) */
.nav-link {
    color: var(--text-main) !important;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Active/Hover State - Underline or Dot */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-neon) !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

/* Buttons */
/* Primary Action (Filled) - "Retomar" -> Blue */
.btn-primary {
    background: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8; /* Slightly darker blue */
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.5);
}

/* Secondary Action (Outline) - "Projetos" */
.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Light mode hover for outline */
.btn-outline-dark:hover {
    background: transparent;
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

/* Dark mode overrides for buttons */
[data-theme="dark"] .btn-outline-dark {
    border-color: var(--text-muted); /* Start neutral */
    color: #fff;
}

[data-theme="dark"] .btn-outline-dark:hover {
    background: transparent; /* Keep outline feel */
    border-color: var(--secondary-neon); /* Purple on hover */
    color: var(--secondary-neon);
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.4);
}

/* Hero Section */
header.py-5 {
    position: relative;
}

/* Soft Glows for Dark Mode */
[data-theme="dark"] header.py-5::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.15) 0%, rgba(0, 0, 0, 0) 70%); /* Purple */
    filter: blur(60px);
    z-index: -1;
}

[data-theme="dark"] header.py-5::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(0, 0, 0, 0) 70%); /* Blue */
    filter: blur(60px);
    z-index: -1;
}

/* Premium Gradient Text: Blue -> Purple -> Pink */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 50%, var(--accent-neon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Center Profile */
.profile {
    margin-left: auto !important;
    margin-right: auto !important;
    animation: float 6s ease-in-out infinite;
}

.profile .profile-img {
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: block;
}

/* Keyframes for Float */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Cards */
.card {
    background: var(--bg-card);
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    color: var(--text-main);
    border-radius: 16px; /* slightly more rounded */
}

[data-theme="dark"] .card {
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.15);
}

.card-title {
    color: var(--primary-neon);
    font-family: var(--font-heading);
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Theme Toggle Button */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.theme-switch {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-switch:hover {
    transform: scale(1.1);
    color: var(--primary-neon);
    border-color: var(--primary-neon);
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .theme-switch-wrapper {
        top: 15px;
        right: 70px;
    }
}

/* Dark Mode Overrides for Bootstrap Utilities */
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-main) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

/* Dark Mode Form Styles */
[data-theme="dark"] .form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

[data-theme="dark"] .form-control:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    color: #fff;
}

[data-theme="dark"] .form-floating label {
    color: var(--text-muted);
}

[data-theme="dark"] .form-floating>.form-control:focus~label,
[data-theme="dark"] .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-neon);
}

[data-theme="dark"] .feature.bg-primary {
    background-color: var(--primary-neon) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}
