/* ==============================================
   LAZARUS MENESES — PORTFOLIO
   Premium Dark/Light Theme Portfolio
   ============================================== */

/* ---- Theme Variables ---- */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0f1d;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #253449;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #ff0066;
    --accent-hover: #e6005c;
    --accent-secondary: #7c3aed;
    --accent-glow: rgba(255, 0, 102, 0.25);
    --accent-glow-secondary: rgba(124, 58, 237, 0.25);
    --border-color: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(10, 15, 29, 0.82);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #ff0066, #7c3aed);
    --gradient-text: linear-gradient(135deg, #ff0066, #ff6b9d, #7c3aed);
    --section-padding: 6rem 2rem;
    --container-max: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.06);
    --header-bg: rgba(255, 255, 255, 0.82);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

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

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ==========================
   HEADER
   ========================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 0.75rem 2rem;
}

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.lang-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: rotate(15deg);
    border-color: var(--accent);
}

.open-menu,
.close-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu {
    color: var(--accent);
}

/* ==========================
   HERO
   ========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    padding-top: 80px;
}

/* Floating gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-glow);
    top: -80px;
    right: -80px;
    animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-glow-secondary);
    bottom: -60px;
    left: -60px;
    animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 157, 0.15);
    top: 50%;
    left: 50%;
    animation: float-orb 12s ease-in-out infinite 2s;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.role {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    min-height: 2rem;
    font-weight: 400;
}

.typing-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink-cursor 0.8s step-end infinite;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Image */
.hero-img {
    flex-shrink: 0;
}

.profile-ring {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient);
    animation: spin-ring 6s linear infinite;
    z-index: 0;
}

.profile-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-primary);
    z-index: 1;
}

.profile-img {
    width: 310px;
    height: 310px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.03);
}

/* ==========================
   ABOUT
   ========================== */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ==========================
   SKILLS
   ========================== */
.skills {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.services {
    padding: var(--section-padding);
    background: linear-gradient(180deg, rgba(255, 0, 102, 0.04), transparent);
    margin-bottom: 1.5rem;
}

.services .section-title {
    margin-bottom: 2.5rem;
}

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

.skill-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 0, 102, 0.15);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: var(--gradient);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

.skill-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.skill-tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    cursor: default;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================
   FAQ
   ========================== */
.faq {
    padding: var(--section-padding);
    background: linear-gradient(180deg, rgba(255, 0, 102, 0.04), transparent);
}

.faq-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.faq-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.faq-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================
   PROJECTS
   ========================== */
.projects {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 0, 102, 0.15);
}

.project-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-preview-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: var(--transition);
}

.project-card:hover .project-preview-icon {
    transform: scale(1.15) rotate(-5deg);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Preview gradient classes */
.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.project-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-period i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    align-items: center;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition);
    cursor: pointer;
}

.project-btn i {
    font-size: 0.85rem;
}

.project-btn.web-btn {
    background: var(--gradient);
    color: #fff;
}

.project-btn.web-btn:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.project-btn.apk-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.project-btn.apk-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================
   CONTACT
   ========================== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    transform: translateX(6px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
    width: 100%;
}

    .form-message {
        font-size: 0.95rem;
        min-height: 1.5rem;
        margin-top: -0.5rem;
        color: var(--text-muted);
        transition: color 0.25s ease;
    }

    .form-message.success {
        color: #38f9d7;
    }

    .form-message.error {
        color: #ff5066;
    }


/* ==========================
   FOOTER
   ========================== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

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

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-socials a i {
    color: inherit;
    font-size: inherit;
}

.footer-socials a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ==========================
   SCROLL TO TOP
   ========================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.scroll-top i {
    color: #fff;
    font-size: inherit;
}

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

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ==========================
   ANIMATIONS — Keyframes
   ========================== */
@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 15px) scale(1.02);
    }
}

@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================
   SCROLL ANIMATIONS
   ========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.4s;
}

/* ==========================
   MEDIA QUERIES
   ========================== */

/* Large tablets / small desktops */
@media screen and (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }

    .profile-ring {
        width: 280px;
        height: 280px;
    }

    .profile-img {
        width: 270px;
        height: 270px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }

    /* Header mobile */
    .open-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 2000;
        background: var(--bg-primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4rem 2rem 2rem;
        gap: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
    }

    .close-menu {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    /* Hero mobile */
    .hero {
        padding-top: 100px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .profile-ring {
        width: 250px;
        height: 250px;
    }

    .profile-img {
        width: 240px;
        height: 240px;
    }

    /* Contact mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Projects mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Skills mobile */
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    :root {
        --section-padding: 3.5rem 1rem;
    }

    header {
        padding: 0.75rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .profile-ring {
        width: 200px;
        height: 200px;
    }

    .profile-img {
        width: 192px;
        height: 192px;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .project-preview {
        height: 160px;
    }

    .contact-card {
        padding: 1rem;
    }

    .scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

/* Extra large screens */
@media screen and (min-width: 1440px) {
    .hero-content {
        max-width: 1300px;
    }

    .container {
        max-width: 1300px;
    }
}

/* ==========================
   PROJECT DETAILS PAGES
   ========================== */
.project-hero {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    transition: var(--transition);
}

.project-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.project-content {
    padding: 50px 0;
    transition: var(--transition);
}

.project-section {
    margin-bottom: 3rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-section:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.project-section h2 {
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.project-section p {
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-shineup .project-section h2 { color: var(--accent); }
.project-eunoia .project-section h2 { color: var(--accent-secondary); }
.project-elements .project-section h2 { color: var(--accent); }
.project-notes .project-section h2 { color: #10b981; }
.project-landing .project-section h2 { color: #f97316; }
.project-btn.details-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
}

.project-btn.details-btn:hover {
    background: var(--gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 22px var(--accent-glow);
    transform: translateY(-2px);
}
