/* ===================================
   RESET AND BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gray Palette - Dark Theme */
    --gray-50: #f5f5f5;
    --gray-100: #e5e5e5;
    --gray-200: #cccccc;
    --gray-300: #c7c7c7;
    --gray-400: #8f8f8f;
    --gray-500: #707070;
    --gray-600: #5a5a5a;
    --gray-700: #444444;
    --gray-800: #2e2e2e;
    --gray-900: #1a1a1a;
    --gray-950: #0d0d0d;

    /* Muted Color Palette for Sections */
    --color-about: #2a2a2a;           /* Deep charcoal */
    --color-design: #2d4a52;          /* Very muted teal */
    --color-photography: #3a4a3d;     /* Very muted green */
    --color-writing: #4a3d52;         /* Very muted purple */
    --color-teaching: #5c373d;        /* Muted red-rust */
    --color-contact: #2a2a2a;         /* Deep charcoal */

    /* Base Colors */
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-400);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
}

h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
}

/* ===================================
   NAVIGATION
   =================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(28, 27, 24, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand:hover {
    opacity: 0.8;
}

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

.nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 6px;
    position: relative;
}

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

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

/* Color-coded hover and active states */
.nav-link[data-section="design"]:hover,
.nav-link[data-section="design"].active {
    background-color: rgba(58, 107, 124, 0.3);
}

.nav-link[data-section="photography"]:hover,
.nav-link[data-section="photography"].active {
    background-color: rgba(88, 112, 92, 0.3);
}

.nav-link[data-section="writing"]:hover,
.nav-link[data-section="writing"].active {
    background-color: rgba(139, 107, 158, 0.3);
}

.nav-link[data-section="teaching"]:hover,
.nav-link[data-section="teaching"].active {
    background-color: rgba(154, 92, 100, 0.3);
}

.nav-link[data-section="contact"]:hover,
.nav-link[data-section="contact"].active {
    background-color: rgba(42, 42, 42, 0.3);
}

/* Sliding active indicator */
.nav-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: var(--indicator-left, 0);
    width: var(--indicator-width, 0);
    height: 9px;
    background-color: var(--indicator-background, #2a2a2a);
    border-radius: 4px 4px 0 0;
    transition: left 0.3s ease-out, width 0.3s ease-out, background-color 0.3s ease-out;
    z-index: 1;
}

/* ===================================
   LAYOUT - MAIN CONTENT & SECTIONS
   =================================== */
#main-content {
    margin-top: 75px;
}

.section {
    min-height: calc(100vh - 75px);
    padding: 3rem 2rem;
    position: relative;
    transition: var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.content-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Section Color Backgrounds */
.section-about {
    background: var(--color-about);
}

.section-design {
    background: var(--color-design);
}

.section-photography {
    background: var(--color-photography);
}

.section-writing {
    background: var(--color-writing);
}

.section-teaching {
    background: var(--color-teaching);
}

.section-contact {
    background: var(--color-contact);
}

.subsection {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    position: relative;
}

.subsection p.closing-paragraph {
    margin-top: 2rem;
}

.subsection:last-child::after {
    display: none;
}

/* ===================================
   SHARED COMPONENTS - BUTTONS
   =================================== */
.publication-link,
.course-link,
.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    font-weight: 500;
}

.publication-link:hover,
.course-link:hover,
.read-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.read-more-btn {
    display: block;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.submit-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===================================
   SHARED COMPONENTS - GALLERIES
   =================================== */
.gallery-container {
    position: relative;
    margin: 1.5rem 0;
}

.gallery {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 25px;
    margin: 1.5rem 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
    height: 8px;
}

.gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
}

.gallery-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: -20px;
}

.gallery-nav-btn.next {
    right: -20px;
}

.gallery-image {
    flex-shrink: 0;
    height: 300px;
    width: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Legacy gallery grid (unused but kept for backwards compatibility) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-primary);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ===================================
   SHARED COMPONENTS - ARTICLE CARDS
   =================================== */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    width: 400px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.08);
}

.article-hero-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.article-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-content h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* UX Article Cards (clickable modal triggers) */
.ux-article-card {
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

.ux-article-card .article-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 150px);
    padding: 1.5rem;
}

.ux-article-card .article-content p {
    flex-grow: 1;
}

/* Legacy article styles (unused but kept for backwards compatibility) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   SHARED COMPONENTS - IMAGES & VIDEO
   =================================== */
.article-hero {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.article-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.article-hero-large {
    width: 500px;
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
    border-radius: 8px;
}

.article-hero-small {
    width: 150px;
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
    border-radius: 8px;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 1.5rem auto;
}

.video-container iframe,
.video-container video {
    border-radius: 8px;
}

a[href*="youtu"]:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===================================
   SHARED COMPONENTS - MODALS
   =================================== */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.article-modal-content {
    max-width: 1200px;
    width: 100%;
    background-color: var(--gray-800);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: auto 0;
}

.article-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.article-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ux-article-content {
    display: none;
}

.ux-article-content img,
.article-modal-content img {
    border-radius: 8px;
}

/* ===================================
   SHARED COMPONENTS - LIGHTBOX
   =================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
    padding: 2rem;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.lightbox img.article-hero {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    z-index: 10002;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

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

/* ===================================
   ABOUT SECTION
   =================================== */
.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* ===================================
   DESIGN SECTION
   =================================== */
/* UX Design Process Components */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.process-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.process-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.process-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.feature-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 4rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 2rem;
    color: var(--text-primary);
    font-weight: bold;
}

/* ===================================
   WRITING SECTION
   =================================== */
/* Uses shared article card and gallery components */

/* Legacy publication styles (unused but kept for backwards compatibility) */
.featured-publications {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2rem 0 4rem;
}

.publication-featured {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
}

.publication-featured:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.publication-year {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* ===================================
   TEACHING SECTION
   =================================== */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.course-item {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 2rem;
    transition: var(--transition);
}

.course-item:hover {
    border-left-color: var(--text-primary);
}

.course-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.course-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===================================
   PHOTOGRAPHY SECTION
   =================================== */
/* Uses shared gallery components */

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-form {
    max-width: 600px;
    margin: 0 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.08);
}

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

.form-status {
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: none;
    margin-top: 1rem;
}

.form-status.success {
    display: block;
    background-color: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-status.error {
    display: block;
    background-color: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

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

/* Tablet Large (1024px and below) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .article-card {
        min-width: 280px;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .nav-link::before {
        left: 0.5rem;
        right: 0.5rem;
    }

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

    .gallery {
        margin: 1.5rem 20px;
        padding: 1.5rem 15px;
        gap: 1rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.15rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

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

    .article-card {
        min-width: 260px;
    }

    .article-modal {
        padding: 0;
        align-items: stretch;
    }

    .article-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 5rem 1.5rem 2rem;
        margin: 0;
        overflow-y: auto;
    }

    .article-modal-close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
        z-index: 10001;
        background-color: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .contact-form {
        max-width: 100%;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Mobile Large (640px and below) */
@media (max-width: 640px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-link {
        padding: 0.75rem 0.4rem;
        font-size: 0.8rem;
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .gallery {
        margin: 1rem 10px;
        padding: 1rem 10px;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .article-card {
        min-width: 240px;
    }

    .article-hero-image {
        height: 180px;
    }

    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .gallery-nav-btn.prev {
        left: 0.5rem;
    }

    .gallery-nav-btn.next {
        right: 0.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 0.25rem;
        height: auto;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-container::after {
        display: none;
    }

    #main-content {
        margin-top: 90px;
    }

    .nav-brand {
        font-size: 1rem;
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.1rem;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 0.5rem 0.35rem;
        font-size: 0.73rem;
        white-space: nowrap;
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-hero,
    .article-hero-large,
    .article-hero-small {
        max-width: 100% !important;
        width: 100% !important;
        height: auto;
    }

    .section {
        padding: 2rem 1rem;
        min-height: calc(100vh - 90px);
    }

    .gallery {
        margin: 0.75rem 0;
        padding: 1rem 50px;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gallery::-webkit-scrollbar {
        display: none;
    }

    .article-card {
        width: calc(100vw - 120px);
        max-width: 280px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .article-hero-image {
        height: 120px;
    }

    .article-content {
        padding: 1rem;
    }

    .article-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .article-content h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .article-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .read-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }

    .gallery-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }

    .gallery-nav-btn.prev {
        left: 0.25rem;
    }

    .gallery-nav-btn.next {
        right: 0.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .gallery-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1.15rem;
    }

    .gallery-nav-btn.prev {
        left: 0.25rem;
    }

    .gallery-nav-btn.next {
        right: 0.25rem;
    }

    .article-card {
        min-width: 220px;
    }

    .article-hero-image {
        height: 160px;
    }

    .article-modal {
        padding: 0;
    }

    .article-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 4.5rem 1rem 1.5rem;
        margin: 0;
    }

    .article-modal-close {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        z-index: 10001;
        background-color: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .lightbox-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
    }

    .lightbox-close {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 90%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
        margin-top: 2rem;
    }

    .social-links a {
        width: 3rem;
        height: 3rem;
        padding: 0.875rem;
    }

    .social-links a svg {
        width: 28px;
        height: 28px;
    }

    .video-container {
        margin: 1.5rem 0;
    }

    .process-card {
        padding: 1.5rem;
    }
}

/* Mobile Small (360px and below) */
@media (max-width: 360px) {
    .nav-container {
        padding: 0.5rem 0.25rem;
    }

    #main-content {
        margin-top: 92px;
    }

    .nav-brand {
        font-size: 0.9rem;
    }

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

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .article-hero,
    .article-hero-large,
    .article-hero-small {
        max-width: 100% !important;
        width: 100% !important;
    }

    .section {
        padding: 1.5rem 0.75rem;
        min-height: calc(100vh - 92px);
    }

    .gallery {
        margin: 0.5rem 0;
        padding: 1rem 45px;
        gap: 0.75rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gallery::-webkit-scrollbar {
        display: none;
    }

    .article-card {
        width: calc(100vw - 110px);
        max-width: 250px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .article-hero-image {
        height: 100px;
    }

    .article-content {
        padding: 0.875rem;
    }

    .article-content h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .article-content h5 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .article-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .read-more-btn {
        padding: 0.45rem 0.875rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .gallery-nav-btn.prev {
        left: 0.25rem;
    }

    .gallery-nav-btn.next {
        right: 0.25rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .profile-image {
        width: 110px;
        height: 110px;
    }

    .article-card {
        min-width: 200px;
    }

    .article-hero-image {
        height: 140px;
    }

    .gallery-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .lightbox-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .lightbox-close {
        width: 28px;
        height: 28px;
        font-size: 1.15rem;
    }

    .social-links {
        margin-top: 1.5rem;
    }

    .social-links a {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.75rem;
    }

    .social-links a svg {
        width: 26px;
        height: 26px;
    }
}
