/* ========================================

1. GLOBAL SETTINGS
   ======================================== */

:root {
--navy: #0b1730;
--navy-light: #14294b;
--blue: #1e416d;
--gold: #d8ad50;
--gold-light: #f1d58b;
--white: #ffffff;
--background: #f6f8fc;
--text: #26344b;
--muted: #65738a;
--border: #e5eaf2;
--shadow: 0 15px 45px rgba(11, 23, 48, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
scroll-padding-top: 90px;
}

body {
font-family: Arial, Helvetica, sans-serif;
background: var(--white);
color: var(--text);
line-height: 1.7;
overflow-x: hidden;
}

img {
display: block;
max-width: 100%;
}

a {
color: inherit;
text-decoration: none;
}

button,
a {
-webkit-tap-highlight-color: transparent;
}

button {
font: inherit;
}

section {
padding: 100px 8%;
}

section h2 {
color: var(--navy);
}

::selection {
background: var(--gold);
color: var(--navy);
}

/* ========================================
2. NAVIGATION
======================================== */

.site-header {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(255, 255, 255, 0.96);
border-bottom: 1px solid rgba(229, 234, 242, 0.8);
backdrop-filter: blur(14px);
}

.navbar {
    position: relative;
    min-height: 80px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.logo {
font-size: 1.6rem;
font-weight: 800;
letter-spacing: -1px;
color: var(--navy);
}

.logo span {
color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
color: #a77b18;
}

.nav-cta {
padding: 10px 18px;
border-radius: 8px;
background: var(--navy);
color: var(--white) !important;
}

.nav-cta:hover {
background: var(--blue);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(216, 173, 80, 0.35);
    border-radius: 14px;
    background: var(--navy);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover {
    background: var(--navy-light);
    border-color: var(--gold);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 10px;
    background: var(--gold-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* ========================================
3. HERO SECTION
======================================== */

.hero {
position: relative;
min-height: 660px;
padding: clamp(70px, 8vw, 100px) 8%;
display: grid;
grid-template-columns: 1.2fr 0.8fr;
align-items: center;
gap: clamp(35px, 5vw, 65px);
overflow: hidden;
background:
radial-gradient(
circle at 85% 15%,
rgba(216, 173, 80, 0.12),
transparent 30%
),
linear-gradient(135deg, #09152c, #142d51);
color: var(--white);
}

.hero::before {
content: "";
position: absolute;
width: 320px;
height: 320px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 50%;
right: -100px;
bottom: -130px;
pointer-events: none;
}

.hero-content {
position: relative;
z-index: 1;
max-width: 650px;
}

.hero-eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
margin-bottom: 24px;
color: var(--gold-light);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
}

.hero-eyebrow::before {
content: "";
width: 25px;
height: 2px;
background: var(--gold);
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.12;
    letter-spacing: -1.8px;
    overflow-wrap: normal;
    word-break: normal;
}
.hero h2 {
margin-bottom: 20px;
color: var(--gold-light);
font-size: clamp(1.15rem, 2.3vw, 1.65rem);
font-weight: 500;
line-height: 1.5;
}

.hero p {
max-width: 570px;
margin-bottom: 18px;
color: #d2dceb;
font-size: 1rem;
line-height: 1.8;
}

.hero-actions,
.contact-actions,
.project-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 14px;
margin-top: 30px;
}

.btn {
display: inline-flex;
justify-content: center;
align-items: center;
gap: 8px;
min-height: 48px;
padding: 12px 22px;
border: 1px solid transparent;
border-radius: 9px;
font-size: 0.92rem;
font-weight: 700;
text-align: center;
transition:
transform 0.25s ease,
background-color 0.25s ease,
box-shadow 0.25s ease;
}

.btn:hover {
transform: translateY(-3px);
}

.btn-primary {
background: var(--gold);
color: var(--navy);
box-shadow: 0 8px 25px rgba(216, 173, 80, 0.15);
}

.btn-primary:hover {
background: var(--gold-light);
}

.btn-secondary {
border-color: rgba(255, 255, 255, 0.35);
color: var(--white);
}

.btn-secondary:hover {
background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}

.profile-frame {
position: relative;
width: min(100%, 350px);
padding: 12px;
border: 1px solid rgba(216, 173, 80, 0.5);
border-radius: 180px 180px 28px 28px;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.profile-frame::before {
content: "";
position: absolute;
inset: -9px;
border: 1px solid rgba(255, 255, 255, 0.13);
border-radius: inherit;
pointer-events: none;
}

.profile-image {
width: 100%;
height: 400px;
object-fit: cover;
object-position: center;
border-radius: 170px 170px 20px 20px;
}

.profile-caption {
padding: 17px 8px 8px;
color: var(--gold-light);
font-size: 0.85rem;
text-align: center;
letter-spacing: 0.5px;
}

/* ========================================
4. ROTATING STATEMENT
======================================== */

.build-statement {
padding-top: 70px;
padding-bottom: 70px;
background: var(--background);
text-align: center;
}

.build-heading {
max-width: 900px;
margin: 0 auto 18px;
color: var(--navy);
font-size: clamp(1.8rem, 4vw, 3rem);
line-height: 1.35;
letter-spacing: -1px;
}

.rotating-text {
display: inline-block;
color: #a77b18;
transition: opacity 0.3s ease;
}

.build-statement > p {
max-width: 680px;
margin: 0 auto;
color: var(--muted);
}

.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* ========================================
5. SECTION HEADINGS
======================================== */

.section-heading {
max-width: 700px;
margin-bottom: 45px;
}

.section-label {
display: inline-block;
margin-bottom: 12px;
color: #a77b18;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 2px;
text-transform: uppercase;
}

.section-heading h2 {
margin-bottom: 15px;
font-size: clamp(2rem, 4vw, 3rem);
line-height: 1.2;
letter-spacing: -1px;
}

.section-heading p {
color: var(--muted);
}

/* ========================================
6. ABOUT SECTION
======================================== */

.about-section {
background: var(--white);
}

.about-content {
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 55px;
align-items: start;
}

.about-copy p {
margin-bottom: 20px;
color: var(--muted);
}

.about-highlights {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}

.highlight-card {
padding: 23px 18px;
border: 1px solid var(--border);
border-radius: 13px;
background: var(--background);
transition:
transform 0.25s ease,
box-shadow 0.25s ease;
}

.highlight-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow);
}

.highlight-card h3 {
margin-bottom: 7px;
color: var(--navy);
font-size: 1rem;
}

.highlight-card p {
color: var(--muted);
font-size: 0.88rem;
}

/* ========================================
7. SKILLS SECTION
======================================== */

.skills-section {
background: var(--background);
}

.skills-intro {
max-width: 700px;
margin-bottom: 35px;
color: var(--muted);
}

.skills-groups {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 25px;
}

.skills-group {
padding: 28px;
border: 1px solid var(--border);
border-radius: 15px;
background: var(--white);
}

.skills-group h3 {
margin-bottom: 20px;
color: var(--navy);
font-size: 1.1rem;
}

.skills-list {
display: flex;
flex-wrap: wrap;
gap: 11px;
}

.skills-list span {
display: inline-block;
padding: 9px 14px;
border: 1px solid #e4eaf3;
border-radius: 8px;
background: #f7f9fc;
color: var(--blue);
font-size: 0.88rem;
transition:
transform 0.2s ease,
border-color 0.2s ease,
background-color 0.2s ease;
}

.skills-list span:hover {
transform: translateY(-2px);
border-color: var(--gold);
background: #fffaf0;
}

/* ========================================
8. PROJECTS SECTION
======================================== */

.projects-section {
background: var(--white);
}

.project-card {
padding: clamp(22px, 4vw, 42px);
border: 1px solid var(--border);
border-radius: 20px;
background: var(--white);
box-shadow: var(--shadow);
}

.project-topline {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 20px;
}

.project-label {
display: inline-block;
padding: 6px 12px;
border-radius: 6px;
background: #fff5dc;
color: #7e5b12;
font-size: 0.76rem;
font-weight: 800;
letter-spacing: 0.7px;
text-transform: uppercase;
}

.project-status {
color: #27734a;
font-size: 0.82rem;
font-weight: 700;
}

.project-info h3 {
margin-bottom: 14px;
color: var(--navy);
font-size: clamp(1.5rem, 3vw, 2.1rem);
line-height: 1.3;
}

.project-info > p {
max-width: 800px;
margin-bottom: 20px;
color: var(--muted);
}

.project-tech {
display: flex;
flex-wrap: wrap;
gap: 9px;
margin: 22px 0;
}

.project-tech span {
padding: 6px 11px;
border-radius: 6px;
background: #eef2f8;
color: var(--blue);
font-size: 0.8rem;
font-weight: 700;
}

.project-gallery {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
margin: 35px 0;
}

.project-gallery figure {
min-width: 0;
padding: 10px;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--background);
overflow: hidden;
}

.project-gallery img {
width: 100%;
height: auto;
border-radius: 7px;
object-fit: contain;
background: var(--white);
transition: transform 0.35s ease;
}

.project-gallery figure:hover img {
transform: scale(1.025);
}

.project-gallery figcaption {
padding: 12px 5px 5px;
color: var(--muted);
font-size: 0.83rem;
}

.project-actions .btn-secondary {
border-color: var(--navy);
color: var(--navy);
}

.project-actions .btn-secondary:hover {
background: var(--background);
}

.coming-next {
margin-top: 35px;
padding: 22px;
border-left: 3px solid var(--gold);
border-radius: 0 10px 10px 0;
background: var(--background);
}

.coming-next h3 {
margin-bottom: 7px;
color: var(--navy);
font-size: 1rem;
}

.coming-next p {
color: var(--muted);
font-size: 0.9rem;
}

/* ========================================
9. CONTACT SECTION
======================================== */

.contact-section {
background:
radial-gradient(
circle at 90% 10%,
rgba(216, 173, 80, 0.12),
transparent 32%
),
var(--navy);
color: var(--white);
}

.contact-content {
max-width: 800px;
margin: 0 auto;
text-align: center;
}

.contact-content .section-label {
color: var(--gold-light);
}

.contact-content h2 {
margin-bottom: 20px;
color: var(--white);
font-size: clamp(2.1rem, 5vw, 3.5rem);
line-height: 1.2;
}

.contact-content > p {
max-width: 620px;
margin: 0 auto;
color: #d2dceb;
}

.contact-actions {
justify-content: center;
}

.contact-section .btn-secondary {
border-color: rgba(255, 255, 255, 0.4);
color: var(--white);
}

.contact-section .btn-secondary:hover {
background: rgba(255, 255, 255, 0.08);
}

/* ========================================
10. FOOTER
======================================== */

.site-footer {
padding: 28px 8%;
background: #071126;
color: #c7d0df;
}

.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}

.footer-logo {
color: var(--white);
font-size: 1rem;
font-weight: 800;
}

.footer-content p {
font-size: 0.83rem;
}

.footer-content a:hover {
color: var(--gold-light);
}

/* ========================================
11. WHATSAPP FLOATING BUTTON
======================================== */

.whatsapp-float {
position: fixed;
right: 22px;
bottom: 24px;
z-index: 900;
display: flex;
justify-content: center;
align-items: center;
width: 56px;
height: 56px;
border: 2px solid rgba(255, 255, 255, 0.9);
border-radius: 50%;
background: #25d366;
color: #073b20;
font-size: 1.65rem;
font-weight: 800;
box-shadow: 0 7px 25px rgba(0, 0, 0, 0.18);
transition: transform 0.25s ease;
}

.whatsapp-float:hover {
transform: translateY(-4px) scale(1.04);
}

/* ========================================
12. BACK TO TOP
======================================== */

.back-to-top {
position: fixed;
right: 27px;
bottom: 93px;
z-index: 899;
display: flex;
justify-content: center;
align-items: center;
width: 44px;
height: 44px;
border: 1px solid var(--border);
border-radius: 50%;
background: var(--white);
color: var(--navy);
font-size: 1.3rem;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition:
opacity 0.25s ease,
visibility 0.25s ease,
transform 0.25s ease;
}

.back-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

/* ========================================
13. REVEAL ANIMATIONS
======================================== */

.js-enabled [data-reveal] {
opacity: 0;
transform: translateY(22px);
transition:
opacity 0.65s ease,
transform 0.65s ease;
}

.js-enabled [data-reveal].revealed {
opacity: 1;
transform: translateY(0);
}

/* ========================================
14. KEYBOARD ACCESSIBILITY
======================================== */

a:focus-visible,
button:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 4px;
}

/* ========================================
15. TABLET AND MOBILE
======================================== */

@media (max-width: 900px) {

section {
    padding: 75px 6%;
}

.navbar {
    padding: 0 6%;
}

.nav-links {
    gap: 17px;
}

.hero {
    grid-template-columns: 1fr 0.75fr;
    gap: 30px;
    padding: 75px 6%;
}

.profile-image {
    height: 330px;
}

.about-content {
    grid-template-columns: 1fr;
    gap: 25px;
}

.skills-groups {
    grid-template-columns: 1fr;
}

}

@media (max-width: 700px) {

section {
    padding: 65px 6%;
}

.navbar {
    min-height: 68px;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
position: absolute;
top: calc(100% + 10px);
left: 5%;
right: 5%;
display: none;
flex-direction: column;
align-items: stretch;
gap: 5px;
padding: 14px;
border: 1px solid rgba(216, 173, 80, 0.25);
border-radius: 16px;
background: #0b1730;
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
z-index: 1001;
}

.nav-links.open {
display: flex;
animation: menuAppear 0.25s ease;
}

.nav-links li {
width: 100%;
}

.nav-links a {
display: block;
padding: 13px 15px;
border-radius: 9px;
color: #e0e7f0;
font-size: 0.95rem;
transition: background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
background: rgba(255, 255, 255, 0.07);
color: #f1d58b;
}

.nav-links .nav-cta {
margin-top: 6px;
background: #d8ad50;
color: #0b1730 !important;
text-align: center;
}

@keyframes menuAppear {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 70px 6%;
    text-align: center;
}

.hero-content {
    margin: 0 auto;
}

.hero-eyebrow {
    justify-content: center;
}

.hero-actions {
    justify-content: center;
}

.hero-visual {
    width: 100%;
}

.profile-frame {
    width: min(78%, 300px);
}

.profile-image {
    height: 340px;
}

.build-statement {
    padding-top: 55px;
    padding-bottom: 55px;
}

.section-heading {
    margin-bottom: 32px;
}

.about-highlights {
    gap: 12px;
}

.highlight-card {
    padding: 18px 14px;
}

.skills-group {
    padding: 22px 18px;
}

.project-card {
    padding: 20px 15px;
    border-radius: 14px;
}

.project-gallery {
    gap: 12px;
}

.project-gallery figure {
    padding: 6px;
}

.project-gallery figcaption {
    font-size: 0.76rem;
}

.project-actions .btn,
.contact-actions .btn {
    width: 100%;
}

.contact-actions {
    align-items: stretch;
}

.footer-content {
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-float {
    right: 15px;
    bottom: 18px;
    width: 52px;
    height: 52px;
}

.back-to-top {
    right: 19px;
    bottom: 80px;
}

}

@media (max-width: 380px) {

.hero h1 {
    font-size: 2.3rem;
}

.profile-frame {
    width: 88%;
}

.profile-image {
    height: 300px;
}

.about-highlights {
    grid-template-columns: 1fr;
}

.project-gallery {
    grid-template-columns: 1fr;
}

.hero-actions .btn {
    width: 100%;
}

}

/* ========================================
16. RESPECT 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;
    scroll-behavior: auto !important;
}

.js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
}

}
.menu-toggle span {
transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}
/* CALMER MOBILE EXPERIENCE */

@media (max-width: 700px) {

body {
    line-height: 1.8;
}

section {
    padding: 75px 7%;
}

.hero {
    padding-top: 65px;
    padding-bottom: 75px;
    gap: 35px;
}

.hero h1 {
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    margin-bottom: 22px;
}

.section-heading {
    margin-bottom: 38px;
}

.about-content {
    gap: 35px;
}

.skills-groups {
    gap: 20px;
}

.project-card {
    margin-top: 15px;
}

.project-gallery {
    gap: 18px;
}

.hero-actions,
.contact-actions {
    gap: 16px;
}

}
/* RESPONSIVE CONNECT BUTTON */

.mobile-connect {
    display: none;
}

@media (max-width: 700px) {
    
    .navbar>.desktop-connect {
        display: none !important;
    }
    .mobile-connect {
        display: block;
        margin-top: 6px;
    }

    .mobile-connect .nav-cta {
        display: block;
        width: 100%;
        margin-top: 0;
        padding: 13px 15px;
        border-radius: 9px;
        background: #d8ad50;
        color: #0b1730 !important;
        text-align: center;
    }

}
.logo-image {
    display: block;
    width: 75px;
    height: 62px;
    object-fit: contain;
}