:root {
    --primary: #00eaff;
    --primary-dark: #00b8cc;
    --secondary: #7928ca;
    --dark: #0a0a0a;
    --dark-light: #111111;
    --dark-lighter: #1a1a1a;
    --text: #ffffff;
    --text-light: #b0b0b0;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff3366;
    
    /* Fontes atualizadas para ambiente tecnológico */
    --font-primary: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-heading: 'Rajdhani', 'Space Grotesk', sans-serif;
    
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section {
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    background: rgba(0, 234, 255, 0.1);
    padding: 6px 15px;
    border-radius: 30px;
    border: 1px solid rgba(0, 234, 255, 0.2);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-description {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 234, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(0, 234, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
    font-family: var(--font-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-code {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.home-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.home-description {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.home-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.home-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.home-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--dark-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.code-card {
    width: 320px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.design-card {
    width: 280px;
    bottom: 0;
    right: 0;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--dark-lighter);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.card-content {
    padding: 20px;
}

.card-content pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.5;
}

.design-preview {
    height: 200px;
    background: var(--dark);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
}

.browser-bar {
    padding: 10px;
    background: var(--dark-lighter);
    display: flex;
    justify-content: center;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.design-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.design-element {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.design-element.e1 { width: 80%; }
.design-element.e2 { width: 60%; }
.design-element.e3 { width: 90%; }

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
    top: 20px;
    left: 20px;
    z-index: 1;
}

.image-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 2px, transparent 3px);
    background-size: 20px 20px;
    top: -20px;
    right: -20px;
    z-index: 3;
    opacity: 0.5;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tech-item i {
    font-size: 24px;
    color: var(--primary);
}

.tech-item span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text {
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.7;
}

.about-features {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 234, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 5px;
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.feature-content p {
    color: var(--text-light);
    font-size: 14px;
    font-family: var(--font-primary);
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.skills-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.skills-description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-family: var(--font-primary);
    line-height: 1.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark-light);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.skill-tag i {
    color: var(--primary);
}

.skill-radar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.radar-circle {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skill-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(125px) rotate(calc(-1 * var(--angle)));
}

.point {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.point::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
}

.skill-point span {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--dark-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-lighter), var(--dark-light));
    color: var(--text-light);
    gap: 15px;
}

.project-placeholder i {
    font-size: 48px;
    color: var(--primary);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 24px;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
    font-family: var(--font-primary);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    background: rgba(0, 234, 255, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online { background: var(--success); }
.status-dot.developing { background: var(--warning); }
.status-dot.planning { background: var(--primary); }

.project-btns {
    display: flex;
    gap: 10px;
}

.contact-container {
    display: grid;
    place-items: center;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-card {
    background: var(--dark-light);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 234, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    font-family: var(--font-primary);
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.contact-link:hover {
    gap: 12px;
}

.contact-form {
    background: var(--dark-light);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 234, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background: var(--dark-light);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-box {
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    font-family: var(--font-primary);
}

.footer-links h4,
.footer-tech h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-family: var(--font-primary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 234, 255, 0.3);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 10px;
}

.loader-square {
    width: 20px;
    height: 60px;
    background: var(--primary);
    border-radius: 4px;
    animation: loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.loader-square:nth-child(1) { animation-delay: -0.24s; }
.loader-square:nth-child(2) { animation-delay: -0.12s; }
.loader-square:nth-child(3) { animation-delay: 0s; }

@keyframes loader {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets e telas médias (768px - 992px) */
@media screen and (max-width: 992px) {
    .home-container,
    .about-container,
    .skills-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .home-visual {
        height: 350px;
        order: -1;
        margin-bottom: 40px;
    }
    
    .floating-card {
        position: relative;
        margin: 0 auto;
    }
    
    .code-card {
        width: 90%;
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .design-card {
        width: 80%;
        max-width: 350px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 180px;
    }
    
    .home-title {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .home-description {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .home-btns {
        justify-content: center;
    }
    
    .home-stats {
        justify-content: center;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .skill-radar {
        height: 280px;
    }
    
    .radar-circle {
        width: 220px;
        height: 220px;
    }
    
    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(110px) rotate(calc(-1 * var(--angle)));
    }
    
}

@media screen and (max-width: 768px) {

    .section {
        padding: 80px 0;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--dark-light);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 25px;
        text-align: left;
        margin-top: 30px;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        color: var(--primary);
        font-weight: 600;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
    }
    
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 26px;
        cursor: pointer;
        color: var(--text);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
        transition: var(--transition);
    }
    
    .nav-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary);
    }
    
    .home {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .home-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-top: 150px;
    }
    
    .home-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .home-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .home-btns .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .home-stats {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .home-visual{
        display:none;
    }
    
    .stat {
        align-items: center;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-tech {
        display: flex;
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding-top: 40px;
    }
    

    .card-content{
        display: none;
    }
    .card-header{
        display: none;
    }

    .design-content{
        display: none;
    }

    .design-preview{
        display: none;
    }

    .btn-contact{
        display:none;
    }

    .about-title{
        font-size: 28px;
    }

    .tech-stack{
        display: flex;
        
    }

    .contact-container{
        display: flex;
        flex-direction: column;
    }

    .contact-info{
        display: flex;
        flex-direction: column;
    }
    
    @media screen and (max-height: 500px) and (orientation: landscape) {
        .home {
            min-height: 100vh;
            padding-top: 100px;
        }
        
        .nav-menu {
            overflow-y: auto;
            padding-top: 60px;
        }
        
        .nav-list {
            margin-top: 10px;
            gap: 15px;
        }
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 13px;
        padding: 5px 12px;
        letter-spacing: 1.5px;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .home-title {
        font-size: 2rem;
        margin-top: 50px;  
    }
    
    .home-visual {
        height: 280px;
    }
    
    .floating-card {
        animation: float 8s ease-in-out infinite;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .project-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .project-btns .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form {
        padding: 30px 20px;
        width: 100%;
    }
    
    .form-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
    
    .preloader .loader-square {
        width: 16px;
        height: 50px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 13px;
    }
    
    .project-tech span {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media screen and (max-width: 480px) {
    .home-title {
        font-size: 1.8rem;
        margin-top: 120px;
    }

    .home-stats{
        margin-bottom: 100px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .home-visual {
        height: 240px;
    }
    
    .code-card {
        width: 95%;
    }
    
    .design-card {
        width: 90%;
        top: 150px;
    }
    
    .card-content pre {
        font-size: 11px;
    }
    
    .home-btns .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .btn-contact span {
        display: none;
    }
    
    .btn-contact {
        padding: 10px;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .image-frame {
        top: 15px;
        left: 15px;
    }
    
    .image-dots {
        width: 80px;
        height: 80px;
        background-size: 15px 15px;
    }
    
    .tech-stack {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .tech-item {
        flex-direction: row;
        gap: 10px;
    }
    
    .skill-radar {
        height: 250px;
    }
    
    .radar-circle {
        width: 200px;
        height: 200px;
    }
    
    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(100px) rotate(calc(-1 * var(--angle)));
    }
    
    .skill-point span {
        font-size: 10px;
        top: -25px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

@media screen and (max-width: 360px) {
    .home-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .home-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .projects-grid {
        gap: 20px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .project-placeholder i {
        font-size: 36px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media screen and (min-width: 768px) and (max-height: 700px) {
    .home {
        min-height: 700px;
    }
    
    section {
        padding: 80px 0;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .logo-text,
    .nav-link,
    .btn,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

@media print {
    .preloader,
    .back-to-top,
    .nav-toggle,
    .btn-contact,
    .project-btns .btn,
    .contact-form button,
    .footer-social {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .header {
        position: static;
        background: white !important;
        border-bottom: 1px solid #ddd;
    }
    
    .nav-list {
        display: none;
    }
    
    .logo-code {
        color: black !important;
    }
    
    .highlight {
        color: black !important;
    }
    
    .highlight::after {
        display: none;
    }
    
    .floating-card,
    .skill-radar,
    .project-image {
        display: none;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    section {
        padding: 40px 0 !important;
        page-break-inside: avoid;
    }
    
    .home {
        page-break-after: always;
    }
}
