/* =========================================
RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
font-family: "Inter", sans-serif;
background: #f8fafc;
color: #172033;
line-height: 1.7;
overflow-x: hidden;
}

a {
text-decoration: none;
color: inherit;
}

button {
font-family: inherit;
}

img {
max-width: 100%;
display: block;
}

/* =========================================
VARIABLES
========================================= */

:root {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--dark: #172033;
--text: #64748b;
--light: #f8fafc;
--white: #ffffff;
--border: #e2e8f0;
--section: #f1f5f9;
}

/* =========================================
CONTAINER
========================================= */

.container {
width: min(1120px, calc(100% - 40px));
margin: auto;
}

.section {
padding: 110px 0;
}

/* =========================================
HEADER
========================================= */

.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
transition: 0.3s ease;
}

.header.scrolled {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(15px);
box-shadow: 0 5px 30px rgba(15, 23, 42, 0.08);
}

.navbar {
height: 80px;
display: flex;
align-items: center;
justify-content: space-between;
}

.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 20px;
font-weight: 800;
color: var(--dark);
}

.logo span {
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
background: var(--primary);
color: white;
border-radius: 10px;
}

/* =========================================
NAVIGATION
========================================= */

.nav-menu {
display: flex;
align-items: center;
gap: 32px;
list-style: none;
}

.nav-link {
position: relative;
font-size: 14px;
font-weight: 600;
color: #64748b;
transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
color: var(--primary);
}

.nav-link::after {
content: "";
position: absolute;
left: 0;
bottom: -8px;
width: 0;
height: 2px;
background: var(--primary);
transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
width: 100%;
}

/* =========================================
MOBILE MENU
========================================= */

.menu-toggle {
display: none;
width: 42px;
height: 42px;
border: 0;
background: transparent;
cursor: pointer;
}

.menu-toggle span {
display: block;
width: 25px;
height: 2px;
margin: 5px auto;
background: var(--dark);
transition: 0.3s;
}

/* =========================================
HERO
========================================= */

.hero {
min-height: 100vh;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
background: white;
}

.hero-content {
display: grid;
grid-template-columns: 1.15fr 0.85fr;
align-items: center;
gap: 80px;
position: relative;
z-index: 2;
}

.hero-greeting {
font-size: 16px;
color: var(--primary);
font-weight: 700;
margin-bottom: 10px;
}

.hero h1 {
font-size: clamp(52px, 8vw, 90px);
line-height: 1;
letter-spacing: -4px;
margin-bottom: 15px;
}

.hero h2 {
font-size: clamp(24px, 3vw, 38px);
line-height: 1.3;
margin-bottom: 25px;
}

.hero h2 span {
color: var(--primary);
}

.hero-description {
max-width: 600px;
color: var(--text);
font-size: 17px;
margin-bottom: 35px;
}

.hero-buttons {
display: flex;
gap: 15px;
flex-wrap: wrap;
}

/* =========================================
BUTTON
========================================= */

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 50px;
padding: 0 25px;
border-radius: 10px;
font-weight: 700;
font-size: 14px;
transition: 0.3s ease;
}

.btn-primary {
background: var(--primary);
color: white;
}

.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-3px);
box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.btn-outline {
border: 1px solid var(--border);
background: white;
}

.btn-outline:hover {
border-color: var(--primary);
color: var(--primary);
transform: translateY(-3px);
}

/* =========================================
SOCIAL
========================================= */

.social-links {
display: flex;
gap: 10px;
margin-top: 30px;
}

.social-links a {
width: 40px;
height: 40px;
border: 1px solid var(--border);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 800;
color: var(--text);
transition: 0.3s;
}

.social-links a:hover {
background: var(--primary);
color: white;
border-color: var(--primary);
transform: translateY(-3px);
}

/* =========================================
HERO IMAGE
========================================= */

.hero-image {
display: flex;
justify-content: center;
}

.image-wrapper {
width: min(400px, 100%);
position: relative;
}

.image-wrapper img {
width: 100%;
aspect-ratio: 4 / 5;
object-fit: cover;
border-radius: 25px;
position: relative;
z-index: 2;
box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

.image-decoration {
position: absolute;
width: 100%;
height: 100%;
right: -25px;
bottom: -25px;
border: 3px solid var(--primary);
border-radius: 25px;
}

/* =========================================
BACKGROUND
========================================= */

.hero-background {
position: absolute;
inset: 0;
pointer-events: none;
}

.circle {
position: absolute;
border-radius: 50%;
filter: blur(2px);
opacity: 0.5;
}

.circle-1 {
width: 300px;
height: 300px;
background: #dbeafe;
top: -100px;
right: -80px;
}

.circle-2 {
width: 250px;
height: 250px;
background: #eff6ff;
bottom: -100px;
left: -80px;
}

/* =========================================
SECTION HEADER
========================================= */

.section-header {
display: flex;
gap: 25px;
align-items: flex-start;
margin-bottom: 60px;
}

.section-number {
font-size: 14px;
font-weight: 800;
color: var(--primary);
padding-top: 7px;
}

.section-label {
text-transform: uppercase;
letter-spacing: 3px;
font-size: 12px;
color: var(--primary);
font-weight: 800;
margin-bottom: 8px;
}

.section-header h2 {
font-size: clamp(32px, 5vw, 48px);
line-height: 1.2;
letter-spacing: -1.5px;
}

.section-header h2 span {
color: var(--primary);
}

/* =========================================
ABOUT
========================================= */

.about {
background: var(--section);
}

.about-grid {
display: grid;
grid-template-columns: 1fr 0.8fr;
gap: 80px;
}

.about-text {
color: var(--text);
}

.about-text p {
margin-bottom: 20px;
}

.about-info {
background: white;
border-radius: 20px;
padding: 10px 30px;
box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

.info-item {
padding: 20px 0;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
gap: 20px;
}

.info-item:last-child {
border-bottom: 0;
}

.info-item span {
color: var(--text);
}

.info-item strong {
color: var(--dark);
text-align: right;
}

/* =========================================
SKILLS
========================================= */

.skills-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}

.skill-card {
padding: 35px;
background: white;
border: 1px solid var(--border);
border-radius: 18px;
transition: 0.3s ease;
}

.skill-card:hover {
transform: translateY(-8px);
border-color: #bfdbfe;
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.skill-icon {
width: 55px;
height: 55px;
background: #eff6ff;
color: var(--primary);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 800;
margin-bottom: 20px;
}

.skill-card h3 {
margin-bottom: 10px;
}

.skill-card p {
color: var(--text);
font-size: 14px;
margin-bottom: 20px;
}

.skill-tags,
.project-tech {
display: flex;
flex-wrap: wrap;
gap: 7px;
}

.skill-tags span,
.project-tech span {
background: #f1f5f9;
padding: 5px 10px;
border-radius: 6px;
font-size: 11px;
font-weight: 700;
color: #475569;
}

/* =========================================
EXPERIENCE
========================================= */

.experience {
background: var(--section);
}

.timeline {
max-width: 850px;
margin-left: 20px;
border-left: 2px solid #dbeafe;
}

.timeline-item {
position: relative;
padding: 0 0 50px 50px;
}

.timeline-item:last-child {
padding-bottom: 0;
}

.timeline-dot {
position: absolute;
left: -8px;
top: 5px;
width: 14px;
height: 14px;
background: var(--primary);
border: 3px solid white;
border-radius: 50%;
}

.timeline-date {
color: var(--primary);
font-size: 12px;
font-weight: 800;
}

.timeline-content h3 {
font-size: 22px;
margin-top: 8px;
}

.timeline-content h4 {
font-size: 14px;
color: #64748b;
margin-bottom: 10px;
}

.timeline-content p {
color: var(--text);
font-size: 14px;
}

/* =========================================
PORTFOLIO
========================================= */

.portfolio-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}

.project-card {
background: white;
border: 1px solid var(--border);
border-radius: 18px;
overflow: hidden;
transition: 0.3s;
}

.project-card:hover {
transform: translateY(-7px);
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.project-image {
height: 250px;
position: relative;
overflow: hidden;
}

.project-placeholder {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(
135deg,
#dbeafe,
#eff6ff
);
}

.project-placeholder span {
font-size: 70px;
font-weight: 800;
color: rgba(37, 99, 235, 0.15);
}

.project-overlay {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.75);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: 0.3s;
}

.project-card:hover .project-overlay {
opacity: 1;
}

.project-link {
color: white;
font-weight: 700;
border-bottom: 2px solid white;
}

.project-content {
padding: 28px;
}

.project-category {
color: var(--primary);
text-transform: uppercase;
letter-spacing: 1px;
font-size: 10px;
font-weight: 800;
}

.project-content h3 {
margin: 8px 0;
font-size: 22px;
}

.project-content p {
color: var(--text);
font-size: 14px;
margin-bottom: 18px;
}

/* =========================================
CONTACT
========================================= */

.contact {
background: var(--dark);
}

.contact-box {
display: flex;
align-items: center;
justify-content: space-between;
gap: 50px;
padding: 70px;
border: 1px solid rgba(255,255,255,0.08);
border-radius: 25px;
}

.contact-text .section-label {
color: #60a5fa;
}

.contact-text h2 {
color: white;
font-size: clamp(35px, 5vw, 55px);
line-height: 1.2;
margin-bottom: 20px;
}

.contact-text h2 span {
color: #60a5fa;
}

.contact-text p {
color: #94a3b8;
max-width: 600px;
}

.contact-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 20px;
}

.btn-whatsapp {
background: #22c55e;
color: white;
min-width: 180px;
}

.btn-whatsapp:hover {
background: #16a34a;
transform: translateY(-3px);
}

.email-link {
color: #cbd5e1;
font-size: 14px;
}

.email-link:hover {
color: white;
}

/* =========================================
WHATSAPP FLOATING
========================================= */

.whatsapp-float {
position: fixed;
right: 25px;
bottom: 25px;
width: 58px;
height: 58px;
background: #22c55e;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 900;
box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
animation: pulse 2s infinite;
}

.whatsapp-float span {
font-size: 12px;
font-weight: 800;
}

@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}


70% {
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
}

100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
}


}

/* =========================================
FOOTER
========================================= */

.footer {
background: #0f172a;
padding: 40px 0;
}

.footer-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
}

.footer .logo {
color: white;
}

.footer-content p {
color: #64748b;
font-size: 12px;
margin-top: 8px;
}

.copyright {
margin-top: 0 !important;
}

/* =========================================
BACK TO TOP
========================================= */

.back-to-top {
position: fixed;
right: 25px;
bottom: 95px;
width: 45px;
height: 45px;
border: 0;
border-radius: 10px;
background: var(--dark);
color: white;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: 0.3s;
z-index: 800;
}

.back-to-top.show {
opacity: 1;
visibility: visible;
}

.back-to-top:hover {
background: var(--primary);
}

/* =========================================
ANIMATION
========================================= */

.reveal {
opacity: 0;
transform: translateY(30px);
transition: 0.8s ease;
}

.reveal.show {
opacity: 1;
transform: translateY(0);
}

/* =========================================
RESPONSIVE TABLET
========================================= */

@media (max-width: 900px) {


.hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 80px;
}

.hero-image {
    order: -1;
}

.image-wrapper {
    width: 280px;
}

.hero-text {
    text-align: center;
}

.hero-description {
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons,
.social-links {
    justify-content: center;
}

.about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 45px;
}


}

/* =========================================
RESPONSIVE MOBILE
========================================= */

@media (max-width: 700px) {


.container {
    width: min(100% - 30px, 1120px);
}

.section {
    padding: 80px 0;
}

.navbar {
    height: 70px;
}

.menu-toggle {
    display: block;
}

.nav-menu {
    position: fixed;
    top: 70px;
    left: 15px;
    right: 15px;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-link {
    display: block;
    padding: 13px;
}

.nav-link::after {
    display: none;
}

.hero {
    padding-top: 80px;
}

.hero h1 {
    font-size: 55px;
    letter-spacing: -3px;
}

.hero h2 {
    font-size: 25px;
}

.hero-description {
    font-size: 15px;
}

.image-wrapper {
    width: 240px;
}

.section-header {
    gap: 15px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
}

.skills-grid,
.portfolio-grid {
    grid-template-columns: 1fr;
}

.skill-card {
    padding: 25px;
}

.timeline {
    margin-left: 8px;
}

.timeline-item {
    padding-left: 35px;
}

.contact-box {
    padding: 30px;
}

.contact-text h2 {
    font-size: 35px;
}

.footer-content {
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-float {
    right: 18px;
    bottom: 18px;
}

.back-to-top {
    right: 18px;
    bottom: 85px;
}


}

/* =========================================
REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {


html {
    scroll-behavior: auto;
}

*,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}


}
