:root {
    --primary-color: #3b82f6; /* Bright blue */
    --secondary-color: #10b981; /* Bright green */
    --accent-color: #f59e0b; /* Bright orange */
    --dark-color: #0f172a; /* Dark navy */
    --light-color: #ffffff; /* Pure white for better contrast */
    --text-color: #1e293b; /* Dark gray for readability */
    --text-light: #1e293b; /* Dark gray for better visibility in light mode */
    --gray-color: #64748b; /* Medium gray */
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

[data-theme="dark"] {
    --primary-color: #60a5fa; /* Lighter blue for dark mode */
    --secondary-color: #34d399; /* Lighter green for dark mode */
    --accent-color: #fbbf24; /* Bright yellow for dark mode */
    --dark-color: #0f172a; /* Dark navy */
    --light-color: #1e293b; /* Dark gray for background */
    --text-color: #f8fafc; /* Light gray for text */
    --text-light: #e2e8f0; /* Softer white for highlights */
    --gray-color: #94a3b8; /* Softer gray for dark mode */
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --primary-color: #2563eb; /* Slightly darker blue for better contrast */
    --secondary-color: #059669; /* Slightly darker green for better contrast */
    --accent-color: #d97706; /* Slightly darker orange for better contrast */
    --dark-color: #f1f5f9; /* Very light gray for background */
    --light-color: #ffffff; /* Pure white */
    --text-color: #1e293b; /* Dark gray for text */
    --text-light: #334155; /* Softer dark gray for highlights */
    --gray-color: #475569; /* Medium gray for light mode */
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.clock {
    width: 180px; /* Reduced for better mobile fit */
    height: 180px;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    background: var(--light-color);
    position: relative;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.clock .center {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.clock .hand {
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 100%;
    transform: rotate(90deg);
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.clock .hour {
    height: 5px;
    width: 35%;
    background: var(--secondary-color);
}

.clock .minute {
    height: 3px;
    width: 45%;
    background: var(--primary-color);
}

.clock .second {
    height: 2px;
    width: 50%;
    background: var(--accent-color);
}

.clock .numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
}

.clock .numbers span {
    position: absolute;
    transform: translate(-50%, -50%);
}

.clock .numbers .num1 { top: 10%; left: 50%; }
.clock .numbers .num2 { top: 25%; right: 10%; }
.clock .numbers .num3 { top: 50%; right: 5%; }
.clock .numbers .num4 { bottom: 25%; right: 10%; }
.clock .numbers .num5 { bottom: 10%; left: 50%; }
.clock .numbers .num6 { bottom: 5%; left: 50%; }
.clock .numbers .num7 { bottom: 25%; left: 10%; }
.clock .numbers .num8 { top: 50%; left: 5%; }
.clock .numbers .num9 { top: 25%; left: 10%; }
.clock .numbers .num10 { top: 10%; left: 50%; }
.clock .numbers .num11 { top: 25%; left: 10%; }
.clock .numbers .num12 { top: 5%; left: 50%; }

body.preload * {
    animation: none !important;
    transition: none !important;
}

/* Fix for menu bar conflict with presentation */
header {
    z-index: 10000; /* Ensure header is always on top */
}

.hero {
    margin-top: 80px; /* Add margin to avoid overlap with fixed header */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Reduced padding for mobile */
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    font-size: 2.5rem; /* Base size */
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.7);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* CSS do botão */
.btn-cv-flutuante {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #6e48aa, #9d50bb); /* Gradiente moderno */
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.btn-cv-flutuante:hover {
    transform: scale(1.05);
}

.capa-cv {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] .loader {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.loader-spinner {
    width: 70px;
    height: 70px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    position: relative;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-left-color: var(--accent-color);
    border-right-color: var(--accent-color);
    animation: spinReverse 2s linear infinite;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-720deg); }
}

.loader p {
    margin-top: 25px;
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: var(--dark-color); /* Changed to use theme variable for consistent color with footer */
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 10px 0;
    transition: background-color 0.5s ease;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    padding: 40px 0 18px;
    position: relative;
    transition: background-color 0.5s ease; /* Added for smooth theme changes, consistent with header */
 }
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

header:hover .logo::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    display: flex;
    gap: 8px;
}

.language-selector button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.language-selector button:hover {
    transform: scale(1.1);
}

.language-selector button img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: float 15s infinite alternate ease-in-out;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    margin-bottom: 18px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.hero-content p {
    margin-bottom: 25px;
    color: var(--gray-color);
}

.time-display {
    margin-bottom: 25px;
}

.time-display p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.time-display span {
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.time-display span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.time-display:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.typing-loop {
    display: inline-block;
    font-family: 'Orbitron', sans-serif; /* Match futurist theme */
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--text-color);
    overflow: hidden; /* Hide overflow for typing effect */
    border-right: 0.15em solid var(--primary-color); /* Cursor effect */
    white-space: nowrap; /* Keep text on one line */
    animation: typing 4s steps(30, end) infinite, blink-caret 0.75s step-end infinite;
}

/* Typing animation */
@keyframes typing {
    0% {
        width: 0; /* Start with no text */
    }
    50% {
        width: 100%; /* Full text visible */
    }
    80% {
        width: 100%; /* Pause with full text */
    }
    100% {
        width: 0; /* Erase text */
    }
}

/* Blinking cursor */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

/* Ensure span inherits styles */
.typing-loop span {
    color: var(--primary-color); /* Highlight name */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .typing-loop {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}
.cta-buttons {
    display: flex;
    gap: 12px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0.7;
    filter: blur(20px);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero-image img {
    max-width: 350px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 
                0 0 60px rgba(59, 130, 246, 0.2),
                0 0 90px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* About Section */
#about {
  position: relative;
  padding: 50px 20px;
  overflow: hidden;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-shapes {
  width: 100%;
  height: 100%;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about-text p {
  position: relative;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.about-text p::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.about-text p:hover {
  transform: scale(1.02);
}

.about-text p:hover::after {
  width: 100%;
}

.highlight {
  color: #3b82f6;
  font-weight: 600;
}

#about img {
  max-width: 300px;
  border-radius: 10px;
}

/* Skills Section */
.skill-card {
    position: relative;
    overflow: hidden;
    background:transparent;
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(1deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.skill-card h3 {
    position: relative;
    z-index: 2;
}

.skill-card p {
    position: relative;
    z-index: 2;
}

.skills {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05); /* leve transparência */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--text-light);
}


.skills::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: transparent;
    opacity: 0.3;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    background: transparent;
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skill-card {
    color: var(--text-light);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: calc(var(--mouse-y, 0) - 50px);
    left: calc(var(--mouse-x, 0) - 50px);
    width: 100px;
    height: 100px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-shadow: 0 0 10px currentColor;
}

.skill-card h3 {
    margin-bottom: 12px;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 12px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary-color);
}
.skill-title {
    position: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Projects Section (Restored Previous Version with GSAP Enhancements) */
.projects {
    padding: 80px 0;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    position: relative;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.project-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background-color: var(--gray-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background-color: var(--primary-color);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    perspective: 1000px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d;
}

.project-card {
    min-width: 280px;
    border-radius: var(--border-radius);
    margin-right: 20px;
    flex: 0 0 calc(33.333% - 20px);
    transform: rotateY(20deg) scale(0.9);
    opacity: 0.8;
    filter: grayscale(30%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
    filter: grayscale(0%);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.project-image {
    height: 180px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 18px;
}

.project-info h3 {
    margin-bottom: 8px;
}

.project-info p {
    color: var(--gray-color);
    margin-bottom: 12px;
}

.project-links {
    display: flex;
    gap: 8px;
}

.project-links a {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-links a:first-child {
    background-color: var(--primary-color);
    color: white;
}

.project-links a:last-child {
    border: 1px solid var(--gray-color);
    color: var(--gray-color);
}

.project-links a:hover {
    transform: translateY(-2px);
}

.carousel-control {
    width: 35px;
    height: 35px;
}
/* Contact Section (Restored Original) */
.contact {
    padding: 80px 0;
    background: transparent;
    color: var(--text-light);
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 18px;
}

.contact-info p {
    margin-bottom: 25px;
    color: var(--gray-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 25px;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .contact-form {
    color: var(--text-light);
}

/* Contact Section (Restored Original) */
/* Fundo com Gradiente Azul Clarinho para a Seção de Contato */
#contact {
    background: linear-gradient(
        to bottom,
        rgba(231, 239, 251, 0.3), /* Azul clarinho quase transparente no topo */
        rgba(186, 212, 246, 0.5) /* Azul clarinho um pouco mais intenso na base */
    );
    position: relative; /* Mantém compatibilidade com as partículas */
}

/* Ajuste para o Tema Escuro */
[data-theme="dark"] #contact {
    background:transparent;
}
.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 18px;
}

.contact-info p {
    margin-bottom: 25px;
    color: var(--gray-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 25px;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .contact-form {
    color: var(--text-light);
}
.download-cv-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: var(--light-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    text-decoration: none;
}

.download-cv-icon:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

[data-theme="dark"] .download-cv-icon {
    background-color: var(--dark-color);
    color: var(--text-light);
}

[data-theme="dark"] .download-cv-icon:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.download-cv-icon i {
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .download-cv-icon {
        width: 40px;
        height: 40px;
    }
    .download-cv-icon i {
        font-size: 1.3rem;
    }
}
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3),
                inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--gray-color);
    transition: var(--transition);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--light-color);
    padding: 0 5px;
    color: var(--primary-color);
}

[data-theme="dark"] .form-group input:focus + label,
[data-theme="dark"] .form-group input:not(:placeholder-shown) + label,
[data-theme="dark"] .form-group textarea:focus + label,
[data-theme="dark"] .form-group textarea:not(:placeholder-shown) + label {
    background-color: var(--dark-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 40px 0 18px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    z-index: 99;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cursor Effect */
.cursor {
    display: inline-block;
    width: 1px;
    background-color: currentColor;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Time Display Styles */
.time-display.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    margin: 18px 0;
    transition: all 0.5s ease;
}

[data-theme="dark"] .time-display.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .time-display.glass-effect {
    background: rgba(15, 23, 42, 0.05);
    border-left: 3px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.time-number {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .time-number {
    color: #34d399;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
    animation: neon-pulse 2s infinite alternate;
}

[data-theme="light"] .time-number {
    color: #3b82f6;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

@keyframes neon-pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .project-card {
        flex: 0 0 calc(50% - 20px); /* Two cards per row on tablet */
    }
    
    .carousel-control {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: var(--transition);
    }
    
    [data-theme="dark"] nav ul {
        background-color: var(--dark-color);
    }
    
    nav ul.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .project-card {
        flex: 0 0 100%; /* Full width on mobile */
    }
    
    .project-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-form {
        padding: 20px; /* Reduced padding for mobile */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .clock {
        width: 140px;
        height: 140px;
    }
    
    .clock .numbers {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 8px 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .project-image {
        height: 150px; /* Reduced height for mobile */
    }
    
    .carousel-control {
        width: 28px;
        height: 28px;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .form-group input, .form-group textarea {
        padding: 10px;
    }
}

/* Melhorar contraste para modo claro */
[data-theme="light"] {
    --primary-color: #1d4ed8; /* Azul mais escuro */
    --secondary-color: #047857; /* Verde mais escuro */
    --text-color: #1e293b;
    --text-light: #334155;
}

/* Adicionar focus styles para acessibilidade */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Melhorar contraste para links */
a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

.form-messages {
    padding: 8px;
    margin: 12px 0;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
}

.form-messages.success {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: var(--secondary-color);
}

.form-messages.error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}
.name-loop {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    position: relative;
    width: 10em; /* Adjust based on longest name */
    animation: change-name 8s infinite;
}

.name-loop::before {
    content: 'Márcio Gemelli';
    animation: change-content 8s infinite;
}

@keyframes change-content {
    0%, 40% {
        content: 'Marcio Maker';
    }
    50%, 90% {
        content: 'Ux/UI Designer';
    }
    100% {
        content: 'Desenvolvedor Web';
    }
}

@keyframes change-name {
    0%, 40% {
        opacity: 1;
    }
    45%, 50% {
        opacity: 0;
    }
    55%, 90% {
        opacity: 1;
    }
    95%, 100% {
        opacity: 0;
    }
}

[data-theme="dark"] .name-loop {
    color: var(--text-light);
}
/* Centralizar todos os títulos h2 */

.section-title {
    text-align: center;
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.wave-char {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 576px) {
    h2.section-title {
        font-size: 1.8rem;
    }
}
/* Estilização das Partículas no Hover do Título */
/* Removed duplicate .particle block to avoid conflicts */

[data-theme="dark"] .particle {
    background: var(--secondary-color); /* Verde claro no modo escuro */
    box-shadow: 0 0 8px var(--secondary-color);
}

[data-theme="light"] .particle {
    background: var(--primary-color); /* Azul escuro no modo claro */
    box-shadow: 0 0 8px var(--primary-color);
}
/* Estilização das Partículas no Hover da Seção de Contato */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%); /* Centraliza partículas no ponto do mouse */
}

[data-theme="dark"] .particle {
    background: var(--secondary-color); /* Verde claro no modo escuro */
    box-shadow: 0 0 8px var(--secondary-color);
}

[data-theme="light"] .particle {
    background: var(--primary-color); /* Azul escuro no modo claro */
    box-shadow: 0 0 8px var(--primary-color);
}
/* Citação estilizada para modos claro e escuro */
.quote-block {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: padding-box;
    border-radius: var(--border-radius);
    margin: 4rem auto 2rem;
    max-width: 600px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 24px rgba(59,130,246,0.08);
    position: relative;
    border-left: 6px solid var(--accent-color);
    transition: background 0.4s, color 0.4s;
}

[data-theme="dark"] .quote-block {
    color: var(--text-light);
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    border-left: 6px solid var(--secondary-color);
    box-shadow: 0 4px 24px rgba(16,185,129,0.12);
}

[data-theme="light"] .quote-block {
    color: var(--text-color);
    background: linear-gradient(90deg, #f1f5f9 0%, #e0e7ef 100%);
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 4px 24px rgba(59,130,246,0.08);
}