/* ============================================
   PORTFOLIO SEBASTIÁN GUZMÁN — QA ENGINEER
   Tema: Navy / Azul tecnológico / Corporativo
   ============================================ */

/* =========================
   VARIABLES
========================= */

:root {
    --navy-950: #071426;
    --navy-900: #0B1B33;
    --navy-800: #102A4C;
    --navy-700: #143862;

    --blue-700: #175CD3;
    --blue-600: #2563EB;
    --blue-500: #3B82F6;
    --blue-400: #60A5FA;

    --background: #F7F9FC;
    --background-alt: #EEF3F9;

    --surface: #FFFFFF;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    --border: #DCE5F0;

    --success: #16A34A;

    --gradient-primary: linear-gradient(135deg, #0B1B33 0%, #175CD3 100%);
    --gradient-blue: linear-gradient(135deg, #175CD3 0%, #3B82F6 100%);

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --header-height: 72px;
    --container: 1200px;
}

/* =========================
   RESET / BASE
========================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    background: var(--navy-900);
    color: var(--white, #fff);
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--navy-900);
}

/* =========================
   UTILITIES
========================= */

.section {
    padding: 5.5rem 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-700);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.section-title span {
    color: var(--blue-700);
}

.section-line {
    width: 72px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 4px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--blue-600);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--navy-900);
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 27, 51, 0.3);
}

.btn-secondary:hover {
    background: var(--navy-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 27, 51, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--blue-700);
    border: 2px solid var(--blue-600);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   NAVBAR / HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--navy-900);
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--blue-700);
}

.site-logo small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav ul {
    display: flex;
    gap: 1.2rem;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.3rem 0.2rem;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-600);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-700);
    font-weight: 600;
}

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

.nav-cta {
    margin-left: 0.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    background: var(--background);
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 350px;
    height: 350px;
    background: #175CD3;
    bottom: -80px;
    left: -80px;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero-greeting {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--blue-700);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.hero-role {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.hero-role .typed-text {
    color: var(--blue-700);
}

.cursor {
    color: var(--blue-600);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    gap: 0.7rem;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 1rem;
    transition: all 0.25s ease;
}

.hero-socials a:hover {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-600);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Hero Photo */
.hero-photo {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.photo-frame {
    width: min(360px, 90%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    background: var(--surface);
}

.photo-frame img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
}

.photo-badge {
    position: absolute;
    bottom: 2.2rem;
    right: -0.8rem;
    background: var(--navy-900);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.photo-badge i {
    color: var(--blue-400);
    font-size: 0.9rem;
}

/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: var(--navy-900);
}

.about-focus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.focus-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.focus-item:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.focus-item i {
    font-size: 1.2rem;
    color: var(--blue-600);
    margin-top: 0.2rem;
}

.focus-item strong {
    font-size: 0.9rem;
    color: var(--navy-900);
}

.focus-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-profile {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.profile-header i {
    font-size: 1.3rem;
    color: var(--blue-600);
}

.profile-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
}

.profile-items li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0;
    font-size: 0.9rem;
}

.profile-items li i {
    color: var(--blue-600);
    font-size: 0.85rem;
    width: 1.2rem;
    text-align: center;
}

.profile-items li span {
    color: var(--text-secondary);
}

.profile-items li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =========================
   EXPERIENCE — TIMELINE
========================= */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 0 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--blue-500), var(--navy-800), var(--border));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -0.45rem;
    top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-600);
    border: 4px solid var(--background-alt);
    box-shadow: 0 0 0 3px var(--blue-400);
}

.timeline-dot.current {
    background: var(--success);
    border-color: rgba(22, 163, 74, 0.15);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-400);
    transform: translateY(-3px);
}

.timeline-card.current-card {
    border-color: rgba(22, 163, 74, 0.4);
    background: linear-gradient(to bottom, rgba(22, 163, 74, 0.03), var(--surface));
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.timeline-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--blue-700);
    font-weight: 600;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--background-alt);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}

.timeline-badge i {
    font-size: 0.6rem;
}

.timeline-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-note i {
    color: var(--blue-500);
    font-style: normal;
}

.timeline-responsibilities li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
    line-height: 1.6;
}

.timeline-responsibilities li::before {
    content: '›';
    position: absolute;
    left: 0.2rem;
    color: var(--blue-600);
    font-weight: 700;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.timeline-tech span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blue-700);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
}

/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: all 0.25s ease;
}

.skill-group:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.skill-group-header i {
    font-size: 1.2rem;
    color: var(--blue-600);
    background: rgba(37, 99, 235, 0.08);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.skill-group-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--background-alt);
    border: 1px solid var(--border);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.skill-badge:hover {
    border-color: var(--blue-500);
    color: var(--blue-700);
    background: rgba(37, 99, 235, 0.05);
}

.skill-badge small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================
   EDUCATION
========================= */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.25s ease;
}

.education-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.education-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    font-size: 1.5rem;
}

.education-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.education-school {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.education-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-700);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
}

.education-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.education-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(22, 163, 74, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* =========================
   CERTIFICATIONS
========================= */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.cert-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.cert-icon {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cert-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.cert-org {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================
   CONTACT
========================= */

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

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.contact-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    font-size: 1.2rem;
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.contact-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.25s ease;
}

.contact-secondary:hover {
    color: var(--blue-700);
}

.contact-secondary i {
    color: var(--blue-600);
}

.contact-secondary small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand span {
    font-size: 0.8rem;
    color: var(--blue-400);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--blue-400);
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

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

    .hero-photo {
        order: -1;
    }

    .photo-frame {
        width: min(320px, 80%);
        margin: 0 auto;
    }

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

    .about-profile {
        position: static;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    /* Mobile nav */
    .main-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        gap: 0.5rem;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transition: right 0.35s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-nav ul.active {
        right: 0;
    }

    .main-nav ul li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.7rem 0;
        font-size: 0.95rem;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Timeline mobile */
    .timeline {
        padding-left: 1.2rem;
    }

    .timeline-item {
        padding-left: 1.8rem;
    }

    .timeline-card {
        padding: 1.4rem;
    }

    .timeline-card-header {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .photo-frame {
        width: 100%;
    }

    .photo-badge {
        right: 0.5rem;
        bottom: 1.5rem;
    }

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

}

/* =========================
   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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}