/* ============================================
   Modern Personal Website - Dark Theme with Orange Accent
   Inspired by WebyKing Dribbble Design
   ============================================ */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f1f38;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --accent: #e8a838;
    --accent-hover: #f0bc5e;
    --border-color: #2a2a4a;
    --transition-slow: 2s ease-out;
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding-top: 8rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: transform var(--transition-fast);
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.05);
}

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

.nav-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-hover);
}

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


/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: clip;
    background: var(--bg-primary);
}

.hero-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem 2rem;
}

.orange-background-box {
    position: absolute;
    width: 50%;
    top: 0;
    bottom: 20%;
    background: linear-gradient(135deg, #b86b45 0%, #8b4e32 100%);
    right: 2rem;
    z-index: 1;
}

.hero-text-box {
    position: relative;
    z-index: 3;
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 3.5rem 6rem;
    background: rgba(26, 26, 46, 0.88);
    backdrop-filter: blur(12px);
    margin-left: 6rem;
    max-width: 690px;
    flex-shrink: 0;
}

.hero-photo {
    position: absolute;
    right: 2rem;
    bottom: 20%;
    z-index: 2;
}

.hero-name-full {
    line-height: 1;
    margin-bottom: 0;
    white-space: nowrap;
}

.hero-first-name {
    display: block;
    font-size: 5rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-last-name {
    display: block;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-divider {
    width: 4rem;
    height: 2px;
    background: var(--accent);
    margin: 1.25rem 0;
    opacity: 0.6;
}

.hero-role {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    margin-top: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-role-dot {
    display: inline-block;
    margin: 0 0.6rem;
    color: var(--accent);
    font-weight: 700;
}

.hero-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
    background: transparent;
}

.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

@media (min-width: 769px) {
    .hero-container {
        zoom: 0.9;
    }

    .orange-background-box {
        top: 5%;
        bottom: 15%;
    }

    .hero-photo {
        bottom: 15%;
    }
}

.hero-main-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}


/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slowReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Home page entrance animation
   ============================================ */
@keyframes homeHeroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeTextReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homePhotoReveal {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes homeBoxReveal {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes homeAboutReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial state: hide hero and about until animation runs */
.page-home .hero-section .hero-container {
    animation: homeHeroReveal 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-home .hero-section .orange-background-box {
    opacity: 0;
    animation: homeBoxReveal 2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.page-home .hero-section .hero-first-name {
    opacity: 0;
    animation: homeTextReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.page-home .hero-section .hero-last-name {
    opacity: 0;
    animation: homeTextReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.page-home .hero-section .hero-divider {
    opacity: 0;
    animation: homeTextReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.page-home .hero-section .hero-role {
    opacity: 0;
    animation: homeTextReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.75s forwards;
}

.page-home .hero-section .hero-social {
    opacity: 0;
    animation: homeTextReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 2.1s forwards;
}

.page-home .hero-section .hero-photo {
    opacity: 0;
    animation: homePhotoReveal 2.2s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.page-home .about-section {
    opacity: 0;
    animation: homeAboutReveal 2s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}

/* ============================================
   About Section
   Accent: same orange as hero .orange-background-box (#b86b45 / #8b4e32)
   ============================================ */
.about-section {
    padding: 6rem 2rem 8rem;
    background: #ffffff;
    position: relative;
}

/* Vertical accent bar (hero orange) on the left */
.about-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #b86b45 0%, #8b4e32 100%);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 2rem;
}

.about-content-grid {
    display: grid;
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 4rem 5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .about-section::before {
        width: 4px;
    }

    .about-container {
        padding-left: 1.5rem;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        justify-items: center;
        text-align: center;
    }

    .about-text-col {
        max-width: 560px;
    }

    .about-text-col .about-description {
        text-align: left;
    }
}

.about-image-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-image-col.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-photo-wrapper {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-text-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.about-text-col.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #8b4e32;
    display: inline-block;
}

.about-section .about-description {
    color: #4a4a5a;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 400;
}

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

/* ============================================
   Page Section (Shared for Projects, Studio, Contact)
   ============================================ */
.page-section {
    min-height: 100vh;
    padding: 5rem 2rem 4rem;
    background: var(--bg-primary);
}

.page-header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.project-card--featured {
    grid-column: 1 / -1;
    position: relative;
    overflow: visible;
}

.project-label {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 0 4px 4px 0;
    margin-left: calc(-2.5rem - 10px);
    padding-left: calc(2.5rem + 10px);
    margin-bottom: 1.25rem;
    position: relative;
    align-self: flex-start;
}

.project-label::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 10px 0 0;
    border-color: color-mix(in srgb, var(--accent) 55%, black) transparent transparent transparent;
}

.project-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.project-card--featured .project-card-title {
    font-size: 1.6rem;
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--accent);
    background: rgba(232, 168, 56, 0.06);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.project-tags li:hover {
    border-color: var(--accent);
    background: rgba(184, 107, 69, 0.15);
}

.project-ai-integrations {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(232, 168, 56, 0.04);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.project-ai-heading {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-ai-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-ai-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 1.25rem;
    position: relative;
}

.project-ai-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.ai-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.ai-item-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.projects-bridge {
    text-align: center;
    margin-top: 1rem;
    padding: 2rem 0 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.projects-bridge-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.projects-bridge-link {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 2px;
}

.projects-bridge-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.projects-bridge-link:hover::after {
    width: 100%;
}

.projects-bridge-link:hover {
    color: var(--text-primary);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    min-height: 100vh;
    padding: 5rem 2rem 4rem;
    background: #ffffff;
}

/* Contact section: dark text on white background */
.contact-section .contact-title,
.contact-section .contact-info-side h2,
.contact-section .method-details h3 {
    color: var(--bg-primary);
}

.contact-section .contact-subtitle,
.contact-section .contact-description,
.contact-section .method-details p,
.contact-section .form-group label {
    color: #4a4a5a;
}

.contact-section .contact-method-item {
    border-bottom-color: #e5e5e5;
}

.contact-section .form-group input,
.contact-section .form-group textarea {
    background: #f8f8f8;
    border-color: #ddd;
    color: #1a1a2e;
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
    background: #fff;
    border-color: var(--accent);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.contact-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.contact-info-side {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.contact-info-side h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

a.contact-method-item {
    text-decoration: none;
    color: inherit;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.contact-method-item:hover {
    padding-left: 1rem;
}

.contact-method-item:last-child {
    border-bottom: none;
}

.method-icon {
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.method-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form-side {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(232, 168, 56, 0.03);
}

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

.btn-submit {
    padding: 1.25rem 3rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: var(--bg-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
    align-self: flex-start;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ============================================
   Messages/Alerts
   ============================================ */
.messages {
    margin-bottom: 3rem;
}

.alert {
    padding: 1.5rem;
    border: 1px solid;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.alert-success {
    background: rgba(232, 168, 56, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* ============================================
   About Section Legacy Support
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.about-text-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-text-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text-section h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about-text-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.about-values-column {
    position: sticky;
    top: 120px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.about-values-column.visible {
    opacity: 1;
    transform: translateX(0);
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.values-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.values-list li:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.values-list li:last-child {
    border-bottom: none;
}

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

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-container p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
    font-weight: 400;
}

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

/* ============================================
   Body scroll lock when mobile menu is open
   ============================================ */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-photo-wrapper {
        margin: 0 auto;
    }

    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .nav-container {
        padding: 0 2rem;
    }

    .hero-intro {
        font-size: 2.5rem;
        white-space: normal;
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .contact-title {
        font-size: 3rem;
    }

    .page-title {
        font-size: 3rem;
    }

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

    .project-card--featured {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 3.5rem;
    }

    html {
        scroll-padding-top: 3.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .nav-menu {
        gap: 1.8rem;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 10rem;
    }

    .hero-container {
        flex-direction: column;
        min-height: 25vh;
        padding: 0 1.5rem 0;
        margin-top: -20rem;
    }

    .orange-background-box {
        width: 70%;
        top: auto;
        bottom: -2%;
        height: 43%;
        right: 5%;
    }

    .hero-text-box {
        margin-left: 0.25rem;
        max-width: 72%;
        padding: 1.75rem 1.35rem;
        border-width: 1px;
        position: relative;
        z-index: 3;
        transform: translate(0.5rem, 22.5rem);
        align-self: flex-start;
    }

    .hero-photo {
        position: absolute;
        right: 5%;
        bottom: -2%;
        margin-top: 0;
        z-index: 2;
        overflow: hidden;
    }

    .hero-first-name {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-last-name {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-name-full {
        white-space: normal;
    }

    .hero-divider {
        width: 2.5rem;
        margin: 0.75rem 0;
    }

    .hero-role {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        margin-top: 0.75rem;
        letter-spacing: 1px;
    }

    .hero-role-software {
        display: none;
    }

    .hero-main-image {
        max-width: 280px;
        margin: 0;
        margin-right: -20px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .about-section {
        padding: 3rem 1.5rem 4rem;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-photo-wrapper {
        margin: 0 auto;
        max-width: 280px;
    }

    .about-heading {
        font-size: 2rem;
    }

    .about-section .about-description {
        font-size: 0.95rem;
    }

    .page-section {
        padding: 3rem 1.5rem 3rem;
    }

    .page-header {
        margin-bottom: 3rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .project-card {
        padding: 1.75rem;
    }

    .project-card-title {
        font-size: 1.2rem;
    }

    .project-card--featured .project-card-title {
        font-size: 1.3rem;
    }

    .project-card-desc {
        font-size: 0.9rem;
    }

    .contact-section {
        min-height: auto;
        padding: 3rem 1.5rem 3rem;
    }

    .contact-header {
        margin-bottom: 3rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-info-side h2 {
        font-size: 1.5rem;
    }

    .contact-description {
        margin-bottom: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

    .contact-method-item {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 4rem;
    }

    html {
        scroll-padding-top: 4rem;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .nav-logo {
        margin-right: auto;
    }

    .nav-menu {
        gap: 1.2rem;
    }

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

    .hero-container {
        padding: 1rem 1rem 0;
        min-height: 80vh;
    }

    .hero-text-box {
        padding: 1.25rem 1rem;
        max-width: 68%;
        transform: translate(0.5rem, 22.5rem);
    }

    .hero-first-name {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }

    .hero-last-name {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }

    .hero-divider {
        width: 2rem;
        margin: 0.5rem 0;
    }

    .hero-role {
        font-size: 0.65rem;
        letter-spacing: 0.8px;
    }

    .hero-main-image {
        max-width: 200px;
    }

    .about-section {
        padding: 2.5rem 1rem 3rem;
    }

    .about-photo-wrapper {
        max-width: 200px;
    }

    .about-heading {
        font-size: 1.75rem;
    }

    .about-section .about-description {
        font-size: 0.9rem;
    }

    .page-section {
        padding: 2.5rem 1rem 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .contact-section {
        padding: 2.5rem 1rem 2.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card-desc {
        font-size: 0.85rem;
    }

    .project-tags li {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-container p {
        font-size: 0.8rem;
    }
}
